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.004694/0.004694, allocations: 101.7 kB / 15.73 MB, free: 6.488 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.00109/0.00109, allocations: 195.1 kB / 16.68 MB, free: 6.375 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.508/2.508, allocations: 390.2 MB / 0.6648 GB, free: 156 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 66.62 kB / 0.9508 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.3575, allocations: 140.4 MB / 1.088 GB, free: 1.527 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003253/0.3608, allocations: 1.539 MB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00167/0.3625, allocations: 0.7686 MB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.105e-05/0.3626, allocations: 8 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.127e-05/0.3627, allocations: 3.938 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.3629, allocations: 23.78 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007408/0.3636, allocations: 135.5 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001721/0.3638, allocations: 95.69 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.3639, allocations: 19.97 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.364, allocations: 51.78 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.3642, allocations: 47.81 kB / 1.091 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.164e-05/0.3642, allocations: 8 kB / 1.091 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002233/0.3644, allocations: 99.84 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.3645, allocations: 19.92 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.467e-05/0.3645, allocations: 35.8 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000319/0.3649, allocations: 171.5 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3649, allocations: 0 / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3649, allocations: 0 / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.756e-06/0.3649, allocations: 0 / 1.091 GB, free: 14.5 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.0008261/0.3657, allocations: 0.504 MB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.3658, allocations: 8.031 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.733e-05/0.3658, allocations: 16.75 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000253/0.3661, allocations: 176.2 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.3661, allocations: 4.375 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.518e-05/0.3662, allocations: 16.36 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002174/0.3664, allocations: 77.95 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3664, allocations: 8 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.3664, allocations: 0 / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.3664, allocations: 3.984 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001555/0.3666, allocations: 51.91 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006516/0.3673, allocations: 340.6 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.3675, allocations: 78.67 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.3676, allocations: 48.86 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.3677, allocations: 0 / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003489/0.368, allocations: 95.36 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.623e-06/0.368, allocations: 0 / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005068/0.3685, allocations: 173.5 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.3686, allocations: 59.39 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.3687, allocations: 147.2 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.088e-05/0.3688, allocations: 29.7 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.1e-05/0.3689, allocations: 100.1 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.411e-05/0.3689, allocations: 27.64 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.644e-05/0.369, allocations: 33.7 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3691, allocations: 326.8 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.902e-05/0.3692, allocations: 35.97 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.3694, allocations: 69.08 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.3696, allocations: 101.1 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3696, allocations: 4 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002719/0.3699, allocations: 133.4 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.3699, allocations: 4 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3699, allocations: 4 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.3699, allocations: 0 / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.37, allocations: 20.02 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.3701, allocations: 11.98 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.3702, allocations: 15.91 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.3702, allocations: 7.984 kB / 1.093 GB, free: 11.53 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 0.0001106/0.3703, allocations: 135.1 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.3704, allocations: 8.047 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003796/0.3707, allocations: 170.3 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3708, allocations: 8 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3708, allocations: 0 / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.3708, allocations: 0 / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007078/0.3715, allocations: 458.2 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3715, allocations: 0 / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.178e-05/0.3716, allocations: 11.98 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.3716, allocations: 4 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.3716, allocations: 4 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.3716, allocations: 4 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3716, allocations: 3.938 kB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003423/0.372, allocations: 254.1 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.597e-05/0.3721, allocations: 92.92 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.672e-05/0.3721, allocations: 0 / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.3722, allocations: 15.98 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.666e-05/0.3723, allocations: 11.92 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.3723, allocations: 12 kB / 1.095 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.846e-05/0.3724, allocations: 109.3 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3724, allocations: 0 / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003386/0.3728, allocations: 44 kB / 1.095 GB, free: 10.11 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 (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.0003714/0.3731, allocations: 165.3 kB / 1.095 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003232/0.3735, allocations: 98.39 kB / 1.095 GB, free: 9.863 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.3735, allocations: 0 / 1.095 GB, free: 9.863 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001342/0.3736, allocations: 55.91 kB / 1.095 GB, free: 9.809 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.374, allocations: 25.8 kB / 1.095 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005344/0.3745, allocations: 232.1 kB / 1.095 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005486/0.3751, allocations: 0.7002 MB / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.359e-05/0.3751, allocations: 12.83 kB / 1.096 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.512e-05/0.3752, allocations: 15.42 kB / 1.096 GB, free: 8.777 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.3752, allocations: 0 / 1.096 GB, free: 8.777 MB / 0.8575 GB Notification: Performance of Templates: time 0.006376/0.3816, allocations: 2.004 MB / 1.098 GB, free: 6.777 MB / 0.8575 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