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.001101/0.001101, 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.001168/0.001168, allocations: 196.6 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.495/1.495, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.577/2.577, allocations: 437.1 MB / 0.7104 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 67.89 kB / 0.8693 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7183/0.7196, allocations: 151.6 MB / 1.017 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003187/0.7229, allocations: 1.545 MB / 1.019 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001328/0.7242, allocations: 0.7672 MB / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.117e-05/0.7243, allocations: 0 / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.024e-05/0.7244, allocations: 11.88 kB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.7245, allocations: 23.78 kB / 1.02 GB, free: 156 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006394/0.7251, allocations: 127.6 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001619/0.7253, allocations: 99.77 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.7254, allocations: 11.98 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.7256, allocations: 47.72 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.111e-05/0.7257, allocations: 51.75 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.58e-05/0.7257, allocations: 12 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002153/0.7259, allocations: 95.91 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.727e-05/0.726, allocations: 23.86 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.93e-05/0.726, allocations: 47.78 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002846/0.7263, allocations: 161.8 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.7263, allocations: 4 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.944e-06/0.7263, allocations: 0 / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.012e-06/0.7264, allocations: 0 / 1.02 GB, free: 15.48 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.0008766/0.7272, allocations: 0.4963 MB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.7273, allocations: 8.031 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.216e-05/0.7274, allocations: 34.75 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.777e-05/0.7274, allocations: 12.84 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001606/0.7276, allocations: 190 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.7276, allocations: 8.312 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.7276, allocations: 4.375 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002161/0.7279, allocations: 89.7 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.7279, allocations: 0 / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.7279, allocations: 4 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.7279, allocations: 0 / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000158/0.7281, allocations: 51.95 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006387/0.7287, allocations: 340.6 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.729, allocations: 82.67 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.252e-05/0.7291, allocations: 40.83 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.7291, allocations: 0 / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.7294, allocations: 99.38 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.542e-06/0.7294, allocations: 0 / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004763/0.7299, allocations: 185.7 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.7299, allocations: 51.41 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.7301, allocations: 143.2 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.7301, allocations: 29.7 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.344e-05/0.7302, allocations: 96.05 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.614e-05/0.7302, allocations: 27.64 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.897e-05/0.7303, allocations: 33.7 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.7304, allocations: 326.8 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.87e-05/0.7305, allocations: 31.98 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.7307, allocations: 69.06 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.7309, allocations: 109.1 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.7309, allocations: 0 / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002756/0.7311, allocations: 137.4 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.7312, allocations: 10.19 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.7312, allocations: 0 / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.7312, allocations: 4 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.7313, allocations: 19.92 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.7314, allocations: 4.094 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.7315, allocations: 19.89 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.7315, allocations: 4 kB / 1.023 GB, free: 12.48 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.0001127/0.7316, allocations: 127.2 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.702e-05/0.7316, allocations: 11.91 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003623/0.732, allocations: 166.3 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.732, allocations: 4 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.732, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.732, allocations: 3.984 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006426/0.7327, allocations: 473.8 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.7327, allocations: 3.984 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.23e-05/0.7328, allocations: 12 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/0.7328, allocations: 3.984 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.7328, allocations: 0 / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.171e-06/0.7328, allocations: 15.94 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.7328, allocations: 0 / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000322/0.7332, allocations: 247.3 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.017e-05/0.7332, allocations: 92.86 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/0.7333, allocations: 4 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.7334, allocations: 15.92 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.967e-05/0.7334, allocations: 11.98 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.7335, allocations: 7.984 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.514e-05/0.7336, allocations: 105 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7336, allocations: 0 / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003572/0.7339, allocations: 51.98 kB / 1.024 GB, free: 11.05 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.0009105/0.7348, allocations: 0.8303 MB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002901/0.7351, allocations: 95.89 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.7352, allocations: 0 / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001317/0.7353, allocations: 63.91 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.7356, allocations: 27.97 kB / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.7375, allocations: 1.673 MB / 1.027 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.7377, allocations: 0.7002 MB / 1.028 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.706e-05/0.7378, allocations: 12.81 kB / 1.028 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.716e-05/0.7379, allocations: 35.42 kB / 1.028 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of SimCode: time 4.31e-07/0.7379, allocations: 0 / 1.028 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02157/0.7595, allocations: 3.415 MB / 1.031 GB, free: 4.168 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.317/8.076, allocations: 22.61 kB / 1.031 GB, free: 4.148 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[575]=3600.000000 File[1254]=2249.280000 Error: Could not read variable lig.occ in file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.on from file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv failed! " Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:time,lig.ill,lig.pArriv,lig.pInter,booleanPulse.period,booleanPulse.startTime