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.001813/0.001813, allocations: 110.8 kB / 16.41 MB, free: 6.492 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.002044/0.002044, allocations: 187 kB / 17.34 MB, free: 5.766 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.411/1.411, 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.223/2.223, allocations: 390.3 MB / 0.6655 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 59.91 kB / 0.9515 GB, free: 7.719 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8556/0.857, allocations: 140.4 MB / 1.089 GB, free: 5.551 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002382/0.8594, allocations: 1.544 MB / 1.09 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001144/0.8606, allocations: 0.7579 MB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.506e-05/0.8606, allocations: 3.938 kB / 1.091 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.178e-05/0.8607, allocations: 13.8 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.566e-05/0.8608, allocations: 20.41 kB / 1.091 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005365/0.8613, allocations: 129.2 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001484/0.8615, allocations: 100.7 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.386e-05/0.8616, allocations: 8.453 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.67e-05/0.8617, allocations: 56.23 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.268e-05/0.8618, allocations: 41.89 kB / 1.091 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.263e-05/0.8618, allocations: 7.281 kB / 1.091 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.862, allocations: 99.27 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.837e-05/0.862, allocations: 25.84 kB / 1.091 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.186e-05/0.8621, allocations: 47.81 kB / 1.091 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002613/0.8624, allocations: 163.7 kB / 1.092 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.8624, allocations: 0 / 1.092 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.572e-06/0.8624, allocations: 0 / 1.092 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.8624, allocations: 0.6562 kB / 1.092 GB, free: 3.645 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006651/0.8631, allocations: 0.4929 MB / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.8631, allocations: 8.812 kB / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.547e-05/0.8632, allocations: 15.11 kB / 1.092 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.8633, allocations: 185.2 kB / 1.092 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.8633, allocations: 14.77 kB / 1.092 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.8633, allocations: 4.516 kB / 1.092 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001888/0.8635, allocations: 81.69 kB / 1.092 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.8635, allocations: 4 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.8635, allocations: 5.344 kB / 1.092 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.8635, allocations: 0.5156 kB / 1.092 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/0.8637, allocations: 48 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000503/0.8642, allocations: 332.3 kB / 1.093 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002137/0.8644, allocations: 81.98 kB / 1.093 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.018e-05/0.8645, allocations: 39.39 kB / 1.093 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.8646, allocations: 1.984 kB / 1.093 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.8648, allocations: 108.5 kB / 1.093 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.8648, allocations: 0 / 1.093 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004163/0.8652, allocations: 172.3 kB / 1.093 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/0.8653, allocations: 58.61 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.488e-05/0.8654, allocations: 143.1 kB / 1.093 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.8654, allocations: 34.61 kB / 1.093 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.45e-05/0.8654, allocations: 95.28 kB / 1.093 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.8655, allocations: 24.69 kB / 1.093 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.206e-05/0.8655, allocations: 32.91 kB / 1.093 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.693e-05/0.8656, allocations: 329.2 kB / 1.094 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.958e-05/0.8657, allocations: 37.14 kB / 1.094 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.072e-05/0.8658, allocations: 70.89 kB / 1.094 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.8659, allocations: 107.3 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.8659, allocations: 0.9375 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002408/0.8662, allocations: 131 kB / 1.094 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.8662, allocations: 6.469 kB / 1.094 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.8662, allocations: 5.453 kB / 1.094 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.8662, allocations: 2.156 kB / 1.094 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.8664, allocations: 24.77 kB / 1.094 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.8664, allocations: 10.08 kB / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.9e-05/0.8665, allocations: 14.45 kB / 1.094 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.8665, allocations: 5.25 kB / 1.094 GB, free: 1.43 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,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 7.312e-05/0.8666, allocations: 129 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.328e-05/0.8666, allocations: 13.55 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003392/0.8669, allocations: 167.7 kB / 1.094 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.867, allocations: 6.516 kB / 1.094 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.867, allocations: 0.8125 kB / 1.094 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.867, allocations: 0.75 kB / 1.094 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000542/0.8675, allocations: 457.8 kB / 1.095 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.8675, allocations: 4 kB / 1.095 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.36e-05/0.8676, allocations: 17.94 kB / 1.095 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.8676, allocations: 1.281 kB / 1.095 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.8677, allocations: 2.922 kB / 1.095 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.8677, allocations: 5.703 kB / 1.095 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.8677, allocations: 3.938 kB / 1.095 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003026/0.868, allocations: 246.8 kB / 1.095 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.597e-05/0.868, allocations: 92.28 kB / 1.095 GB, free: 0.5547 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.738e-05/0.868, allocations: 6.797 kB / 1.095 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.8682, allocations: 8.828 kB / 1.095 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.906e-05/0.8682, allocations: 17.31 kB / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.8683, allocations: 9.734 kB / 1.095 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.414e-05/0.8683, allocations: 107.1 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of sort global known variables: time 6.41e-07/0.8683, allocations: 1 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003351/0.8687, allocations: 46.58 kB / 1.095 GB, free: 456 kB / 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 (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.0002925/0.869, allocations: 166.8 kB / 1.096 GB, free: 340 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002598/0.8692, allocations: 104.7 kB / 1.096 GB, free: 304 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.8692, allocations: 0 / 1.096 GB, free: 304 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.8694, allocations: 53.31 kB / 1.096 GB, free: 292 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.8697, allocations: 21.25 kB / 1.096 GB, free: 284 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004348/0.8701, allocations: 259.7 kB / 1.096 GB, free: 80 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.8704, allocations: 0.7007 MB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.434e-05/0.8705, allocations: 15.83 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of SimCode: time 2e-07/0.8705, allocations: 0 / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of Templates: time 0.00447/0.8749, allocations: 1.995 MB / 1.099 GB, free: 15.18 MB / 0.8731 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