Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001352/0.001352, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001558/0.001558, allocations: 198.6 kB / 16.25 MB, free: 6.621 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.429/1.429, allocations: 222.9 MB / 239.9 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.431/2.431, allocations: 390.2 MB / 0.6643 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001275, allocations: 59.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7925/0.7938, allocations: 140.4 MB / 0.9491 GB, free: 9.285 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003442/0.7973, allocations: 1.591 MB / 0.9507 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001477/0.7988, allocations: 0.7678 MB / 0.9514 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.204e-05/0.7989, allocations: 0 / 0.9514 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.495e-05/0.799, allocations: 3.938 kB / 0.9514 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.7992, allocations: 18.36 kB / 0.9514 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007175/0.7999, allocations: 117.6 kB / 0.9515 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001684/0.8001, allocations: 91.83 kB / 0.9516 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.8002, allocations: 17.91 kB / 0.9516 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.8003, allocations: 55.22 kB / 0.9517 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.8005, allocations: 48.38 kB / 0.9517 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.727e-05/0.8005, allocations: 8.5 kB / 0.9517 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002352/0.8007, allocations: 94.28 kB / 0.9518 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.379e-05/0.8008, allocations: 20.3 kB / 0.9519 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.139e-05/0.8009, allocations: 48.22 kB / 0.9519 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003218/0.8012, allocations: 161.5 kB / 0.9521 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.8012, allocations: 1.594 kB / 0.9521 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.834e-06/0.8012, allocations: 0 / 0.9521 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.498e-06/0.8012, allocations: 0 / 0.9521 GB, free: 7.004 MB / 0.7169 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.0008453/0.8021, allocations: 0.5027 MB / 0.9525 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.8021, allocations: 9.781 kB / 0.9526 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.32e-05/0.8022, allocations: 10.53 kB / 0.9526 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.8023, allocations: 186.8 kB / 0.9527 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.8024, allocations: 9.984 kB / 0.9528 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.505e-05/0.8024, allocations: 8.375 kB / 0.9528 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.8026, allocations: 84.48 kB / 0.9528 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.8026, allocations: 0 / 0.9528 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.8027, allocations: 1.062 kB / 0.9528 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.8027, allocations: 1.125 kB / 0.9528 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001586/0.8028, allocations: 53.92 kB / 0.9529 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005713/0.8034, allocations: 329.9 kB / 0.9532 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002183/0.8037, allocations: 84.78 kB / 0.9533 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.035e-05/0.8038, allocations: 42.75 kB / 0.9533 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.8038, allocations: 1.062 kB / 0.9533 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002838/0.8041, allocations: 106.1 kB / 0.9534 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.8041, allocations: 4 kB / 0.9534 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004345/0.8045, allocations: 179.9 kB / 0.9536 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.8046, allocations: 54.5 kB / 0.9537 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.8047, allocations: 145.2 kB / 0.9538 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.8047, allocations: 27.11 kB / 0.9538 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.719e-05/0.8048, allocations: 102.7 kB / 0.9539 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.046e-05/0.8048, allocations: 32.23 kB / 0.954 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.114e-05/0.8049, allocations: 35.67 kB / 0.954 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.968e-05/0.8049, allocations: 325.6 kB / 0.9543 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.018e-05/0.805, allocations: 32.47 kB / 0.9543 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.894e-05/0.8051, allocations: 72.8 kB / 0.9544 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.8053, allocations: 103.8 kB / 0.9545 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.8053, allocations: 0 / 0.9545 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002512/0.8056, allocations: 135.3 kB / 0.9546 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.8056, allocations: 5.969 kB / 0.9546 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.8056, allocations: 1.062 kB / 0.9546 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.8056, allocations: 6.469 kB / 0.9546 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.8057, allocations: 28.41 kB / 0.9547 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.8058, allocations: 2.75 kB / 0.9547 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.8059, allocations: 10.62 kB / 0.9547 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.8059, allocations: 8.328 kB / 0.9547 GB, free: 4.559 MB / 0.7169 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 9.08e-05/0.806, allocations: 129.7 kB / 0.9548 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.623e-05/0.806, allocations: 8.375 kB / 0.9548 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003706/0.8064, allocations: 172.6 kB / 0.955 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.8064, allocations: 2.406 kB / 0.955 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.8064, allocations: 0 / 0.955 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.8064, allocations: 0 / 0.955 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005827/0.807, allocations: 457.1 kB / 0.9554 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.807, allocations: 1.156 kB / 0.9554 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.597e-05/0.8071, allocations: 22.64 kB / 0.9554 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.8071, allocations: 0 / 0.9554 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.8072, allocations: 2.219 kB / 0.9554 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.317e-06/0.8072, allocations: 5.203 kB / 0.9555 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.8072, allocations: 4.078 kB / 0.9555 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000307/0.8075, allocations: 250.2 kB / 0.9557 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.733e-05/0.8075, allocations: 88.17 kB / 0.9558 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.8076, allocations: 5.969 kB / 0.9558 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.8077, allocations: 13.36 kB / 0.9558 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.8078, allocations: 17.45 kB / 0.9558 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.8078, allocations: 11.56 kB / 0.9558 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.874e-05/0.8079, allocations: 108.3 kB / 0.9559 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8079, allocations: 1.25 kB / 0.9559 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003723/0.8082, allocations: 40.97 kB / 0.956 GB, free: 3.473 MB / 0.7169 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.0003783/0.8086, allocations: 164.8 kB / 0.9561 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002519/0.8089, allocations: 102.9 kB / 0.9562 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.8089, allocations: 0 / 0.9562 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001079/0.809, allocations: 60.17 kB / 0.9563 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.8093, allocations: 18.08 kB / 0.9563 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005188/0.8099, allocations: 253.8 kB / 0.9565 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001419/0.81, allocations: 0.7074 MB / 0.9572 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.906e-05/0.8101, allocations: 7.75 kB / 0.9572 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.355e-05/0.8101, allocations: 21.83 kB / 0.9573 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of SimCode: time 3.91e-07/0.8101, allocations: 0 / 0.9573 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of Templates: time 0.005236/0.8154, allocations: 1.943 MB / 0.9592 GB, free: 1.348 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches