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.007256/0.007256, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.001374/0.001375, allocations: 196.6 kB / 16.67 MB, free: 5.969 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.518/1.518, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.778/2.778, allocations: 437 MB / 0.7105 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 72.06 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3206, allocations: 151.6 MB / 1.166 GB, free: 7.328 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002944/0.3235, allocations: 1.545 MB / 1.168 GB, free: 5.77 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00151/0.3251, allocations: 0.7673 MB / 1.168 GB, free: 4.996 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.554e-05/0.3252, allocations: 0 / 1.168 GB, free: 4.996 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.033e-05/0.3252, allocations: 11.86 kB / 1.168 GB, free: 4.984 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000107/0.3253, allocations: 27.8 kB / 1.168 GB, free: 4.957 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005968/0.3259, allocations: 127.6 kB / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001641/0.3261, allocations: 99.62 kB / 1.169 GB, free: 4.734 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.54e-05/0.3262, allocations: 8 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.3263, allocations: 55.77 kB / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.505e-05/0.3265, allocations: 43.77 kB / 1.169 GB, free: 4.629 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.3265, allocations: 8 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002169/0.3267, allocations: 99.91 kB / 1.169 GB, free: 4.523 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.456e-05/0.3267, allocations: 23.91 kB / 1.169 GB, free: 4.5 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.97e-05/0.3268, allocations: 43.78 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000299/0.3271, allocations: 163.6 kB / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3271, allocations: 0 / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3272, allocations: 0 / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.3272, allocations: 0 / 1.169 GB, free: 4.297 MB / 0.92 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.0009444/0.3281, allocations: 0.5038 MB / 1.17 GB, free: 3.727 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.3282, allocations: 16.03 kB / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.395e-05/0.3282, allocations: 30.75 kB / 1.17 GB, free: 3.672 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.438e-05/0.3283, allocations: 12.84 kB / 1.17 GB, free: 3.66 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.3285, allocations: 184.2 kB / 1.17 GB, free: 3.441 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.3285, allocations: 8.375 kB / 1.17 GB, free: 3.434 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.3285, allocations: 4.375 kB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002203/0.3287, allocations: 85.7 kB / 1.17 GB, free: 3.34 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.3288, allocations: 0 / 1.17 GB, free: 3.34 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.3288, allocations: 0 / 1.17 GB, free: 3.34 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.3288, allocations: 8 kB / 1.17 GB, free: 3.332 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.329, allocations: 47.95 kB / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006474/0.3296, allocations: 336.6 kB / 1.17 GB, free: 2.906 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002201/0.3298, allocations: 86.55 kB / 1.17 GB, free: 2.812 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.92e-05/0.33, allocations: 44.84 kB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.33, allocations: 3.984 kB / 1.17 GB, free: 2.762 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002756/0.3303, allocations: 103.4 kB / 1.17 GB, free: 2.648 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.713e-06/0.3303, allocations: 0 / 1.17 GB, free: 2.648 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0004703/0.3308, allocations: 173.9 kB / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.3308, allocations: 59.34 kB / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.331, allocations: 144 kB / 1.171 GB, free: 2.254 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.331, allocations: 29.7 kB / 1.171 GB, free: 2.219 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.427e-05/0.3311, allocations: 92.14 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.287e-05/0.3311, allocations: 27.8 kB / 1.171 GB, free: 2.098 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.398e-05/0.3312, allocations: 33.7 kB / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3313, allocations: 326.8 kB / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.386e-05/0.3314, allocations: 31.92 kB / 1.171 GB, free: 1.699 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.3316, allocations: 77.06 kB / 1.171 GB, free: 1.605 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002063/0.3318, allocations: 105 kB / 1.172 GB, free: 1.484 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3318, allocations: 4 kB / 1.172 GB, free: 1.48 MB / 0.92 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002863/0.3321, allocations: 137.5 kB / 1.172 GB, free: 1.34 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.3321, allocations: 4 kB / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.3321, allocations: 4 kB / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.3321, allocations: 0 / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.3323, allocations: 19.92 kB / 1.172 GB, free: 1.312 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.3323, allocations: 4 kB / 1.172 GB, free: 1.309 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.3324, allocations: 16.03 kB / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.3324, allocations: 12 kB / 1.172 GB, free: 1.281 MB / 0.92 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.0001043/0.3325, allocations: 121.8 kB / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/0.3326, allocations: 11.95 kB / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003717/0.3329, allocations: 174.3 kB / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.3329, allocations: 4 kB / 1.172 GB, free: 0.9648 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.333, allocations: 0 / 1.172 GB, free: 0.9648 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.333, allocations: 3.984 kB / 1.172 GB, free: 0.9609 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006606/0.3336, allocations: 466.2 kB / 1.172 GB, free: 460 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.3336, allocations: 0 / 1.172 GB, free: 460 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.836e-05/0.3337, allocations: 12 kB / 1.172 GB, free: 448 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.3337, allocations: 3.984 kB / 1.173 GB, free: 444 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.3338, allocations: 4 kB / 1.173 GB, free: 440 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.3338, allocations: 3.938 kB / 1.173 GB, free: 436 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3338, allocations: 0 / 1.173 GB, free: 436 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.3341, allocations: 259.2 kB / 1.173 GB, free: 160 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.634e-05/0.3342, allocations: 93 kB / 1.173 GB, free: 48 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.367e-05/0.3342, allocations: 0 / 1.173 GB, free: 48 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.3344, allocations: 11.92 kB / 1.173 GB, free: 36 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.25e-05/0.3344, allocations: 19.92 kB / 1.173 GB, free: 16 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.3344, allocations: 7.984 kB / 1.173 GB, free: 8 kB / 0.92 GB Notification: Performance of sorting global known variables: time 9.906e-05/0.3345, allocations: 105.5 kB / 1.173 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3346, allocations: 4 kB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003204/0.3349, allocations: 51.81 kB / 1.173 GB, free: 15.85 MB / 0.9356 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.001001/0.3359, allocations: 0.8495 MB / 1.174 GB, free: 15 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002899/0.3362, allocations: 91.89 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3362, allocations: 4 kB / 1.174 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.3363, allocations: 55.91 kB / 1.174 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.3367, allocations: 19.92 kB / 1.174 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.3386, allocations: 1.684 MB / 1.176 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.3389, allocations: 0.704 MB / 1.176 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.388e-05/0.339, allocations: 8.547 kB / 1.176 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.501e-05/0.3391, allocations: 35.42 kB / 1.176 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of SimCode: time 2.004e-06/0.3391, allocations: 4 kB / 1.176 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02536/0.3644, allocations: 3.464 MB / 1.18 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.951/8.316, allocations: 15.81 kB / 1.18 GB, free: 8.902 MB / 0.9356 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