Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Love1998Light1,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,fileNamePrefix="Buildings_9_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.008168/0.008168, allocations: 106 kB / 15.74 MB, free: 5.992 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.001798/0.001798, allocations: 196 kB / 16.67 MB, free: 5.914 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.17/2.17, allocations: 390.3 MB / 0.6648 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 67.91 kB / 0.9504 GB, free: 8.176 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9141/0.9155, allocations: 140.4 MB / 1.087 GB, free: 5.168 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1): time 0.002273/0.9178, allocations: 1.508 MB / 1.089 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.9188, allocations: 0.7465 MB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.893e-05/0.9189, allocations: 1.125 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.798e-05/0.9189, allocations: 9.234 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.999e-05/0.919, allocations: 19.19 kB / 1.09 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004731/0.9195, allocations: 125.8 kB / 1.09 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001147/0.9196, allocations: 90.08 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.178e-05/0.9197, allocations: 7.281 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.605e-05/0.9198, allocations: 45.58 kB / 1.09 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.736e-05/0.9199, allocations: 37.19 kB / 1.09 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.853e-05/0.9199, allocations: 6.406 kB / 1.09 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.9201, allocations: 99.27 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.695e-05/0.9201, allocations: 24.55 kB / 1.09 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.385e-05/0.9202, allocations: 37.08 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.9204, allocations: 148 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.9204, allocations: 0 / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.124e-06/0.9204, allocations: 0.8906 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.9204, allocations: 1.156 kB / 1.09 GB, free: 3.336 MB / 0.8575 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.0005704/0.921, allocations: 456.1 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.921, allocations: 9.281 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.579e-05/0.9211, allocations: 37.62 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.136e-05/0.9211, allocations: 13 kB / 1.091 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.932e-05/0.9212, allocations: 179.7 kB / 1.091 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.9212, allocations: 7 kB / 1.091 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.9212, allocations: 4.875 kB / 1.091 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.9214, allocations: 79.91 kB / 1.091 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.9214, allocations: 0 / 1.091 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.9214, allocations: 1.547 kB / 1.091 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.9215, allocations: 1.625 kB / 1.091 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.9216, allocations: 41.69 kB / 1.091 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004309/0.922, allocations: 331.2 kB / 1.091 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.9222, allocations: 59 kB / 1.091 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.531e-05/0.9223, allocations: 36.62 kB / 1.091 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.9223, allocations: 1.25 kB / 1.091 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000209/0.9225, allocations: 100.6 kB / 1.092 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.9225, allocations: 0 / 1.092 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.000379/0.9229, allocations: 157.4 kB / 1.092 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.776e-05/0.923, allocations: 55.02 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.527e-05/0.9231, allocations: 126.6 kB / 1.092 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.9231, allocations: 27.56 kB / 1.092 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.4e-05/0.9231, allocations: 100.8 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.9231, allocations: 28.45 kB / 1.092 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.856e-05/0.9232, allocations: 32.03 kB / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.488e-05/0.9232, allocations: 324.9 kB / 1.092 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.387e-05/0.9233, allocations: 26.75 kB / 1.092 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.893e-05/0.9234, allocations: 76.08 kB / 1.092 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001529/0.9236, allocations: 95.28 kB / 1.093 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.9236, allocations: 0.8125 kB / 1.093 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002247/0.9238, allocations: 134.1 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.9238, allocations: 5.875 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.9238, allocations: 6.625 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.9239, allocations: 1.469 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.924, allocations: 14.31 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.924, allocations: 6.562 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.629e-05/0.9241, allocations: 10.12 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.9241, allocations: 5.703 kB / 1.093 GB, free: 1.164 MB / 0.8575 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 6.269e-05/0.9242, allocations: 129 kB / 1.093 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.716e-05/0.9242, allocations: 7.031 kB / 1.093 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002909/0.9245, allocations: 154.7 kB / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.9245, allocations: 1.406 kB / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.9245, allocations: 96 / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.9245, allocations: 5.844 kB / 1.093 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004624/0.925, allocations: 427.7 kB / 1.093 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.925, allocations: 0.7812 kB / 1.093 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.49e-05/0.9251, allocations: 18.25 kB / 1.093 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.9251, allocations: 0.75 kB / 1.093 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.9251, allocations: 2.781 kB / 1.093 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.9251, allocations: 5.031 kB / 1.093 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.9251, allocations: 1.344 kB / 1.093 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002503/0.9254, allocations: 223 kB / 1.094 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.17e-05/0.9254, allocations: 83.83 kB / 1.094 GB, free: 332 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/0.9254, allocations: 10.3 kB / 1.094 GB, free: 324 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.9255, allocations: 12.12 kB / 1.094 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.904e-05/0.9256, allocations: 16.06 kB / 1.094 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.9256, allocations: 5.547 kB / 1.094 GB, free: 312 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.232e-05/0.9257, allocations: 97.66 kB / 1.094 GB, free: 232 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9257, allocations: 0 / 1.094 GB, free: 232 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003022/0.926, allocations: 45.23 kB / 1.094 GB, free: 220 kB / 0.8575 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.0007086/0.9267, allocations: 0.8269 MB / 1.095 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002523/0.927, allocations: 88.78 kB / 1.095 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.927, allocations: 1.125 kB / 1.095 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.9271, allocations: 45.72 kB / 1.095 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.9274, allocations: 17.42 kB / 1.095 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001721/0.9291, allocations: 1.591 MB / 1.096 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.9293, allocations: 0.7021 MB / 1.097 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.595e-05/0.9294, allocations: 8.859 kB / 1.097 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.761e-05/0.9295, allocations: 24.44 kB / 1.097 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.9295, allocations: 0 / 1.097 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02542/0.9549, allocations: 3.146 MB / 1.1 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/9.178, allocations: 5.031 kB / 1.1 GB, free: 12.8 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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