Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conEquSta.TBoi|conEquSta.onSys|conEquSta.onPum|conEquSta.onBoi",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff") translateModel(Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conEquSta.TBoi|conEquSta.onSys|conEquSta.onPum|conEquSta.onBoi",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00855/0.00855, allocations: 96.69 kB / 15.73 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001911/0.001911, allocations: 185.7 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.652/2.652, allocations: 472.6 MB / 0.7453 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 67.84 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2854, allocations: 159.9 MB / 1.226 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff): time 0.002077/0.2875, allocations: 0.8111 MB / 1.226 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001487/0.289, allocations: 1.166 MB / 1.228 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.703e-05/0.2891, allocations: 0 / 1.228 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.008e-05/0.2891, allocations: 7.922 kB / 1.228 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.692e-05/0.2892, allocations: 11.88 kB / 1.228 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000503/0.2897, allocations: 138.7 kB / 1.228 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001968/0.2899, allocations: 143.8 kB / 1.228 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.2901, allocations: 47.91 kB / 1.228 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.581e-05/0.2902, allocations: 55.83 kB / 1.228 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.2903, allocations: 63.75 kB / 1.228 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.174e-05/0.2903, allocations: 12 kB / 1.228 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.107e-05/0.2904, allocations: 23.98 kB / 1.228 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.107e-05/0.2904, allocations: 27.91 kB / 1.228 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.55e-05/0.2905, allocations: 47.84 kB / 1.228 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002229/0.2907, allocations: 155.5 kB / 1.228 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2908, allocations: 0 / 1.228 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2908, allocations: 0 / 1.228 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.2908, allocations: 4 kB / 1.228 GB, free: 6.48 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007221/0.2915, allocations: 432.8 kB / 1.229 GB, free: 6 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.2916, allocations: 8.031 kB / 1.229 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.227e-05/0.2916, allocations: 12.89 kB / 1.229 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.2917, allocations: 176.2 kB / 1.229 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.2918, allocations: 4.375 kB / 1.229 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.387e-05/0.2918, allocations: 16.36 kB / 1.229 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000223/0.292, allocations: 90.22 kB / 1.229 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.292, allocations: 192 / 1.229 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.2921, allocations: 3.938 kB / 1.229 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.2921, allocations: 7.984 kB / 1.229 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002082/0.2923, allocations: 51.95 kB / 1.229 GB, free: 5.594 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/0.2928, allocations: 380.5 kB / 1.229 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001619/0.293, allocations: 62.48 kB / 1.229 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.2931, allocations: 32.92 kB / 1.229 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.2931, allocations: 0 / 1.229 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000229/0.2934, allocations: 83.33 kB / 1.23 GB, free: 4.973 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.2934, allocations: 4 kB / 1.23 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0004151/0.2938, allocations: 129.6 kB / 1.23 GB, free: 4.836 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.2939, allocations: 55.39 kB / 1.23 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.294, allocations: 137.5 kB / 1.23 GB, free: 4.625 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.294, allocations: 29.7 kB / 1.23 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.35e-05/0.2941, allocations: 104.1 kB / 1.23 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.2941, allocations: 15.91 kB / 1.23 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.864e-05/0.2942, allocations: 41.69 kB / 1.23 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.2943, allocations: 318.8 kB / 1.23 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.2945, allocations: 47.95 kB / 1.23 GB, free: 4.055 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.2947, allocations: 75.41 kB / 1.23 GB, free: 3.969 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.2949, allocations: 124.2 kB / 1.231 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2949, allocations: 0 / 1.231 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004112/0.2953, allocations: 187.2 kB / 1.231 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.832e-05/0.2954, allocations: 41.69 kB / 1.231 GB, free: 3.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.2954, allocations: 8.062 kB / 1.231 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.2954, allocations: 0 / 1.231 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.654e-05/0.2955, allocations: 7.984 kB / 1.231 GB, free: 3.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.2956, allocations: 4 kB / 1.231 GB, free: 3.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/0.2958, allocations: 35.89 kB / 1.231 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.2958, allocations: 8 kB / 1.231 GB, free: 3.527 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,onSys.y,$PRE.onSys.y,conEquSta.hys.y,$PRE.conEquSta.hys.y,conEquSta.onBoi) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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.000106/0.2959, allocations: 130.3 kB / 1.231 GB, free: 3.391 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.2959, allocations: 3.953 kB / 1.231 GB, free: 3.387 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.424e-05/0.296, allocations: 16.36 kB / 1.231 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.296, allocations: 0 / 1.231 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.296, allocations: 0 / 1.231 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.296, allocations: 3.938 kB / 1.231 GB, free: 3.363 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.2962, allocations: 197.5 kB / 1.231 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2962, allocations: 0 / 1.231 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.831e-05/0.2962, allocations: 8 kB / 1.231 GB, free: 3.113 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2962, allocations: 0 / 1.231 GB, free: 3.113 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.2963, allocations: 7.984 kB / 1.231 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2963, allocations: 0 / 1.231 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2963, allocations: 0 / 1.231 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002738/0.2965, allocations: 125.3 kB / 1.231 GB, free: 2.965 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.034e-05/0.2966, allocations: 92.98 kB / 1.231 GB, free: 2.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.2966, allocations: 4.062 kB / 1.231 GB, free: 2.852 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.062e-05/0.2967, allocations: 15.98 kB / 1.231 GB, free: 2.836 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.452e-05/0.2968, allocations: 15.92 kB / 1.231 GB, free: 2.82 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.265e-06/0.2968, allocations: 4 kB / 1.231 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.298e-05/0.2968, allocations: 91.27 kB / 1.232 GB, free: 2.727 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2968, allocations: 96 / 1.232 GB, free: 2.727 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002222/0.2971, allocations: 27.94 kB / 1.232 GB, free: 2.699 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,conEquSta.onBoi,conEquSta.hys.y,onSys.y) * Number of discrete states: 1 (conEquSta.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001511/0.2972, allocations: 103.2 kB / 1.232 GB, free: 2.59 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004697/0.2977, allocations: 171.3 kB / 1.232 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2977, allocations: 0 / 1.232 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.2979, allocations: 35.97 kB / 1.232 GB, free: 2.375 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/0.2981, allocations: 12 kB / 1.232 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003899/0.2985, allocations: 183 kB / 1.232 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.2988, allocations: 0.6963 MB / 1.233 GB, free: 1.438 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.705e-05/0.2988, allocations: 7.938 kB / 1.233 GB, free: 1.43 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.109e-05/0.2989, allocations: 11.44 kB / 1.233 GB, free: 1.418 MB / 0.9825 GB Notification: Performance of SimCode: time 5.61e-07/0.2989, allocations: 0 / 1.233 GB, free: 1.418 MB / 0.9825 GB Notification: Performance of Templates: time 0.004305/0.3032, allocations: 1.647 MB / 1.234 GB, free: 15.79 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.makefile (rm -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.sim & ./Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_CDL_Controls_Validation_EquipmentOnOff.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches