Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.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.Love1998Light1,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",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.008424/0.008424, allocations: 102.2 kB / 15.73 MB, free: 6.055 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.002022/0.002022, allocations: 194.3 kB / 16.68 MB, free: 5.965 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.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.481/2.481, allocations: 437 MB / 0.7105 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001376, allocations: 68.11 kB / 1.018 GB, free: 10 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8309/0.8323, allocations: 151.6 MB / 1.166 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1): time 0.00316/0.8355, allocations: 1.503 MB / 1.168 GB, free: 2.336 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001498/0.837, allocations: 0.7596 MB / 1.168 GB, free: 1.57 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.484e-05/0.8371, allocations: 0 / 1.168 GB, free: 1.57 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.2e-05/0.8372, allocations: 3.938 kB / 1.168 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001104/0.8373, allocations: 27.73 kB / 1.168 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006293/0.838, allocations: 127.6 kB / 1.168 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000137/0.8381, allocations: 79.77 kB / 1.169 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.416e-05/0.8382, allocations: 11.98 kB / 1.169 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.8383, allocations: 43.8 kB / 1.169 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.56e-05/0.8384, allocations: 39.81 kB / 1.169 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.146e-05/0.8385, allocations: 12 kB / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002174/0.8387, allocations: 99.84 kB / 1.169 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.499e-05/0.8387, allocations: 15.98 kB / 1.169 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.002e-05/0.8388, allocations: 31.8 kB / 1.169 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003069/0.8391, allocations: 137.9 kB / 1.169 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.8391, allocations: 8 kB / 1.169 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.563e-06/0.8391, allocations: 0 / 1.169 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.8392, allocations: 0 / 1.169 GB, free: 0.9453 MB / 0.8887 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.0008277/0.84, allocations: 470.4 kB / 1.169 GB, free: 436 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.84, allocations: 16.86 kB / 1.169 GB, free: 420 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.057e-05/0.8401, allocations: 42.73 kB / 1.169 GB, free: 368 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.542e-05/0.8402, allocations: 8.844 kB / 1.169 GB, free: 360 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.8403, allocations: 176.2 kB / 1.17 GB, free: 144 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.8403, allocations: 8.375 kB / 1.17 GB, free: 136 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.8404, allocations: 4.375 kB / 1.17 GB, free: 132 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/0.8406, allocations: 77.77 kB / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.8406, allocations: 0 / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.8406, allocations: 0 / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.8406, allocations: 8 kB / 1.17 GB, free: 40 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001414/0.8408, allocations: 39.91 kB / 1.17 GB, free: 0 / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005836/0.8414, allocations: 316.8 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001588/0.8415, allocations: 58.56 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.154e-05/0.8416, allocations: 36.84 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.8417, allocations: 7.984 kB / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002994/0.842, allocations: 95.53 kB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.853e-06/0.842, allocations: 0 / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0004232/0.8424, allocations: 153.5 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.8425, allocations: 59.39 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.8426, allocations: 131.4 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.8426, allocations: 29.7 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.603e-05/0.8427, allocations: 92.73 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.879e-05/0.8427, allocations: 23.66 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.649e-05/0.8428, allocations: 33.7 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.8429, allocations: 322.8 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.97e-05/0.843, allocations: 31.92 kB / 1.171 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.8431, allocations: 77.06 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.8433, allocations: 101.1 kB / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.8433, allocations: 0 / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002523/0.8435, allocations: 129.5 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.8436, allocations: 6.5 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.8436, allocations: 0 / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.8436, allocations: 4 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.8437, allocations: 19.98 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.8437, allocations: 3.938 kB / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.8439, allocations: 16.11 kB / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.8439, allocations: 7.938 kB / 1.171 GB, free: 14.11 MB / 0.9044 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.0001057/0.844, allocations: 128 kB / 1.172 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.016e-05/0.844, allocations: 7.906 kB / 1.172 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003336/0.8444, allocations: 153.9 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.8444, allocations: 0 / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.8444, allocations: 0 / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.8444, allocations: 4 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005981/0.845, allocations: 426.2 kB / 1.172 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.845, allocations: 0 / 1.172 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.37e-05/0.8451, allocations: 15.98 kB / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.8451, allocations: 0 / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.8451, allocations: 8 kB / 1.172 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.856e-06/0.8451, allocations: 3.938 kB / 1.172 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.8452, allocations: 0 / 1.172 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.8455, allocations: 227.6 kB / 1.172 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.8455, allocations: 88.95 kB / 1.172 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.8455, allocations: 4 kB / 1.172 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.8457, allocations: 19.86 kB / 1.172 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.143e-05/0.8457, allocations: 11.98 kB / 1.172 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.127e-05/0.8458, allocations: 7.984 kB / 1.172 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.77e-05/0.8458, allocations: 100.4 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8458, allocations: 0 / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003766/0.8462, allocations: 36 kB / 1.173 GB, free: 12.79 MB / 0.9044 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.0008911/0.8471, allocations: 0.8335 MB / 1.173 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002461/0.8474, allocations: 91.86 kB / 1.174 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8474, allocations: 0 / 1.174 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.8475, allocations: 43.98 kB / 1.174 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.8478, allocations: 16.17 kB / 1.174 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.8495, allocations: 1.591 MB / 1.175 GB, free: 10.1 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.8497, allocations: 0.6924 MB / 1.176 GB, free: 9.379 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.86e-05/0.8498, allocations: 8.438 kB / 1.176 GB, free: 9.371 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.252e-05/0.8499, allocations: 31.42 kB / 1.176 GB, free: 9.34 MB / 0.9044 GB Notification: Performance of SimCode: time 4.31e-07/0.8499, allocations: 3.938 kB / 1.176 GB, free: 9.336 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01834/0.8682, allocations: 3.091 MB / 1.179 GB, free: 6.363 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.892/8.761, allocations: 13.34 kB / 1.179 GB, free: 6.355 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.fmu > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.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