Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 99.75 kB / 18.95 MB, free: 2.832 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002015/0.002015, allocations: 223.1 kB / 22.25 MB, free: 5.102 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.519/1.519, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.232/3.232, allocations: 0.49 GB / 0.7951 GB, free: 35.43 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 67.64 kB / 1.154 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3361, allocations: 176.1 MB / 1.326 GB, free: 1.449 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.00267/0.3388, allocations: 1.469 MB / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0007204/0.3395, allocations: 350.7 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.597e-05/0.3395, allocations: 4 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.971e-05/0.3395, allocations: 3.938 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.554e-05/0.3396, allocations: 3.938 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004373/0.34, allocations: 123.9 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 6.881e-05/0.3401, allocations: 19.94 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.093e-05/0.3402, allocations: 15.91 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 4.208e-05/0.3402, allocations: 8 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 3.994e-05/0.3403, allocations: 15.92 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.146e-05/0.3403, allocations: 0 / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004149/0.3407, allocations: 279.6 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.544e-05/0.3407, allocations: 3.938 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.339e-05/0.3407, allocations: 7.984 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002135/0.3409, allocations: 103.7 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3409, allocations: 0 / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3409, allocations: 4 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.199e-06/0.3409, allocations: 0 / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005068/0.3415, allocations: 290 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.3415, allocations: 8.031 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.917e-05/0.3415, allocations: 38.75 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.059e-05/0.3416, allocations: 8.828 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.3417, allocations: 110.5 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.033e-06/0.3417, allocations: 384 / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.3417, allocations: 384 / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.3419, allocations: 58.17 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.3419, allocations: 7.875 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.3419, allocations: 4 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3419, allocations: 0 / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001718/0.3421, allocations: 31.95 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003533/0.3425, allocations: 224 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/0.3426, allocations: 38.5 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.25e-05/0.3427, allocations: 28.84 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005735/0.3433, allocations: 79.91 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.3433, allocations: 34.56 kB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.3433, allocations: 4 kB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.000408/0.3437, allocations: 85.59 kB / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.264e-05/0.3437, allocations: 51.41 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.69e-05/0.3438, allocations: 105.8 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.3438, allocations: 25.7 kB / 1.329 GB, free: 13.67 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.058e-05/0.3439, allocations: 84.14 kB / 1.329 GB, free: 13.59 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.3439, allocations: 11.89 kB / 1.329 GB, free: 13.57 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.344, allocations: 9.844 kB / 1.329 GB, free: 13.56 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3441, allocations: 326.8 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.764e-05/0.3442, allocations: 15.92 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.962e-05/0.3443, allocations: 15.98 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.3444, allocations: 36.83 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3444, allocations: 3.938 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002239/0.3446, allocations: 69.72 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3447, allocations: 8 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.3447, allocations: 0 / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.3447, allocations: 0 / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.29e-05/0.3448, allocations: 7.984 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.3448, allocations: 4 kB / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.137e-05/0.3448, allocations: 15.92 kB / 1.33 GB, free: 13.05 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.3448, allocations: 3.938 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.3449, allocations: 116.1 kB / 1.33 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.362e-05/0.345, allocations: 7.953 kB / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002524/0.3452, allocations: 73.28 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.3452, allocations: 0 / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.3452, allocations: 0 / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3452, allocations: 0 / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001717/0.3454, allocations: 128.7 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3454, allocations: 0 / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.47e-05/0.3455, allocations: 12.23 kB / 1.33 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3455, allocations: 4.031 kB / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.3455, allocations: 4 kB / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3455, allocations: 0 / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3455, allocations: 7.938 kB / 1.33 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000265/0.3458, allocations: 167.4 kB / 1.33 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.773e-06/0.3458, allocations: 0 / 1.33 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.3458, allocations: 4 kB / 1.33 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.565e-05/0.3459, allocations: 3.984 kB / 1.33 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/0.3459, allocations: 12.02 kB / 1.33 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-06/0.3459, allocations: 0 / 1.33 GB, free: 12.43 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.028e-05/0.346, allocations: 87.27 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.346, allocations: 0 / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002375/0.3462, allocations: 12 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007085/0.3469, allocations: 0.7162 MB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002232/0.3471, allocations: 40 kB / 1.331 GB, free: 11.55 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3471, allocations: 0 / 1.331 GB, free: 11.55 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.543e-05/0.3472, allocations: 15.98 kB / 1.331 GB, free: 11.54 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/0.3475, allocations: 7.984 kB / 1.331 GB, free: 11.53 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004401/0.348, allocations: 153.2 kB / 1.331 GB, free: 11.34 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.333e-05/0.348, allocations: 63.34 kB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.57e-05/0.348, allocations: 4.125 kB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.531e-05/0.3481, allocations: 11.44 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of SimCode: time 3.71e-07/0.3481, allocations: 0 / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0308/0.3789, allocations: 2.161 MB / 1.334 GB, free: 9.215 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.44, allocations: 6.984 kB / 1.334 GB, free: 9.211 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.31304403199465]