Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light,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.Hunt1979Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,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.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 106.5 kB / 16.41 MB, free: 5.973 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.001702/0.001702, allocations: 186.9 kB / 17.34 MB, free: 5.586 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 / 241 MB, free: 15.14 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.29/2.29, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 63.91 kB / 0.9515 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8305/0.8319, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002574/0.8346, allocations: 1.51 MB / 1.09 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001204/0.8358, allocations: 0.7602 MB / 1.091 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.073e-05/0.8358, allocations: 1.125 kB / 1.091 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.187e-05/0.8359, allocations: 4.594 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.796e-05/0.836, allocations: 19.91 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000536/0.8365, allocations: 127.8 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001344/0.8367, allocations: 90.95 kB / 1.091 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.63e-05/0.8368, allocations: 12.03 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.773e-05/0.8369, allocations: 41.98 kB / 1.091 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.383e-05/0.837, allocations: 41.92 kB / 1.091 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.837, allocations: 7.469 kB / 1.091 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.8372, allocations: 99.33 kB / 1.091 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.856e-05/0.8373, allocations: 20.2 kB / 1.091 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.1e-05/0.8373, allocations: 39.02 kB / 1.091 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002681/0.8376, allocations: 157.1 kB / 1.091 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.8376, allocations: 0 / 1.091 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.403e-06/0.8376, allocations: 0 / 1.091 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.8376, allocations: 1.281 kB / 1.091 GB, free: 3.68 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006881/0.8383, allocations: 470.7 kB / 1.092 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.8384, allocations: 13.5 kB / 1.092 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.033e-05/0.8384, allocations: 15.2 kB / 1.092 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.8385, allocations: 182.1 kB / 1.092 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.427e-05/0.8386, allocations: 37.39 kB / 1.092 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.8386, allocations: 5.25 kB / 1.092 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002087/0.8389, allocations: 79.05 kB / 1.092 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.8389, allocations: 0 / 1.092 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.8389, allocations: 1.359 kB / 1.092 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.8389, allocations: 0.9375 kB / 1.092 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.8391, allocations: 57.61 kB / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004837/0.8396, allocations: 311.5 kB / 1.093 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002269/0.8398, allocations: 69.94 kB / 1.093 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.84, allocations: 43.78 kB / 1.093 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.84, allocations: 6.047 kB / 1.093 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002443/0.8402, allocations: 100.2 kB / 1.093 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.8402, allocations: 3.938 kB / 1.093 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0005024/0.8408, allocations: 171.1 kB / 1.093 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.969e-05/0.8408, allocations: 53.47 kB / 1.093 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.8409, allocations: 137.8 kB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.8409, allocations: 28.09 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.69e-05/0.841, allocations: 92.06 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.841, allocations: 21.17 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.453e-05/0.8411, allocations: 32.14 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.655e-05/0.8411, allocations: 328.8 kB / 1.094 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.8412, allocations: 31.39 kB / 1.094 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.8414, allocations: 81.09 kB / 1.094 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002134/0.8416, allocations: 105 kB / 1.094 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.8416, allocations: 5.031 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003041/0.8419, allocations: 136 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.8419, allocations: 6.297 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.8419, allocations: 6.484 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.842, allocations: 1.031 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.8421, allocations: 20.45 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.8421, allocations: 2.609 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.8422, allocations: 23.11 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.8422, allocations: 4.922 kB / 1.094 GB, free: 1.496 MB / 0.8575 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,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 7.832e-05/0.8423, allocations: 128.5 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.057e-05/0.8423, allocations: 9.016 kB / 1.094 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.249e-05/0.8424, allocations: 16.17 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.8424, allocations: 1.438 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.8424, allocations: 0.7031 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.8424, allocations: 1.25 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005653/0.843, allocations: 429.8 kB / 1.095 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.843, allocations: 0.8125 kB / 1.095 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.129e-05/0.8431, allocations: 9.266 kB / 1.095 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.8431, allocations: 0.875 kB / 1.095 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.8431, allocations: 3.156 kB / 1.095 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.8431, allocations: 5.562 kB / 1.095 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.8431, allocations: 0 / 1.095 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003179/0.8434, allocations: 229.6 kB / 1.095 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.613e-05/0.8435, allocations: 88.66 kB / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.454e-05/0.8435, allocations: 5.344 kB / 1.095 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.8436, allocations: 18.06 kB / 1.095 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.537e-05/0.8437, allocations: 9.016 kB / 1.095 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.8437, allocations: 4.906 kB / 1.095 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.508e-05/0.8438, allocations: 101.5 kB / 1.095 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8438, allocations: 0 / 1.095 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000327/0.8441, allocations: 53.03 kB / 1.095 GB, free: 0.6133 MB / 0.8575 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 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0003291/0.8445, allocations: 167.4 kB / 1.095 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003132/0.8448, allocations: 90.48 kB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.8448, allocations: 0.7188 kB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.8449, allocations: 50.66 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.8452, allocations: 14.59 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004656/0.8457, allocations: 231 kB / 1.096 GB, free: 280 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.846, allocations: 0.6977 MB / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.513e-05/0.846, allocations: 15.17 kB / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of SimCode: time 2.21e-07/0.846, allocations: 0 / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of Templates: time 0.004746/0.8508, allocations: 1.88 MB / 1.098 GB, free: 15.38 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches