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.001437/0.001437, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001796/0.001796, allocations: 197.1 kB / 16.14 MB, free: 6.711 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 / 239.8 MB, free: 4.539 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.403/2.403, allocations: 390.2 MB / 0.6642 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 64.08 kB / 0.8118 GB, free: 14.9 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6871/0.6884, allocations: 140.4 MB / 0.9489 GB, free: 9.473 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002525/0.6909, allocations: 1.592 MB / 0.9505 GB, free: 8.223 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001254/0.6922, allocations: 0.7789 MB / 0.9512 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.71e-05/0.6923, allocations: 0 / 0.9512 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.62e-05/0.6923, allocations: 3.938 kB / 0.9512 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.6924, allocations: 14.55 kB / 0.9513 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005157/0.693, allocations: 115 kB / 0.9514 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001264/0.6931, allocations: 91.17 kB / 0.9514 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.965e-05/0.6932, allocations: 26.28 kB / 0.9515 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.6933, allocations: 42.78 kB / 0.9515 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.281e-05/0.6934, allocations: 48.31 kB / 0.9516 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.165e-05/0.6934, allocations: 4.781 kB / 0.9516 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.6936, allocations: 91.28 kB / 0.9517 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.252e-05/0.6937, allocations: 20.3 kB / 0.9517 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.876e-05/0.6937, allocations: 34.45 kB / 0.9517 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.694, allocations: 165.6 kB / 0.9519 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.694, allocations: 0 / 0.9519 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.81e-07/0.694, allocations: 0 / 0.9519 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.694, allocations: 1.031 kB / 0.9519 GB, free: 7.199 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.0007158/0.6947, allocations: 0.4991 MB / 0.9523 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.6948, allocations: 10.19 kB / 0.9524 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.414e-05/0.6948, allocations: 9 kB / 0.9524 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.6949, allocations: 191.2 kB / 0.9526 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.695, allocations: 6.531 kB / 0.9526 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.579e-05/0.695, allocations: 8.875 kB / 0.9526 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.6952, allocations: 83.97 kB / 0.9526 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.6952, allocations: 0 / 0.9526 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.6952, allocations: 1.188 kB / 0.9526 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.6952, allocations: 1.344 kB / 0.9526 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.6954, allocations: 48.72 kB / 0.9527 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005265/0.6959, allocations: 341.9 kB / 0.953 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002124/0.6962, allocations: 77.52 kB / 0.9531 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.659e-05/0.6963, allocations: 42.17 kB / 0.9531 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.6963, allocations: 1.625 kB / 0.9531 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.6965, allocations: 106.8 kB / 0.9532 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.372e-06/0.6965, allocations: 0 / 0.9532 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004224/0.697, allocations: 170.4 kB / 0.9534 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.697, allocations: 57.95 kB / 0.9535 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.904e-05/0.6971, allocations: 145.1 kB / 0.9536 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.6971, allocations: 26.95 kB / 0.9536 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.859e-05/0.6972, allocations: 104.3 kB / 0.9537 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.609e-05/0.6972, allocations: 27.75 kB / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.048e-05/0.6973, allocations: 36.58 kB / 0.9538 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.502e-05/0.6973, allocations: 324.3 kB / 0.9541 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.888e-05/0.6974, allocations: 31.64 kB / 0.9541 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.069e-05/0.6975, allocations: 75.59 kB / 0.9542 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001612/0.6977, allocations: 104 kB / 0.9543 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.6977, allocations: 0 / 0.9543 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000235/0.6979, allocations: 139.3 kB / 0.9544 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.6979, allocations: 5.938 kB / 0.9544 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.698, allocations: 1.375 kB / 0.9544 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.698, allocations: 2.781 kB / 0.9544 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.6981, allocations: 20.17 kB / 0.9545 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.6981, allocations: 1.5 kB / 0.9545 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.6982, allocations: 18.52 kB / 0.9545 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.6982, allocations: 8.625 kB / 0.9545 GB, free: 4.77 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 7.905e-05/0.6983, allocations: 141 kB / 0.9546 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.205e-05/0.6983, allocations: 8.719 kB / 0.9546 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003534/0.6987, allocations: 168.5 kB / 0.9548 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.6987, allocations: 1.438 kB / 0.9548 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.6987, allocations: 1.5 kB / 0.9548 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.6987, allocations: 0 / 0.9548 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005896/0.6993, allocations: 460.3 kB / 0.9552 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.6993, allocations: 1.5 kB / 0.9552 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.501e-05/0.6994, allocations: 13.67 kB / 0.9552 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.6994, allocations: 1.594 kB / 0.9552 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.6995, allocations: 4.938 kB / 0.9552 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.6995, allocations: 1.25 kB / 0.9552 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.6995, allocations: 3.938 kB / 0.9553 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003388/0.6998, allocations: 259 kB / 0.9555 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.212e-05/0.6999, allocations: 95.48 kB / 0.9556 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.765e-05/0.6999, allocations: 1.5 kB / 0.9556 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.7, allocations: 13.08 kB / 0.9556 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.154e-05/0.7001, allocations: 14.02 kB / 0.9556 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/0.7001, allocations: 3.875 kB / 0.9556 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.441e-05/0.7002, allocations: 109.1 kB / 0.9557 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7002, allocations: 0 / 0.9557 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003406/0.7005, allocations: 45.72 kB / 0.9558 GB, free: 3.68 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.0003911/0.7009, allocations: 166.4 kB / 0.9559 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002557/0.7012, allocations: 92.83 kB / 0.956 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.7012, allocations: 192 / 0.956 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.7014, allocations: 60.88 kB / 0.9561 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.7017, allocations: 16.27 kB / 0.9561 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004893/0.7022, allocations: 268.8 kB / 0.9563 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001521/0.7023, allocations: 0.7013 MB / 0.957 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.47e-05/0.7024, allocations: 7.438 kB / 0.957 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.311e-05/0.7025, allocations: 21.42 kB / 0.9571 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.7025, allocations: 4 kB / 0.9571 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of Templates: time 0.004772/0.7072, allocations: 1.867 MB / 0.9589 GB, free: 1.59 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