Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001622/0.001623, allocations: 108 kB / 15.61 MB, free: 152 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.00187/0.00187, allocations: 197 kB / 16.53 MB, free: 6.664 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.329/1.329, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.45/2.45, allocations: 437 MB / 0.7104 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 59.91 kB / 0.8693 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5621/0.5633, allocations: 151.6 MB / 1.017 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003032/0.5664, allocations: 1.545 MB / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001404/0.5679, allocations: 0.7711 MB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.91e-05/0.5679, allocations: 4 kB / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.016e-05/0.568, allocations: 7.875 kB / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.241e-05/0.5681, allocations: 19.84 kB / 1.02 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006759/0.5688, allocations: 131.5 kB / 1.02 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.5689, allocations: 95.7 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.357e-05/0.569, allocations: 8 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.5692, allocations: 59.77 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.081e-05/0.5692, allocations: 39.83 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.023e-05/0.5693, allocations: 8 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001761/0.5695, allocations: 103.8 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.065e-05/0.5695, allocations: 23.91 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.059e-05/0.5696, allocations: 47.78 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000251/0.5698, allocations: 157.8 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.5698, allocations: 0 / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.423e-06/0.5698, allocations: 0 / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.5698, allocations: 0 / 1.02 GB, free: 15.5 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.0007567/0.5706, allocations: 0.5002 MB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.5707, allocations: 12.03 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.113e-05/0.5707, allocations: 38.69 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.637e-05/0.5707, allocations: 8.844 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.5709, allocations: 197.4 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.5709, allocations: 384 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.537e-05/0.5709, allocations: 4.375 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001893/0.5711, allocations: 89.75 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.5711, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.5712, allocations: 3.938 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.5712, allocations: 4 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001426/0.5713, allocations: 55.95 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005326/0.5719, allocations: 332.7 kB / 1.022 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/0.5721, allocations: 86.7 kB / 1.022 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.204e-05/0.5722, allocations: 40.83 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.5722, allocations: 0 / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.5724, allocations: 99.28 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.5724, allocations: 0 / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004253/0.5729, allocations: 181.4 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.5729, allocations: 55.41 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.573, allocations: 143.5 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.5731, allocations: 29.7 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.94e-05/0.5731, allocations: 96.05 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.722e-05/0.5731, allocations: 27.64 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.604e-05/0.5732, allocations: 33.7 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.5733, allocations: 326.8 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.778e-05/0.5734, allocations: 31.98 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.5735, allocations: 65.12 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.5737, allocations: 113 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.5737, allocations: 3.938 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002544/0.574, allocations: 133.4 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.574, allocations: 8 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.574, allocations: 0 / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.574, allocations: 4 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.5741, allocations: 16.12 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.5741, allocations: 0 / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.5742, allocations: 19.98 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.5743, allocations: 8 kB / 1.023 GB, free: 12.49 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 (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.0001076/0.5744, allocations: 133.6 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.176e-05/0.5744, allocations: 7.906 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003519/0.5748, allocations: 166.3 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.5748, allocations: 0 / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.5748, allocations: 4 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.5748, allocations: 3.984 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006026/0.5754, allocations: 473.9 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.5754, allocations: 0 / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.077e-05/0.5755, allocations: 19.92 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.5755, allocations: 0 / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.5755, allocations: 0 / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.5755, allocations: 7.938 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.5755, allocations: 4 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003149/0.5759, allocations: 247.4 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.4e-05/0.5759, allocations: 88.86 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.966e-05/0.576, allocations: 7.984 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.5761, allocations: 15.94 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.5761, allocations: 7.984 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.5762, allocations: 11.98 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.496e-05/0.5762, allocations: 104.8 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5762, allocations: 4 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002933/0.5765, allocations: 47.98 kB / 1.024 GB, free: 11.06 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 (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.0007838/0.5773, allocations: 0.8313 MB / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002532/0.5776, allocations: 100 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.5776, allocations: 0 / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.5777, allocations: 63.91 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.5781, allocations: 37.08 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.5798, allocations: 1.673 MB / 1.027 GB, free: 8.234 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.5801, allocations: 0.7041 MB / 1.028 GB, free: 7.504 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.012e-05/0.5802, allocations: 8.547 kB / 1.028 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.612e-05/0.5802, allocations: 35.42 kB / 1.028 GB, free: 7.465 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.5802, allocations: 0 / 1.028 GB, free: 7.465 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01838/0.5986, allocations: 3.413 MB / 1.031 GB, free: 4.164 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.909/7.508, allocations: 14.5 kB / 1.031 GB, free: 4.152 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches