Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 104 kB / 16.35 MB, free: 6.289 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.00188/0.00188, allocations: 193.4 kB / 17.29 MB, free: 5.863 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.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.491/2.491, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 63.69 kB / 0.8773 GB, free: 11.03 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3182, allocations: 153 MB / 1.027 GB, free: 2.109 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002891/0.3211, allocations: 1.554 MB / 1.028 GB, free: 0.5508 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001441/0.3226, allocations: 0.7788 MB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.007e-05/0.3226, allocations: 4 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.118e-05/0.3227, allocations: 7.875 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.608e-05/0.3228, allocations: 19.8 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006133/0.3234, allocations: 131.6 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001694/0.3236, allocations: 99.64 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.3237, allocations: 15.98 kB / 1.029 GB, free: 15.49 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.3238, allocations: 47.78 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.69e-05/0.3239, allocations: 47.81 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.324, allocations: 8 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002039/0.3242, allocations: 91.92 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.456e-05/0.3242, allocations: 27.89 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.674e-05/0.3243, allocations: 39.8 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002755/0.3246, allocations: 171.5 kB / 1.03 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3246, allocations: 0 / 1.03 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.342e-06/0.3246, allocations: 0 / 1.03 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.832e-06/0.3246, allocations: 3.938 kB / 1.03 GB, free: 15.06 MB / 0.8106 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.0008277/0.3254, allocations: 0.4924 MB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3255, allocations: 8.031 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.892e-05/0.3255, allocations: 20.75 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/0.3257, allocations: 180.2 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.3257, allocations: 4.375 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.144e-05/0.3257, allocations: 8.375 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002042/0.326, allocations: 81.89 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.326, allocations: 0 / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.326, allocations: 4 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.326, allocations: 0 / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001492/0.3262, allocations: 51.94 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005828/0.3267, allocations: 348.6 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002137/0.327, allocations: 78.66 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.507e-05/0.3271, allocations: 44.78 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.3271, allocations: 0 / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002489/0.3274, allocations: 107.3 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.3274, allocations: 0 / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004567/0.3278, allocations: 173.5 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.511e-05/0.3279, allocations: 55.41 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.328, allocations: 143.5 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.3281, allocations: 25.7 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.469e-05/0.3282, allocations: 100 kB / 1.032 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.437e-05/0.3282, allocations: 31.64 kB / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.002e-05/0.3283, allocations: 37.7 kB / 1.032 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.3284, allocations: 326.8 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.098e-05/0.3285, allocations: 27.98 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.3286, allocations: 77.06 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000181/0.3288, allocations: 97.06 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3288, allocations: 0 / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002513/0.3291, allocations: 141.4 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.3291, allocations: 4 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3291, allocations: 4 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.3291, allocations: 0 / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.3292, allocations: 23.86 kB / 1.032 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.3293, allocations: 4 kB / 1.032 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.3294, allocations: 23.83 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.3294, allocations: 4 kB / 1.032 GB, free: 12.1 MB / 0.8106 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 0.000111/0.3295, allocations: 131.2 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.364e-05/0.3296, allocations: 11.91 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003928/0.3299, allocations: 166.4 kB / 1.033 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.33, allocations: 7.984 kB / 1.033 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.33, allocations: 0 / 1.033 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.33, allocations: 3.984 kB / 1.033 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006321/0.3306, allocations: 470.2 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3306, allocations: 0 / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.126e-05/0.3307, allocations: 8 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.3307, allocations: 4 kB / 1.033 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.3308, allocations: 7.984 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3308, allocations: 0 / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3308, allocations: 3.938 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003282/0.3311, allocations: 247.4 kB / 1.033 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.366e-05/0.3312, allocations: 92.86 kB / 1.033 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.3312, allocations: 0 / 1.033 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.3313, allocations: 15.98 kB / 1.033 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.696e-05/0.3314, allocations: 11.92 kB / 1.033 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/0.3314, allocations: 15.92 kB / 1.033 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.54e-05/0.3315, allocations: 105.5 kB / 1.034 GB, free: 10.72 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3315, allocations: 0 / 1.034 GB, free: 10.72 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003487/0.3319, allocations: 47.98 kB / 1.034 GB, free: 10.67 MB / 0.8106 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.0003301/0.3322, allocations: 161.6 kB / 1.034 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002597/0.3325, allocations: 87.89 kB / 1.034 GB, free: 10.44 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.3325, allocations: 4 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.3326, allocations: 71.09 kB / 1.034 GB, free: 10.37 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.333, allocations: 15.98 kB / 1.034 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005022/0.3335, allocations: 227.8 kB / 1.034 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002901/0.3338, allocations: 0.7002 MB / 1.035 GB, free: 9.375 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.876e-05/0.3338, allocations: 16.83 kB / 1.035 GB, free: 9.359 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.212e-05/0.3339, allocations: 15.44 kB / 1.035 GB, free: 9.344 MB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.3339, allocations: 0 / 1.035 GB, free: 9.344 MB / 0.8106 GB Notification: Performance of Templates: time 0.005083/0.339, allocations: 1.998 MB / 1.037 GB, free: 7.352 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches