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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: 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_9_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_9_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.008085/0.008085, allocations: 100.3 kB / 15.73 MB, free: 6.477 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.001999/0.002, allocations: 192.5 kB / 16.67 MB, free: 6.391 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.393/2.393, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 62.52 kB / 0.9508 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3128, allocations: 140.4 MB / 1.088 GB, free: 1.551 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003105/0.3159, allocations: 1.54 MB / 1.089 GB, free: 16 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001481/0.3174, allocations: 0.7724 MB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.242e-05/0.3175, allocations: 0 / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.081e-05/0.3176, allocations: 15.8 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.674e-05/0.3177, allocations: 19.81 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005947/0.3183, allocations: 127.6 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001471/0.3184, allocations: 107.6 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.3186, allocations: 11.98 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002007/0.3188, allocations: 47.83 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.265e-05/0.3189, allocations: 47.83 kB / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.131e-05/0.3189, allocations: 7.938 kB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002022/0.3191, allocations: 95.91 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.833e-05/0.3191, allocations: 19.92 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.816e-05/0.3192, allocations: 51.77 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.3195, allocations: 159.5 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.3195, allocations: 8 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3195, allocations: 0 / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.3195, allocations: 0 / 1.091 GB, free: 14.52 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.0008122/0.3203, allocations: 0.5001 MB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.3204, allocations: 8.031 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.051e-05/0.3204, allocations: 12.75 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.3206, allocations: 184.2 kB / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.3206, allocations: 384 / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.3206, allocations: 12.38 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.3208, allocations: 81.89 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.3208, allocations: 0 / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.3208, allocations: 4 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.3209, allocations: 4 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001479/0.321, allocations: 51.95 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005446/0.3216, allocations: 332.5 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002171/0.3218, allocations: 86.66 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.25e-05/0.3219, allocations: 36.84 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.3219, allocations: 4 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/0.3222, allocations: 91.36 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.943e-06/0.3222, allocations: 0 / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004541/0.3227, allocations: 181.8 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/0.3227, allocations: 59.39 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.3229, allocations: 147.6 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.3229, allocations: 29.64 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.211e-05/0.323, allocations: 104.1 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/0.323, allocations: 19.72 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.82e-05/0.3231, allocations: 37.69 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.3232, allocations: 318.8 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.59e-05/0.3233, allocations: 35.97 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.3234, allocations: 73.08 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.3236, allocations: 113 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3236, allocations: 0 / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002613/0.3239, allocations: 137.4 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.3239, allocations: 4 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.3239, allocations: 3.984 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.324, allocations: 4 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.3241, allocations: 15.98 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.3241, allocations: 7.938 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.3242, allocations: 16 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.3242, allocations: 11.92 kB / 1.093 GB, free: 11.55 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 9.89e-05/0.3243, allocations: 125.8 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.193e-05/0.3244, allocations: 7.906 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003684/0.3247, allocations: 174.3 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3247, allocations: 0 / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3248, allocations: 4 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.3248, allocations: 4 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006128/0.3254, allocations: 460.3 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3254, allocations: 0 / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.223e-05/0.3255, allocations: 15.98 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.3255, allocations: 0 / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.3255, allocations: 11.98 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3255, allocations: 0 / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3255, allocations: 3.938 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003157/0.3259, allocations: 247.4 kB / 1.094 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.471e-05/0.3259, allocations: 88.92 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.3259, allocations: 4 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.3261, allocations: 7.984 kB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.3261, allocations: 19.86 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.3261, allocations: 8 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.915e-05/0.3262, allocations: 113.3 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3262, allocations: 0 / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000323/0.3266, allocations: 40 kB / 1.095 GB, free: 10.14 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.0003255/0.3269, allocations: 171.4 kB / 1.095 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002515/0.3272, allocations: 99.88 kB / 1.095 GB, free: 9.887 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3272, allocations: 0 / 1.095 GB, free: 9.887 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.3273, allocations: 55.86 kB / 1.095 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.3276, allocations: 19.98 kB / 1.095 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005728/0.3282, allocations: 227.9 kB / 1.095 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.3285, allocations: 0.7043 MB / 1.096 GB, free: 8.832 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.621e-05/0.3286, allocations: 8.5 kB / 1.096 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.71e-05/0.3286, allocations: 19.42 kB / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of SimCode: time 3.31e-07/0.3286, allocations: 0 / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of Templates: time 0.00538/0.334, allocations: 2.004 MB / 1.098 GB, free: 6.812 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (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 & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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