Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001275/0.001275, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001569/0.001569, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.559/2.559, allocations: 436.5 MB / 0.7104 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003099/0.0003101, allocations: 8 kB / 0.8708 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6125/0.6128, allocations: 153.7 MB / 1.021 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.001846/0.6147, allocations: 1.234 MB / 1.022 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001382/0.6161, allocations: 0.7135 MB / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.688e-05/0.6162, allocations: 0 / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.628e-05/0.6162, allocations: 3.938 kB / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001185/0.6164, allocations: 23.89 kB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006032/0.617, allocations: 91.77 kB / 1.023 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001421/0.6171, allocations: 71.78 kB / 1.023 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.6173, allocations: 11.98 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.6174, allocations: 43.78 kB / 1.023 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.175e-05/0.6175, allocations: 43.83 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.786e-05/0.6175, allocations: 4 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002008/0.6177, allocations: 67.92 kB / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.819e-05/0.6178, allocations: 15.92 kB / 1.023 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.87e-05/0.6178, allocations: 45.62 kB / 1.023 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001814/0.618, allocations: 109.8 kB / 1.023 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.618, allocations: 0 / 1.023 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.243e-06/0.618, allocations: 4 kB / 1.023 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.618, allocations: 0 / 1.023 GB, free: 14.58 MB / 0.7794 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.0008423/0.6189, allocations: 0.4922 MB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.6189, allocations: 11.98 kB / 1.024 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.694e-05/0.619, allocations: 11.81 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.6191, allocations: 175 kB / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.6192, allocations: 11.95 kB / 1.024 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.6192, allocations: 11.98 kB / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.6194, allocations: 81.58 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.6194, allocations: 0 / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.6194, allocations: 0 / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.6194, allocations: 0 / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.6196, allocations: 51.97 kB / 1.024 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006759/0.6203, allocations: 352.6 kB / 1.024 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002197/0.6205, allocations: 78.67 kB / 1.024 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.6205, allocations: 4 kB / 1.024 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.6208, allocations: 103.4 kB / 1.025 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.723e-06/0.6208, allocations: 0 / 1.025 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004539/0.6213, allocations: 181.4 kB / 1.025 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.6213, allocations: 55.41 kB / 1.025 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.6215, allocations: 147.4 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.6215, allocations: 29.7 kB / 1.025 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.853e-05/0.6216, allocations: 96.14 kB / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.969e-05/0.6216, allocations: 31.78 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.943e-06/0.6216, allocations: 0 / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.6217, allocations: 326.8 kB / 1.025 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.825e-05/0.6218, allocations: 35.92 kB / 1.025 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001016/0.6219, allocations: 73.06 kB / 1.025 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.016e-05/0.622, allocations: 35.98 kB / 1.026 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.622, allocations: 4 kB / 1.026 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002547/0.6223, allocations: 149.3 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.6223, allocations: 5.719 kB / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.6223, allocations: 0 / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.6223, allocations: 4 kB / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.6225, allocations: 19.92 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.6225, allocations: 8.094 kB / 1.026 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.6226, allocations: 11.98 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.627e-05/0.6226, allocations: 8 kB / 1.026 GB, free: 11.76 MB / 0.7794 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 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001147/0.6227, allocations: 129.2 kB / 1.026 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.151e-05/0.6228, allocations: 7.906 kB / 1.026 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004029/0.6232, allocations: 182.2 kB / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.6232, allocations: 0 / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/0.6232, allocations: 0 / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.6232, allocations: 7.922 kB / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007281/0.624, allocations: 470.4 kB / 1.026 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.624, allocations: 0 / 1.026 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.596e-05/0.6241, allocations: 15.98 kB / 1.026 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.6241, allocations: 0 / 1.026 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.6241, allocations: 0 / 1.026 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.6241, allocations: 0 / 1.026 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.6241, allocations: 4 kB / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003707/0.6245, allocations: 263.2 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.468e-05/0.6246, allocations: 88.95 kB / 1.027 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.862e-05/0.6246, allocations: 3.984 kB / 1.027 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001223/0.6247, allocations: 8 kB / 1.027 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.502e-05/0.6248, allocations: 19.97 kB / 1.027 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.6248, allocations: 4 kB / 1.027 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.448e-05/0.6249, allocations: 107.2 kB / 1.027 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.21e-07/0.6249, allocations: 4 kB / 1.027 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003862/0.6253, allocations: 43.98 kB / 1.027 GB, free: 10.32 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004596/0.6258, allocations: 162.3 kB / 1.027 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003157/0.6261, allocations: 97.58 kB / 1.027 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6261, allocations: 4 kB / 1.027 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.6263, allocations: 59.89 kB / 1.027 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.6265, allocations: 26.5 kB / 1.027 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005683/0.6271, allocations: 259.2 kB / 1.028 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.6274, allocations: 0.7082 MB / 1.028 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.588e-05/0.6275, allocations: 8.562 kB / 1.028 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.186e-05/0.6275, allocations: 23.42 kB / 1.028 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of SimCode: time 3.1e-07/0.6275, allocations: 0 / 1.028 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of Templates: time 0.004911/0.6325, allocations: 1.799 MB / 1.03 GB, free: 7.152 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:$whenCondition1,booleanPulse.Twidth,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,lig.AArriv,lig.AInter,lig.BArriv,lig.BInter,lig.CArriv,lig.CInter,lig.MArriv,lig.MInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,time