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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001017/0.001017, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.392/1.392, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.32/2.32, allocations: 390.9 MB / 0.667 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003227/0.0003229, allocations: 8 kB / 0.8166 GB, free: 13.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5937/0.594, allocations: 142.4 MB / 0.9557 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.001594/0.5957, allocations: 1.261 MB / 0.9569 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001082/0.5967, allocations: 0.7588 MB / 0.9577 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.553e-05/0.5968, allocations: 1.25 kB / 0.9577 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.738e-05/0.5968, allocations: 3.938 kB / 0.9577 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.193e-05/0.5969, allocations: 14.23 kB / 0.9577 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004104/0.5973, allocations: 107.2 kB / 0.9578 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.5975, allocations: 102.6 kB / 0.9579 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.297e-05/0.5976, allocations: 14.33 kB / 0.9579 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.764e-05/0.5977, allocations: 41.31 kB / 0.9579 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.558e-05/0.5978, allocations: 50 kB / 0.958 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/0.5978, allocations: 4.062 kB / 0.958 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.598, allocations: 86.16 kB / 0.9581 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.412e-05/0.598, allocations: 19.58 kB / 0.9581 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.319e-05/0.598, allocations: 70.27 kB / 0.9582 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001551/0.5982, allocations: 106.5 kB / 0.9583 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.5982, allocations: 1.781 kB / 0.9583 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.014e-06/0.5982, allocations: 0 / 0.9583 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.5982, allocations: 3.938 kB / 0.9583 GB, free: 5.797 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.0006499/0.5989, allocations: 0.4953 MB / 0.9587 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.5989, allocations: 8.781 kB / 0.9588 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.218e-05/0.599, allocations: 9.906 kB / 0.9588 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.5991, allocations: 190.9 kB / 0.9589 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/0.5991, allocations: 3.281 kB / 0.959 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.214e-05/0.5992, allocations: 12.81 kB / 0.959 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/0.5993, allocations: 89.5 kB / 0.959 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.5994, allocations: 0 / 0.959 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.5994, allocations: 1.781 kB / 0.9591 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.5994, allocations: 4 kB / 0.9591 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000138/0.5995, allocations: 50.44 kB / 0.9591 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000454/0.6, allocations: 337.3 kB / 0.9594 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001907/0.6002, allocations: 90.31 kB / 0.9595 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.367e-05/0.6003, allocations: 44.08 kB / 0.9596 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.6003, allocations: 5.359 kB / 0.9596 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001946/0.6005, allocations: 100.2 kB / 0.9597 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.442e-06/0.6005, allocations: 1.375 kB / 0.9597 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003929/0.6009, allocations: 184.2 kB / 0.9598 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.601, allocations: 57.39 kB / 0.9599 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.991e-05/0.6011, allocations: 145.8 kB / 0.96 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.6011, allocations: 25.7 kB / 0.96 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.671e-05/0.6011, allocations: 107.6 kB / 0.9602 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.6012, allocations: 24.84 kB / 0.9602 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.879e-05/0.6012, allocations: 21.45 kB / 0.9602 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.134e-05/0.6012, allocations: 326.2 kB / 0.9605 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.608e-05/0.6013, allocations: 33.45 kB / 0.9605 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.019e-05/0.6014, allocations: 77.8 kB / 0.9606 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.6016, allocations: 102.2 kB / 0.9607 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.6016, allocations: 5.094 kB / 0.9607 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002285/0.6018, allocations: 139 kB / 0.9608 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.6019, allocations: 10.11 kB / 0.9609 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.6019, allocations: 2.094 kB / 0.9609 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.6019, allocations: 1.969 kB / 0.9609 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.602, allocations: 17.58 kB / 0.9609 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.602, allocations: 1.25 kB / 0.9609 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.6021, allocations: 26.89 kB / 0.9609 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.6021, allocations: 3.656 kB / 0.9609 GB, free: 3.371 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.698e-05/0.6022, allocations: 132.8 kB / 0.961 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.797e-05/0.6022, allocations: 12.59 kB / 0.961 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003331/0.6026, allocations: 172.3 kB / 0.9612 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.6026, allocations: 2.641 kB / 0.9612 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.6026, allocations: 3.938 kB / 0.9612 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.6026, allocations: 3.984 kB / 0.9612 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004913/0.6031, allocations: 465.6 kB / 0.9617 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.6031, allocations: 7.984 kB / 0.9617 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-05/0.6032, allocations: 14.94 kB / 0.9617 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.6032, allocations: 1.375 kB / 0.9617 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.6032, allocations: 9.359 kB / 0.9617 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.6032, allocations: 1.375 kB / 0.9617 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.6032, allocations: 3.938 kB / 0.9617 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002657/0.6035, allocations: 253.2 kB / 0.9619 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.209e-05/0.6036, allocations: 91.61 kB / 0.962 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.6036, allocations: 1.375 kB / 0.962 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.6037, allocations: 16.23 kB / 0.962 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/0.6038, allocations: 13.42 kB / 0.9621 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.6038, allocations: 12.11 kB / 0.9621 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.735e-05/0.6038, allocations: 105.7 kB / 0.9622 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6038, allocations: 4 kB / 0.9622 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003046/0.6041, allocations: 48.61 kB / 0.9622 GB, free: 2.27 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.0003071/0.6045, allocations: 160.2 kB / 0.9624 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002423/0.6047, allocations: 98.36 kB / 0.9625 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.6047, allocations: 1.094 kB / 0.9625 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.6048, allocations: 58.61 kB / 0.9625 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.6052, allocations: 16.05 kB / 0.9625 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004334/0.6056, allocations: 298.6 kB / 0.9628 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001179/0.6057, allocations: 0.7008 MB / 0.9635 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.364e-05/0.6058, allocations: 18.09 kB / 0.9635 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.6058, allocations: 4 kB / 0.9635 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of Templates: time 0.003551/0.6093, allocations: 1.989 MB / 0.9655 GB, free: 92 kB / 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/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