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.001468/0.001468, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001668/0.001668, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.368/1.368, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.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.197/2.197, allocations: 390.3 MB / 0.6653 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 61.98 kB / 0.8132 GB, free: 33.01 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2701, allocations: 140.4 MB / 0.9503 GB, free: 8.871 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003236/0.2734, allocations: 1.542 MB / 0.9518 GB, free: 7.316 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001539/0.2749, allocations: 0.775 MB / 0.9525 GB, free: 6.535 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.75e-05/0.275, allocations: 0 / 0.9525 GB, free: 6.535 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 5.167e-05/0.2751, allocations: 11.86 kB / 0.9525 GB, free: 6.523 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001067/0.2753, allocations: 11.88 kB / 0.9526 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006799/0.2759, allocations: 135.5 kB / 0.9527 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001694/0.2761, allocations: 99.69 kB / 0.9528 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.2763, allocations: 23.91 kB / 0.9528 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.2764, allocations: 31.92 kB / 0.9528 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.475e-05/0.2765, allocations: 55.75 kB / 0.9529 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.2765, allocations: 8 kB / 0.9529 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002161/0.2767, allocations: 99.84 kB / 0.953 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.606e-05/0.2768, allocations: 23.91 kB / 0.953 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.177e-05/0.2768, allocations: 43.78 kB / 0.9531 GB, free: 6 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002814/0.2771, allocations: 163.8 kB / 0.9532 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2772, allocations: 7.938 kB / 0.9532 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.753e-06/0.2772, allocations: 0 / 0.9532 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.653e-06/0.2772, allocations: 0 / 0.9532 GB, free: 5.832 MB / 0.7325 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.0008553/0.278, allocations: 0.4885 MB / 0.9537 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.2781, allocations: 8.031 kB / 0.9537 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.228e-05/0.2781, allocations: 12.84 kB / 0.9537 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001606/0.2783, allocations: 196 kB / 0.9539 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.2783, allocations: 384 / 0.9539 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.129e-05/0.2784, allocations: 8.375 kB / 0.9539 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/0.2786, allocations: 81.95 kB / 0.954 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.2786, allocations: 0 / 0.954 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.2786, allocations: 3.984 kB / 0.954 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.2786, allocations: 4 kB / 0.954 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.2788, allocations: 47.91 kB / 0.954 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000594/0.2794, allocations: 344.6 kB / 0.9544 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000238/0.2796, allocations: 82.7 kB / 0.9544 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.317e-05/0.2798, allocations: 36.84 kB / 0.9545 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.2798, allocations: 8 kB / 0.9545 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002292/0.28, allocations: 95.34 kB / 0.9546 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.743e-06/0.28, allocations: 0 / 0.9546 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0004454/0.2805, allocations: 177.7 kB / 0.9548 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.2805, allocations: 55.41 kB / 0.9548 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/0.2807, allocations: 143.7 kB / 0.9549 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.2807, allocations: 33.7 kB / 0.955 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.3e-05/0.2808, allocations: 96.05 kB / 0.9551 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.137e-05/0.2808, allocations: 31.62 kB / 0.9551 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.253e-05/0.2809, allocations: 37.7 kB / 0.9551 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.281, allocations: 326.8 kB / 0.9554 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.216e-05/0.2811, allocations: 27.98 kB / 0.9555 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.2813, allocations: 73.12 kB / 0.9555 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.2814, allocations: 105 kB / 0.9556 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2814, allocations: 0 / 0.9556 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002719/0.2817, allocations: 141.4 kB / 0.9558 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.2817, allocations: 7.938 kB / 0.9558 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.2818, allocations: 0 / 0.9558 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.2818, allocations: 4 kB / 0.9558 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.2819, allocations: 19.92 kB / 0.9558 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.2819, allocations: 4 kB / 0.9558 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.282, allocations: 15.83 kB / 0.9558 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.2821, allocations: 12 kB / 0.9558 GB, free: 2.871 MB / 0.7325 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.000117/0.2822, allocations: 127.8 kB / 0.956 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.774e-05/0.2822, allocations: 11.89 kB / 0.956 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003642/0.2826, allocations: 166.3 kB / 0.9561 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2826, allocations: 0 / 0.9561 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.2826, allocations: 4 kB / 0.9561 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2826, allocations: 3.984 kB / 0.9561 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006666/0.2833, allocations: 470.2 kB / 0.9566 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2833, allocations: 0 / 0.9566 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.358e-05/0.2834, allocations: 19.98 kB / 0.9566 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.2834, allocations: 3.938 kB / 0.9566 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.2834, allocations: 4 kB / 0.9566 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.063e-06/0.2834, allocations: 0 / 0.9566 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.2834, allocations: 3.938 kB / 0.9566 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003374/0.2838, allocations: 255.2 kB / 0.9569 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.649e-05/0.2838, allocations: 88.92 kB / 0.9569 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.756e-05/0.2839, allocations: 3.984 kB / 0.9569 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.284, allocations: 4 kB / 0.9569 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.802e-05/0.2841, allocations: 19.92 kB / 0.957 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.2841, allocations: 7.984 kB / 0.957 GB, free: 1.602 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.061e-05/0.2842, allocations: 105.2 kB / 0.9571 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of sort global known variables: time 4.4e-07/0.2842, allocations: 4 kB / 0.9571 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003406/0.2845, allocations: 47.98 kB / 0.9571 GB, free: 1.449 MB / 0.7325 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.000384/0.2849, allocations: 161.4 kB / 0.9573 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002728/0.2852, allocations: 103.8 kB / 0.9574 GB, free: 1.195 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.2852, allocations: 8.062 kB / 0.9574 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.2854, allocations: 55.91 kB / 0.9574 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.2857, allocations: 15.98 kB / 0.9575 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005464/0.2862, allocations: 257.6 kB / 0.9577 GB, free: 0.832 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.2865, allocations: 0.7 MB / 0.9584 GB, free: 108 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.006e-05/0.2866, allocations: 19.42 kB / 0.9584 GB, free: 88 kB / 0.7325 GB Notification: Performance of SimCode: time 1.452e-06/0.2866, allocations: 0 / 0.9584 GB, free: 88 kB / 0.7325 GB Notification: Performance of Templates: time 0.004366/0.291, allocations: 1.991 MB / 0.9603 GB, free: 14.09 MB / 0.7481 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/jenkins1/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