Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Reinhart2003Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_9_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.005222/0.005222, allocations: 101.3 kB / 15.73 MB, free: 6.039 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.002141/0.002141, allocations: 199.9 kB / 16.67 MB, free: 5.977 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.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.381/2.381, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 61.23 kB / 0.9504 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.268, allocations: 140.4 MB / 1.087 GB, free: 2.152 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002595/0.2707, allocations: 1.54 MB / 1.089 GB, free: 0.5977 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.2719, allocations: 0.7765 MB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.255e-05/0.272, allocations: 0 / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.076e-05/0.272, allocations: 7.875 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.568e-05/0.2721, allocations: 19.8 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005063/0.2726, allocations: 131.6 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00014/0.2728, allocations: 99.64 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.2729, allocations: 19.97 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.716e-05/0.273, allocations: 47.78 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.001e-05/0.2731, allocations: 43.83 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.2731, allocations: 8 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001933/0.2733, allocations: 91.91 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.486e-05/0.2734, allocations: 23.91 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.398e-05/0.2734, allocations: 47.78 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.2737, allocations: 166.3 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.959e-05/0.2737, allocations: 4 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.923e-06/0.2737, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.2737, allocations: 4 kB / 1.09 GB, free: 15.12 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008347/0.2746, allocations: 0.497 MB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.2746, allocations: 8.031 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.219e-05/0.2747, allocations: 34.73 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.911e-05/0.2747, allocations: 12.84 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.2749, allocations: 182.1 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.2749, allocations: 8.359 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.989e-05/0.2749, allocations: 12.31 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002108/0.2752, allocations: 85.77 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.2752, allocations: 0 / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.2752, allocations: 0 / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.237e-06/0.2752, allocations: 0 / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001506/0.2754, allocations: 47.97 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005838/0.276, allocations: 344.5 kB / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002114/0.2762, allocations: 74.67 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.454e-05/0.2763, allocations: 44.83 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.2763, allocations: 3.938 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002393/0.2766, allocations: 103.3 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.2766, allocations: 4 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004334/0.277, allocations: 177.5 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.2771, allocations: 59.39 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.2772, allocations: 139.3 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.2772, allocations: 33.7 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.237e-05/0.2773, allocations: 100.1 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.2773, allocations: 19.72 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.173e-05/0.2774, allocations: 37.7 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.632e-05/0.2775, allocations: 326.8 kB / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.861e-05/0.2775, allocations: 31.97 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.737e-05/0.2776, allocations: 69.02 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001914/0.2778, allocations: 113 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2779, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002317/0.2781, allocations: 133.4 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2781, allocations: 8 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.2781, allocations: 96 / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.2781, allocations: 8 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.2783, allocations: 23.91 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.2783, allocations: 3.938 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.2784, allocations: 15.91 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.2784, allocations: 7.984 kB / 1.093 GB, free: 12.11 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,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 8.831e-05/0.2785, allocations: 123.2 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.001e-05/0.2785, allocations: 7.906 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000342/0.2789, allocations: 174.3 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2789, allocations: 4 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2789, allocations: 0 / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-06/0.2789, allocations: 0 / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005899/0.2795, allocations: 466.2 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.2795, allocations: 0 / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.502e-05/0.2796, allocations: 15.98 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.2796, allocations: 4 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.2796, allocations: 0 / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.2796, allocations: 3.938 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2796, allocations: 3.984 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003324/0.28, allocations: 257 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.377e-05/0.28, allocations: 85.16 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.2801, allocations: 3.984 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.2802, allocations: 23.92 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.606e-05/0.2803, allocations: 7.984 kB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.2803, allocations: 4 kB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.21e-05/0.2804, allocations: 113.2 kB / 1.094 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2804, allocations: 0 / 1.094 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003296/0.2807, allocations: 48 kB / 1.094 GB, free: 10.69 MB / 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 (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.0007633/0.2815, allocations: 0.8442 MB / 1.095 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000254/0.2817, allocations: 95.83 kB / 1.095 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2817, allocations: 0 / 1.095 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001213/0.2819, allocations: 56.11 kB / 1.095 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003012/0.2822, allocations: 23.86 kB / 1.095 GB, free: 9.668 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.2838, allocations: 1.676 MB / 1.097 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.2841, allocations: 0.7041 MB / 1.098 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.05e-05/0.2841, allocations: 8.562 kB / 1.098 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.526e-05/0.2842, allocations: 39.36 kB / 1.098 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.2842, allocations: 0 / 1.098 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01847/0.3027, allocations: 3.458 MB / 1.101 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.205/7.508, allocations: 10.27 kB / 1.101 GB, free: 3.762 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches