Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 105.7 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 185.9 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 225.6 MB / 249.3 MB, free: 3.168 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.482/2.482, allocations: 476.7 MB / 0.7628 GB, free: 15.14 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_11_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 63.91 kB / 1.107 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7448/0.7466, allocations: 168.7 MB / 1.271 GB, free: 7.723 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002433/0.749, allocations: 1.576 MB / 1.273 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001125/0.7502, allocations: 0.7842 MB / 1.274 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.893e-05/0.7502, allocations: 0.7812 kB / 1.274 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.6e-05/0.7502, allocations: 6.25 kB / 1.274 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.375e-05/0.7503, allocations: 23.83 kB / 1.274 GB, free: 6.094 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004984/0.7508, allocations: 133.2 kB / 1.274 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.00014/0.7509, allocations: 97.17 kB / 1.274 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.345e-05/0.751, allocations: 10 kB / 1.274 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.974e-05/0.7511, allocations: 44.02 kB / 1.274 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.854e-05/0.7512, allocations: 50.73 kB / 1.274 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.201e-05/0.7512, allocations: 7.156 kB / 1.274 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.7514, allocations: 105.8 kB / 1.274 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.784e-05/0.7514, allocations: 29.95 kB / 1.274 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.191e-05/0.7515, allocations: 41.36 kB / 1.274 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002389/0.7517, allocations: 162 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.7517, allocations: 1.797 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.222e-06/0.7517, allocations: 0 / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.7517, allocations: 0 / 1.274 GB, free: 5.805 MB / 0.9981 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.0006339/0.7524, allocations: 0.5072 MB / 1.275 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.7524, allocations: 10.19 kB / 1.275 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.614e-05/0.7524, allocations: 40.47 kB / 1.275 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.458e-05/0.7525, allocations: 11.53 kB / 1.275 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.161e-05/0.7526, allocations: 185.5 kB / 1.275 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.7526, allocations: 7.031 kB / 1.275 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.031e-05/0.7526, allocations: 5.266 kB / 1.275 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.7528, allocations: 82.3 kB / 1.275 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.7528, allocations: 0 / 1.275 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.7528, allocations: 4.719 kB / 1.275 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.7528, allocations: 0.9375 kB / 1.275 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.7529, allocations: 60.34 kB / 1.275 GB, free: 4.961 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004148/0.7533, allocations: 328.4 kB / 1.276 GB, free: 4.664 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/0.7535, allocations: 81.56 kB / 1.276 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.416e-05/0.7536, allocations: 38.08 kB / 1.276 GB, free: 4.594 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.7536, allocations: 1.562 kB / 1.276 GB, free: 4.594 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001845/0.7538, allocations: 100.7 kB / 1.276 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.7538, allocations: 0 / 1.276 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0003958/0.7542, allocations: 172.4 kB / 1.276 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.458e-05/0.7542, allocations: 57.22 kB / 1.276 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.623e-05/0.7543, allocations: 147 kB / 1.276 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.7543, allocations: 27.23 kB / 1.276 GB, free: 4.238 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.196e-05/0.7544, allocations: 102.7 kB / 1.276 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.7544, allocations: 26.95 kB / 1.276 GB, free: 4.121 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.702e-05/0.7544, allocations: 37.45 kB / 1.276 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.728e-05/0.7545, allocations: 323.1 kB / 1.277 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.376e-05/0.7545, allocations: 29.92 kB / 1.277 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.411e-05/0.7546, allocations: 75.94 kB / 1.277 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.7548, allocations: 97.58 kB / 1.277 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.7548, allocations: 4 kB / 1.277 GB, free: 3.629 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002241/0.755, allocations: 140.6 kB / 1.277 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.755, allocations: 7.219 kB / 1.277 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.755, allocations: 1.875 kB / 1.277 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.755, allocations: 2.438 kB / 1.277 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.7551, allocations: 24.73 kB / 1.277 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.7552, allocations: 2.406 kB / 1.277 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.636e-05/0.7552, allocations: 14.12 kB / 1.277 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.7553, allocations: 14.06 kB / 1.277 GB, free: 3.539 MB / 0.9981 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 5.979e-05/0.7553, allocations: 128.3 kB / 1.277 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.065e-05/0.7553, allocations: 12.47 kB / 1.277 GB, free: 3.402 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000317/0.7557, allocations: 171.1 kB / 1.277 GB, free: 3.316 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.7557, allocations: 5.797 kB / 1.277 GB, free: 3.312 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.7557, allocations: 0 / 1.277 GB, free: 3.312 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.7557, allocations: 3.984 kB / 1.277 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000507/0.7562, allocations: 466 kB / 1.278 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.7562, allocations: 0 / 1.278 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.066e-05/0.7563, allocations: 17.45 kB / 1.278 GB, free: 2.938 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.7563, allocations: 0.6562 kB / 1.278 GB, free: 2.938 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.7563, allocations: 3.125 kB / 1.278 GB, free: 2.938 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.7563, allocations: 6.375 kB / 1.278 GB, free: 2.934 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.7563, allocations: 4.656 kB / 1.278 GB, free: 2.93 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002831/0.7566, allocations: 250.5 kB / 1.278 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.262e-05/0.7566, allocations: 94.52 kB / 1.278 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.232e-05/0.7566, allocations: 5.906 kB / 1.278 GB, free: 2.648 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.7567, allocations: 11.8 kB / 1.278 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.826e-05/0.7568, allocations: 12.88 kB / 1.278 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.7568, allocations: 5.406 kB / 1.278 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.81e-05/0.7568, allocations: 106.9 kB / 1.278 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.7568, allocations: 4 kB / 1.278 GB, free: 2.555 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002963/0.7571, allocations: 44.38 kB / 1.278 GB, free: 2.547 MB / 0.9981 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.0006217/0.7578, allocations: 0.8419 MB / 1.279 GB, free: 1.824 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002265/0.758, allocations: 90.55 kB / 1.279 GB, free: 1.801 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.758, allocations: 0 / 1.279 GB, free: 1.801 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.7581, allocations: 51.5 kB / 1.279 GB, free: 1.785 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/0.7584, allocations: 25.31 kB / 1.279 GB, free: 1.773 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.7598, allocations: 1.698 MB / 1.281 GB, free: 16.32 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.7601, allocations: 0.7006 MB / 1.282 GB, free: 15.63 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.34e-05/0.7601, allocations: 14.97 kB / 1.282 GB, free: 15.62 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.798e-05/0.7602, allocations: 34.05 kB / 1.282 GB, free: 15.61 MB / 1.014 GB Notification: Performance of SimCode: time 3.81e-07/0.7602, allocations: 4 kB / 1.282 GB, free: 15.6 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02573/0.7859, allocations: 3.469 MB / 1.285 GB, free: 15.05 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.157/7.942, allocations: 4.984 kB / 1.285 GB, free: 15.05 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_11_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.AInter,lig.BArriv,lig.BInter,lig.CArriv,lig.CInter,lig.MArriv,lig.MInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.pInter,lig.samplePeriod,lig.seed,time [Calling sys.exit(0), Time elapsed: 13.214871902000596]