Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.001097/0.001097, allocations: 72.41 kB / 19.17 MB, free: 0.5898 MB / 13.93 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.0009688/0.0009688, allocations: 177.9 kB / 22.46 MB, free: 1.945 MB / 18.57 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 0.8659/0.8659, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.753/1.753, allocations: 389 MB / 0.633 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 3.938 kB / 0.9997 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.229e-05/2.426e-05, allocations: 6.219 kB / 0.9997 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003409/0.003433, allocations: 1.778 MB / 1.001 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001935/0.005368, allocations: 1.095 MB / 1.002 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.005538, allocations: 3.938 kB / 1.002 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.000608/0.006146, allocations: 187.4 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0006007/0.006746, allocations: 209.5 kB / 1.003 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005771/0.007324, allocations: 222.3 kB / 1.003 GB, free: 10.01 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0004653/0.007789, allocations: 271.3 kB / 1.003 GB, free: 9.742 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001932/0.007982, allocations: 44.56 kB / 1.003 GB, free: 9.699 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003802/0.008362, allocations: 143.6 kB / 1.003 GB, free: 9.559 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002755/0.008638, allocations: 151.7 kB / 1.004 GB, free: 9.41 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 4.602e-05/0.008684, allocations: 16 kB / 1.004 GB, free: 9.395 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.008826, allocations: 55.92 kB / 1.004 GB, free: 9.34 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.008953, allocations: 99.67 kB / 1.004 GB, free: 9.242 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 8.138e-05/0.009035, allocations: 55.8 kB / 1.004 GB, free: 9.188 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.000517/0.009552, allocations: 366.8 kB / 1.004 GB, free: 8.828 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.009557, allocations: 4 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.393e-06/0.009558, allocations: 0 / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 8.186e-06/0.009566, allocations: 4 kB / 1.004 GB, free: 8.82 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0009784/0.01054, allocations: 0.5607 MB / 1.005 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/0.0106, allocations: 8.75 kB / 1.005 GB, free: 8.223 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.654e-05/0.01065, allocations: 38.75 kB / 1.005 GB, free: 8.176 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002099/0.01086, allocations: 44.69 kB / 1.005 GB, free: 8.133 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006717/0.01153, allocations: 371.9 kB / 1.005 GB, free: 7.742 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.01154, allocations: 384 / 1.005 GB, free: 7.742 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.01156, allocations: 12.36 kB / 1.005 GB, free: 7.73 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001841/0.01174, allocations: 81.91 kB / 1.005 GB, free: 7.645 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.01175, allocations: 4 kB / 1.005 GB, free: 7.641 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.01177, allocations: 4 kB / 1.005 GB, free: 7.637 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.01177, allocations: 0 / 1.005 GB, free: 7.637 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.0119, allocations: 43.97 kB / 1.005 GB, free: 7.594 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000658/0.01255, allocations: 435.6 kB / 1.006 GB, free: 7.125 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001351/0.01269, allocations: 42.56 kB / 1.006 GB, free: 7.074 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.618e-05/0.01274, allocations: 20.91 kB / 1.006 GB, free: 7.051 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.01276, allocations: 4 kB / 1.006 GB, free: 7.047 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.01279, allocations: 30.56 kB / 1.006 GB, free: 7.008 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.01279, allocations: 4 kB / 1.006 GB, free: 7.004 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0003059/0.0131, allocations: 105.4 kB / 1.006 GB, free: 6.895 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.01314, allocations: 51.41 kB / 1.006 GB, free: 6.832 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007112/0.01385, allocations: 0.5796 MB / 1.007 GB, free: 6.242 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.01386, allocations: 25.7 kB / 1.007 GB, free: 6.211 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.014, allocations: 180 kB / 1.007 GB, free: 6.031 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.01402, allocations: 7.953 kB / 1.007 GB, free: 6.023 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.881e-05/0.01406, allocations: 13.72 kB / 1.007 GB, free: 6.004 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.01419, allocations: 350.8 kB / 1.007 GB, free: 5.652 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.799e-05/0.01423, allocations: 12 kB / 1.007 GB, free: 5.641 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.491e-05/0.01427, allocations: 15.98 kB / 1.007 GB, free: 5.625 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.031e-05/0.01435, allocations: 36.78 kB / 1.007 GB, free: 5.586 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.01435, allocations: 0 / 1.007 GB, free: 5.586 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001579/0.01451, allocations: 93.44 kB / 1.007 GB, free: 5.488 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.01452, allocations: 4 kB / 1.007 GB, free: 5.484 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.01453, allocations: 3.938 kB / 1.007 GB, free: 5.48 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.01455, allocations: 0 / 1.007 GB, free: 5.48 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.231e-05/0.01462, allocations: 11.98 kB / 1.007 GB, free: 5.469 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.01462, allocations: 7.938 kB / 1.007 GB, free: 5.461 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.626e-05/0.01468, allocations: 4 kB / 1.007 GB, free: 5.457 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-06/0.01469, allocations: 0 / 1.007 GB, free: 5.457 MB / 0.9636 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 (3): * Single equations (assignments): 3 * 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.0001639/0.01485, allocations: 185.8 kB / 1.007 GB, free: 5.266 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.342e-05/0.0149, allocations: 31.77 kB / 1.008 GB, free: 5.234 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002145/0.01512, allocations: 104.7 kB / 1.008 GB, free: 5.125 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.01512, allocations: 4 kB / 1.008 GB, free: 5.121 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.01513, allocations: 0 / 1.008 GB, free: 5.121 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.01513, allocations: 3.938 kB / 1.008 GB, free: 5.117 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002745/0.01541, allocations: 244.7 kB / 1.008 GB, free: 4.836 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.01541, allocations: 3.938 kB / 1.008 GB, free: 4.832 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.642e-05/0.01545, allocations: 7.984 kB / 1.008 GB, free: 4.824 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.01546, allocations: 4 kB / 1.008 GB, free: 4.82 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.595e-06/0.01547, allocations: 0 / 1.008 GB, free: 4.82 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.01547, allocations: 0 / 1.008 GB, free: 4.82 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.01547, allocations: 0 / 1.008 GB, free: 4.82 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001997/0.01567, allocations: 199.2 kB / 1.008 GB, free: 4.609 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 6.526e-05/0.01573, allocations: 39.8 kB / 1.008 GB, free: 4.57 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.01576, allocations: 0 / 1.008 GB, free: 4.57 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.666e-05/0.01584, allocations: 8 kB / 1.008 GB, free: 4.562 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.938e-05/0.01587, allocations: 3.938 kB / 1.008 GB, free: 4.559 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-06/0.01587, allocations: 8 kB / 1.008 GB, free: 4.551 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0004582/0.01633, allocations: 435.1 kB / 1.009 GB, free: 4.129 MB / 0.9636 GB Notification: Performance of sort global known variables: time 2.5e-07/0.01633, allocations: 0 / 1.009 GB, free: 4.129 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0003171/0.01665, allocations: 27.98 kB / 1.009 GB, free: 4.102 MB / 0.9636 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 (3): * Single equations (assignments): 3 * 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.001232/0.01788, allocations: 0.9926 MB / 1.01 GB, free: 3.234 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001358/0.01802, allocations: 31.92 kB / 1.01 GB, free: 3.203 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.01802, allocations: 4 kB / 1.01 GB, free: 3.199 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 4.014e-05/0.01806, allocations: 11.98 kB / 1.01 GB, free: 3.188 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.01851, allocations: 41.61 kB / 1.01 GB, free: 3.148 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00346/0.02197, allocations: 2.985 MB / 1.013 GB, free: 88 kB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001996/0.02217, allocations: 186.1 kB / 1.013 GB, free: 15.88 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.0001192/0.02229, allocations: 51.25 kB / 1.013 GB, free: 15.83 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.02244, allocations: 100.5 kB / 1.013 GB, free: 15.73 MB / 0.9792 GB Notification: Performance of SimCode: time 6.01e-07/0.02244, allocations: 0 / 1.013 GB, free: 15.73 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.024/0.04645, allocations: 6.512 MB / 1.019 GB, free: 9.344 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.065/7.112, allocations: 4 kB / 1.019 GB, free: 9.34 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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: 11.110341007821262]