Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 109.9 kB / 16.41 MB, free: 6.5 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.00199/0.00199, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.439/1.439, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.786/2.786, allocations: 474.5 MB / 0.7477 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001821/0.001821, allocations: 71.88 kB / 1.073 GB, free: 7.219 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8078/0.8097, allocations: 160.3 MB / 1.229 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002832/0.8126, allocations: 1.542 MB / 1.231 GB, free: 9.395 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001403/0.814, allocations: 0.7803 MB / 1.231 GB, free: 8.609 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.862e-05/0.814, allocations: 0 / 1.231 GB, free: 8.609 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.691e-05/0.8141, allocations: 7.875 kB / 1.231 GB, free: 8.602 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.8142, allocations: 19.8 kB / 1.231 GB, free: 8.582 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005432/0.8148, allocations: 131.6 kB / 1.232 GB, free: 8.453 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000147/0.8149, allocations: 99.64 kB / 1.232 GB, free: 8.355 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.552e-05/0.815, allocations: 15.97 kB / 1.232 GB, free: 8.34 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.8151, allocations: 39.92 kB / 1.232 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.92e-05/0.8152, allocations: 55.69 kB / 1.232 GB, free: 8.246 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.071e-05/0.8153, allocations: 8 kB / 1.232 GB, free: 8.238 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001852/0.8154, allocations: 91.91 kB / 1.232 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.272e-05/0.8155, allocations: 27.91 kB / 1.232 GB, free: 8.121 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.026e-05/0.8155, allocations: 39.8 kB / 1.232 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002586/0.8158, allocations: 164 kB / 1.232 GB, free: 7.926 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.8158, allocations: 4 kB / 1.232 GB, free: 7.922 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.312e-06/0.8158, allocations: 0 / 1.232 GB, free: 7.922 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.8158, allocations: 4 kB / 1.232 GB, free: 7.918 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000818/0.8167, allocations: 0.496 MB / 1.233 GB, free: 7.355 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.8167, allocations: 12.03 kB / 1.233 GB, free: 7.344 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.462e-05/0.8168, allocations: 12.84 kB / 1.233 GB, free: 7.332 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001666/0.8169, allocations: 190.2 kB / 1.233 GB, free: 7.109 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/0.817, allocations: 8.375 kB / 1.233 GB, free: 7.102 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.817, allocations: 4.375 kB / 1.233 GB, free: 7.098 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.8172, allocations: 85.89 kB / 1.233 GB, free: 7.008 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.8172, allocations: 0 / 1.233 GB, free: 7.008 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.8172, allocations: 4 kB / 1.233 GB, free: 7.004 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.8172, allocations: 0 / 1.233 GB, free: 7.004 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001575/0.8174, allocations: 51.95 kB / 1.233 GB, free: 6.953 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005833/0.818, allocations: 336.7 kB / 1.233 GB, free: 6.574 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.8182, allocations: 86.61 kB / 1.233 GB, free: 6.48 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.178e-05/0.8183, allocations: 36.84 kB / 1.233 GB, free: 6.441 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.8184, allocations: 4 kB / 1.233 GB, free: 6.438 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002361/0.8186, allocations: 99.34 kB / 1.233 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 3.356e-06/0.8186, allocations: 96 / 1.233 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0004448/0.8191, allocations: 181.4 kB / 1.234 GB, free: 6.145 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.8191, allocations: 55.41 kB / 1.234 GB, free: 6.078 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.8193, allocations: 141.8 kB / 1.234 GB, free: 5.93 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.8193, allocations: 29.7 kB / 1.234 GB, free: 5.895 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.396e-05/0.8194, allocations: 96.09 kB / 1.234 GB, free: 5.797 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.166e-05/0.8194, allocations: 31.78 kB / 1.234 GB, free: 5.766 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.903e-05/0.8195, allocations: 33.7 kB / 1.234 GB, free: 5.727 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.8196, allocations: 326.8 kB / 1.234 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.807e-05/0.8197, allocations: 23.98 kB / 1.234 GB, free: 5.375 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.8198, allocations: 74.05 kB / 1.234 GB, free: 5.285 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001905/0.82, allocations: 113 kB / 1.234 GB, free: 5.156 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.82, allocations: 0 / 1.234 GB, free: 5.156 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002597/0.8203, allocations: 133.4 kB / 1.235 GB, free: 5.02 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.8203, allocations: 12.09 kB / 1.235 GB, free: 5.008 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.8203, allocations: 0 / 1.235 GB, free: 5.008 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.8203, allocations: 4 kB / 1.235 GB, free: 5.004 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.8205, allocations: 19.98 kB / 1.235 GB, free: 4.984 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.8205, allocations: 3.938 kB / 1.235 GB, free: 4.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.8206, allocations: 15.92 kB / 1.235 GB, free: 4.965 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.8206, allocations: 4 kB / 1.235 GB, free: 4.961 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001077/0.8207, allocations: 125.8 kB / 1.235 GB, free: 4.828 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.087e-05/0.8207, allocations: 11.95 kB / 1.235 GB, free: 4.816 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003745/0.8211, allocations: 178.2 kB / 1.235 GB, free: 4.633 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.8211, allocations: 0 / 1.235 GB, free: 4.633 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.8211, allocations: 0 / 1.235 GB, free: 4.633 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.309e-06/0.8211, allocations: 3.984 kB / 1.235 GB, free: 4.629 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006539/0.8218, allocations: 465.5 kB / 1.235 GB, free: 4.121 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.8218, allocations: 0 / 1.235 GB, free: 4.121 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.081e-05/0.8219, allocations: 16 kB / 1.235 GB, free: 4.105 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.8219, allocations: 0 / 1.235 GB, free: 4.105 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.8219, allocations: 3.984 kB / 1.235 GB, free: 4.102 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.8219, allocations: 4 kB / 1.235 GB, free: 4.098 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.822, allocations: 3.938 kB / 1.235 GB, free: 4.094 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003435/0.8223, allocations: 247.4 kB / 1.236 GB, free: 3.836 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.416e-05/0.8224, allocations: 85 kB / 1.236 GB, free: 3.734 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.144e-05/0.8224, allocations: 12 kB / 1.236 GB, free: 3.723 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.8225, allocations: 11.92 kB / 1.236 GB, free: 3.711 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.087e-05/0.8226, allocations: 19.86 kB / 1.236 GB, free: 3.691 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.8226, allocations: 11.98 kB / 1.236 GB, free: 3.68 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.143e-05/0.8227, allocations: 109.3 kB / 1.236 GB, free: 3.574 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8227, allocations: 4 kB / 1.236 GB, free: 3.57 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003131/0.823, allocations: 43.92 kB / 1.236 GB, free: 3.527 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003808/0.8234, allocations: 170.8 kB / 1.236 GB, free: 3.367 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002674/0.8237, allocations: 91.89 kB / 1.236 GB, free: 3.277 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.8237, allocations: 0 / 1.236 GB, free: 3.277 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.8238, allocations: 55.91 kB / 1.236 GB, free: 3.223 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.8242, allocations: 26.05 kB / 1.236 GB, free: 3.199 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005174/0.8247, allocations: 235.5 kB / 1.237 GB, free: 2.941 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.825, allocations: 0.704 MB / 1.237 GB, free: 2.211 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 5.063e-05/0.8251, allocations: 16.55 kB / 1.237 GB, free: 2.195 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.368e-05/0.8251, allocations: 15.44 kB / 1.237 GB, free: 2.18 MB / 0.9512 GB Notification: Performance of SimCode: time 3.186e-06/0.8251, allocations: 0 / 1.237 GB, free: 2.18 MB / 0.9512 GB Notification: Performance of Templates: time 0.005287/0.8304, allocations: 2.026 MB / 1.239 GB, free: 172 kB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches