Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.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.Love1998Light2,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",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.007035/0.007034, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.0014/0.0014, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.643/2.643, allocations: 437 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 59.91 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3436, allocations: 151.6 MB / 1.166 GB, free: 7.336 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.003559/0.3472, allocations: 1.494 MB / 1.168 GB, free: 5.824 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001609/0.3488, allocations: 0.7634 MB / 1.168 GB, free: 5.055 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.67e-05/0.3489, allocations: 4 kB / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.978e-05/0.349, allocations: 7.875 kB / 1.168 GB, free: 5.043 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001129/0.3491, allocations: 11.88 kB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007272/0.3499, allocations: 123.6 kB / 1.168 GB, free: 4.91 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000165/0.35, allocations: 91.69 kB / 1.169 GB, free: 4.82 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.3502, allocations: 11.98 kB / 1.169 GB, free: 4.809 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.3503, allocations: 39.86 kB / 1.169 GB, free: 4.77 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.374e-05/0.3504, allocations: 39.83 kB / 1.169 GB, free: 4.73 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.613e-05/0.3504, allocations: 8 kB / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002642/0.3507, allocations: 99.84 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.817e-05/0.3508, allocations: 19.91 kB / 1.169 GB, free: 4.605 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.428e-05/0.3508, allocations: 39.78 kB / 1.169 GB, free: 4.566 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003539/0.3512, allocations: 146.5 kB / 1.169 GB, free: 4.426 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3512, allocations: 0 / 1.169 GB, free: 4.426 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.003e-06/0.3512, allocations: 0 / 1.169 GB, free: 4.426 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.3512, allocations: 0 / 1.169 GB, free: 4.426 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0008535/0.3521, allocations: 467.4 kB / 1.169 GB, free: 3.91 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.3522, allocations: 12.03 kB / 1.169 GB, free: 3.898 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.07e-05/0.3522, allocations: 42.69 kB / 1.169 GB, free: 3.848 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.281e-05/0.3523, allocations: 8.844 kB / 1.169 GB, free: 3.84 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.3525, allocations: 172.3 kB / 1.17 GB, free: 3.633 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.3525, allocations: 8.375 kB / 1.17 GB, free: 3.625 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/0.3525, allocations: 4.375 kB / 1.17 GB, free: 3.621 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.3527, allocations: 81.77 kB / 1.17 GB, free: 3.535 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.3528, allocations: 0 / 1.17 GB, free: 3.535 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.3528, allocations: 3.938 kB / 1.17 GB, free: 3.531 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/0.3528, allocations: 0 / 1.17 GB, free: 3.531 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.3529, allocations: 47.91 kB / 1.17 GB, free: 3.484 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006457/0.3536, allocations: 312.7 kB / 1.17 GB, free: 3.129 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.3538, allocations: 70.58 kB / 1.17 GB, free: 3.051 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.449e-05/0.3539, allocations: 33 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.3539, allocations: 7.984 kB / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/0.3542, allocations: 91.3 kB / 1.17 GB, free: 2.906 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 1.943e-06/0.3542, allocations: 0 / 1.17 GB, free: 2.906 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.000438/0.3546, allocations: 161.5 kB / 1.17 GB, free: 2.742 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.154e-05/0.3547, allocations: 55.41 kB / 1.17 GB, free: 2.676 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.3548, allocations: 132.6 kB / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.3549, allocations: 29.7 kB / 1.171 GB, free: 2.504 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.825e-05/0.3549, allocations: 88.38 kB / 1.171 GB, free: 2.41 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/0.355, allocations: 23.7 kB / 1.171 GB, free: 2.387 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/0.3551, allocations: 33.7 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.3552, allocations: 322.8 kB / 1.171 GB, free: 2.023 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.139e-05/0.3553, allocations: 35.92 kB / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.3554, allocations: 61.14 kB / 1.171 GB, free: 1.91 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001906/0.3556, allocations: 101.1 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.3556, allocations: 0 / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002818/0.3559, allocations: 129.5 kB / 1.171 GB, free: 1.66 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.3559, allocations: 8 kB / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.3559, allocations: 3.984 kB / 1.171 GB, free: 1.648 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.356, allocations: 4 kB / 1.171 GB, free: 1.645 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.3561, allocations: 20.05 kB / 1.171 GB, free: 1.625 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.3561, allocations: 4 kB / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.3562, allocations: 15.92 kB / 1.171 GB, free: 1.605 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.597e-05/0.3562, allocations: 8 kB / 1.171 GB, free: 1.598 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,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001116/0.3564, allocations: 117.8 kB / 1.172 GB, free: 1.473 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.276e-05/0.3564, allocations: 7.906 kB / 1.172 GB, free: 1.465 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003622/0.3568, allocations: 153.9 kB / 1.172 GB, free: 1.309 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.3568, allocations: 4 kB / 1.172 GB, free: 1.305 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.3568, allocations: 0 / 1.172 GB, free: 1.305 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3568, allocations: 3.984 kB / 1.172 GB, free: 1.301 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006548/0.3575, allocations: 434.2 kB / 1.172 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3575, allocations: 384 / 1.172 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.478e-05/0.3576, allocations: 11.98 kB / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.401e-06/0.3576, allocations: 0 / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.3576, allocations: 8 kB / 1.172 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.3576, allocations: 11.88 kB / 1.172 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3576, allocations: 0 / 1.172 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003557/0.358, allocations: 231.5 kB / 1.172 GB, free: 0.5469 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.865e-05/0.3581, allocations: 85.02 kB / 1.172 GB, free: 456 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.394e-05/0.3581, allocations: 0 / 1.172 GB, free: 456 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.3582, allocations: 11.92 kB / 1.172 GB, free: 444 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.104e-05/0.3583, allocations: 19.98 kB / 1.172 GB, free: 424 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.3583, allocations: 4 kB / 1.172 GB, free: 420 kB / 0.92 GB Notification: Performance of sorting global known variables: time 6.875e-05/0.3584, allocations: 91.27 kB / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.964e-06/0.3584, allocations: 0 / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003732/0.3588, allocations: 51.92 kB / 1.173 GB, free: 276 kB / 0.92 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 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.001127/0.3599, allocations: 0.814 MB / 1.173 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002846/0.3602, allocations: 84.14 kB / 1.174 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.3602, allocations: 4 kB / 1.174 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.3604, allocations: 56.09 kB / 1.174 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/0.3607, allocations: 23.86 kB / 1.174 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002108/0.3628, allocations: 1.601 MB / 1.175 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.3632, allocations: 0.6924 MB / 1.176 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.884e-05/0.3632, allocations: 12.42 kB / 1.176 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.582e-05/0.3633, allocations: 31.42 kB / 1.176 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of SimCode: time 3.3e-07/0.3633, allocations: 0 / 1.176 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02464/0.388, allocations: 3.083 MB / 1.179 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.876/8.264, allocations: 9.922 kB / 1.179 GB, free: 9.84 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.fmu > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,lig.ill,lig.occ,lig.p,lig.on Variables in the result:ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.B,lig.M,lig.ill,lig.occ,lig.on,lig.p,lig.samplePeriod,lig.seed,occ.period,occ.startTime,occ.width,occ.y,time