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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_9_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.001008/0.001008, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.0079/0.0079, allocations: 171.2 kB / 16.26 MB, free: 6.613 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.206/1.206, allocations: 223.3 MB / 240.3 MB, free: 5.359 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.06/2.06, allocations: 390.9 MB / 0.6664 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002816/0.0002817, allocations: 8 kB / 0.8161 GB, free: 13.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5234/0.5237, allocations: 142.4 MB / 0.9552 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.001228/0.525, allocations: 1.254 MB / 0.9564 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009535/0.5259, allocations: 0.7518 MB / 0.9571 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.613e-05/0.526, allocations: 3.938 kB / 0.9571 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.503e-05/0.526, allocations: 3.984 kB / 0.9571 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.54e-05/0.5261, allocations: 14.3 kB / 0.9572 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.5265, allocations: 114.3 kB / 0.9573 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.824e-05/0.5266, allocations: 91.86 kB / 0.9573 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.916e-05/0.5266, allocations: 22.27 kB / 0.9574 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.655e-05/0.5267, allocations: 45.98 kB / 0.9574 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.19e-05/0.5268, allocations: 40.81 kB / 0.9575 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.5268, allocations: 4 kB / 0.9575 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.527, allocations: 90.78 kB / 0.9575 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.019e-05/0.527, allocations: 22.89 kB / 0.9576 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.213e-05/0.527, allocations: 61.94 kB / 0.9576 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001642/0.5272, allocations: 161.1 kB / 0.9578 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.5272, allocations: 0 / 0.9578 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.132e-06/0.5272, allocations: 0 / 0.9578 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.507e-06/0.5272, allocations: 4 kB / 0.9578 GB, free: 5.617 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.0005186/0.5277, allocations: 490.6 kB / 0.9582 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.823e-05/0.5278, allocations: 10.78 kB / 0.9583 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.109e-05/0.5278, allocations: 40.55 kB / 0.9583 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.688e-05/0.5278, allocations: 13.03 kB / 0.9583 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.399e-05/0.5279, allocations: 192 kB / 0.9585 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.5279, allocations: 3.031 kB / 0.9585 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.621e-05/0.528, allocations: 12.36 kB / 0.9585 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001511/0.5281, allocations: 85.02 kB / 0.9586 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.141e-06/0.5281, allocations: 1.344 kB / 0.9586 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.5282, allocations: 0 / 0.9586 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.5282, allocations: 1.281 kB / 0.9586 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000133/0.5283, allocations: 53.19 kB / 0.9586 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003987/0.5287, allocations: 341.8 kB / 0.959 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.5289, allocations: 83.14 kB / 0.959 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.021e-05/0.529, allocations: 44.8 kB / 0.9591 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.47e-05/0.529, allocations: 1.312 kB / 0.9591 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001728/0.5292, allocations: 107.9 kB / 0.9592 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.5292, allocations: 0 / 0.9592 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003564/0.5295, allocations: 177 kB / 0.9594 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.186e-05/0.5296, allocations: 57.61 kB / 0.9594 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.485e-05/0.5297, allocations: 144.4 kB / 0.9596 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.5297, allocations: 27.14 kB / 0.9596 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.871e-05/0.5297, allocations: 103.4 kB / 0.9597 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.099e-05/0.5297, allocations: 24.62 kB / 0.9597 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.618e-05/0.5298, allocations: 26.73 kB / 0.9597 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.494e-05/0.5298, allocations: 332.5 kB / 0.96 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.919e-05/0.5299, allocations: 29.27 kB / 0.9601 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.072e-05/0.53, allocations: 78.2 kB / 0.9601 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.5301, allocations: 110.6 kB / 0.9603 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.5301, allocations: 1.469 kB / 0.9603 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002133/0.5304, allocations: 142.1 kB / 0.9604 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.5304, allocations: 5.5 kB / 0.9604 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.5304, allocations: 1.375 kB / 0.9604 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.127e-06/0.5304, allocations: 2.75 kB / 0.9604 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.384e-05/0.5305, allocations: 21.67 kB / 0.9604 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.5305, allocations: 1.375 kB / 0.9604 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.552e-05/0.5306, allocations: 21.52 kB / 0.9604 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.5306, allocations: 9.562 kB / 0.9605 GB, free: 3.156 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 5.946e-05/0.5307, allocations: 127.2 kB / 0.9606 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/0.5307, allocations: 9.406 kB / 0.9606 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002871/0.531, allocations: 176.5 kB / 0.9608 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.531, allocations: 1.375 kB / 0.9608 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.531, allocations: 5.375 kB / 0.9608 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.531, allocations: 4 kB / 0.9608 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004693/0.5315, allocations: 468.1 kB / 0.9612 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.5315, allocations: 1.375 kB / 0.9612 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.2e-05/0.5316, allocations: 11 kB / 0.9612 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.5316, allocations: 5.375 kB / 0.9612 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.5316, allocations: 9.359 kB / 0.9612 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.5316, allocations: 3.938 kB / 0.9612 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.5316, allocations: 1.375 kB / 0.9612 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002446/0.5319, allocations: 253.1 kB / 0.9615 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.166e-05/0.5319, allocations: 92.89 kB / 0.9616 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.5319, allocations: 5.344 kB / 0.9616 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.532, allocations: 19.33 kB / 0.9616 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.5321, allocations: 9.859 kB / 0.9616 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.5321, allocations: 8.234 kB / 0.9616 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.579e-05/0.5322, allocations: 105.1 kB / 0.9617 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5322, allocations: 3.938 kB / 0.9617 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002853/0.5325, allocations: 49.17 kB / 0.9618 GB, free: 2.062 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.0005676/0.533, allocations: 0.8434 MB / 0.9626 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002119/0.5333, allocations: 99.27 kB / 0.9627 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.5333, allocations: 0 / 0.9627 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.5334, allocations: 59.28 kB / 0.9627 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.5337, allocations: 22.95 kB / 0.9628 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.535, allocations: 1.717 MB / 0.9644 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.5352, allocations: 0.7011 MB / 0.9651 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.706e-05/0.5353, allocations: 6.312 kB / 0.9651 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.613e-05/0.5353, allocations: 33.83 kB / 0.9652 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.5354, allocations: 0 / 0.9652 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.04/1.575, allocations: 3.086 MB / 0.9682 GB, free: 13.49 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002189/1.576, allocations: 259.9 kB / 0.9684 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/3.229, allocations: 0 / 0.9684 GB, free: 13.23 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > 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