Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.00143/0.00143, allocations: 103.9 kB / 16.35 MB, free: 5.875 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.001565/0.001565, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.306/1.306, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.421/2.421, allocations: 437.1 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 63.91 kB / 0.8707 GB, free: 1.438 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2696, allocations: 151.6 MB / 1.019 GB, free: 9.852 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003004/0.2726, allocations: 1.549 MB / 1.02 GB, free: 8.285 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001329/0.2739, allocations: 0.7688 MB / 1.021 GB, free: 7.512 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.12e-05/0.274, allocations: 3.938 kB / 1.021 GB, free: 7.508 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.939e-05/0.274, allocations: 3.938 kB / 1.021 GB, free: 7.504 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001137/0.2742, allocations: 23.78 kB / 1.021 GB, free: 7.48 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005504/0.2747, allocations: 131.6 kB / 1.021 GB, free: 7.352 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001314/0.2749, allocations: 95.64 kB / 1.021 GB, free: 7.258 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.275, allocations: 15.98 kB / 1.021 GB, free: 7.242 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.2751, allocations: 47.78 kB / 1.021 GB, free: 7.195 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.762e-05/0.2752, allocations: 43.83 kB / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.218e-05/0.2752, allocations: 8 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002413/0.2755, allocations: 99.91 kB / 1.021 GB, free: 7.047 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 6.029e-05/0.2755, allocations: 31.83 kB / 1.022 GB, free: 7.016 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.379e-05/0.2756, allocations: 39.8 kB / 1.022 GB, free: 6.977 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002645/0.2759, allocations: 159.5 kB / 1.022 GB, free: 6.82 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.2759, allocations: 3.984 kB / 1.022 GB, free: 6.816 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.773e-06/0.2759, allocations: 0 / 1.022 GB, free: 6.816 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.243e-06/0.2759, allocations: 0 / 1.022 GB, free: 6.816 MB / 0.795 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.0007765/0.2767, allocations: 0.4962 MB / 1.022 GB, free: 6.254 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2768, allocations: 8.031 kB / 1.022 GB, free: 6.246 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/0.2768, allocations: 24.69 kB / 1.022 GB, free: 6.223 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/0.277, allocations: 184.2 kB / 1.022 GB, free: 6.004 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.277, allocations: 8.312 kB / 1.022 GB, free: 5.996 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.761e-05/0.277, allocations: 4.375 kB / 1.022 GB, free: 5.992 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/0.2772, allocations: 85.95 kB / 1.022 GB, free: 5.902 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.2772, allocations: 0 / 1.022 GB, free: 5.902 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.2772, allocations: 0 / 1.022 GB, free: 5.902 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.2773, allocations: 3.984 kB / 1.023 GB, free: 5.898 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.2774, allocations: 51.97 kB / 1.023 GB, free: 5.848 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005338/0.2779, allocations: 336.6 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.2782, allocations: 74.67 kB / 1.023 GB, free: 5.387 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.379e-05/0.2783, allocations: 44.84 kB / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.2783, allocations: 3.984 kB / 1.023 GB, free: 5.336 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002063/0.2785, allocations: 99.38 kB / 1.023 GB, free: 5.227 MB / 0.795 GB Notification: Performance of pre-optimization done (n=11): time 1.714e-06/0.2785, allocations: 0 / 1.023 GB, free: 5.227 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.0004143/0.2789, allocations: 173.5 kB / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.279, allocations: 55.41 kB / 1.023 GB, free: 4.984 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.2791, allocations: 143.7 kB / 1.023 GB, free: 4.836 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.2791, allocations: 33.7 kB / 1.023 GB, free: 4.797 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.814e-05/0.2792, allocations: 96.05 kB / 1.024 GB, free: 4.699 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.2792, allocations: 27.64 kB / 1.024 GB, free: 4.672 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.307e-05/0.2793, allocations: 37.7 kB / 1.024 GB, free: 4.629 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.2794, allocations: 326.8 kB / 1.024 GB, free: 4.301 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.789e-05/0.2795, allocations: 31.92 kB / 1.024 GB, free: 4.27 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.841e-05/0.2796, allocations: 69.12 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.2798, allocations: 109 kB / 1.024 GB, free: 4.059 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2798, allocations: 4 kB / 1.024 GB, free: 4.055 MB / 0.795 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002382/0.28, allocations: 133.4 kB / 1.024 GB, free: 3.918 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.2801, allocations: 8 kB / 1.024 GB, free: 3.91 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.2801, allocations: 0 / 1.024 GB, free: 3.91 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.2801, allocations: 4 kB / 1.024 GB, free: 3.906 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.2802, allocations: 19.92 kB / 1.024 GB, free: 3.887 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.2802, allocations: 0 / 1.024 GB, free: 3.887 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.2803, allocations: 19.83 kB / 1.024 GB, free: 3.867 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.2803, allocations: 12.09 kB / 1.024 GB, free: 3.855 MB / 0.795 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.000101/0.2804, allocations: 125.7 kB / 1.024 GB, free: 3.723 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.825e-05/0.2805, allocations: 15.83 kB / 1.024 GB, free: 3.707 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003418/0.2808, allocations: 166.9 kB / 1.025 GB, free: 3.539 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.2808, allocations: 4 kB / 1.025 GB, free: 3.535 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2809, allocations: 0 / 1.025 GB, free: 3.535 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.2809, allocations: 3.984 kB / 1.025 GB, free: 3.531 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005778/0.2814, allocations: 477.7 kB / 1.025 GB, free: 3.012 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2815, allocations: 0 / 1.025 GB, free: 3.012 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.33e-05/0.2815, allocations: 15.98 kB / 1.025 GB, free: 2.996 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2816, allocations: 0 / 1.025 GB, free: 2.996 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.2816, allocations: 0 / 1.025 GB, free: 2.996 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.2816, allocations: 4 kB / 1.025 GB, free: 2.992 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2816, allocations: 7.938 kB / 1.025 GB, free: 2.984 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000304/0.2819, allocations: 251.3 kB / 1.025 GB, free: 2.723 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.381e-05/0.282, allocations: 88.92 kB / 1.025 GB, free: 2.617 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.282, allocations: 3.984 kB / 1.025 GB, free: 2.613 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.2821, allocations: 12 kB / 1.025 GB, free: 2.602 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.39e-05/0.2822, allocations: 11.92 kB / 1.025 GB, free: 2.59 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.2822, allocations: 7.984 kB / 1.025 GB, free: 2.582 MB / 0.795 GB Notification: Performance of sorting global known variables: time 7.315e-05/0.2823, allocations: 105.3 kB / 1.026 GB, free: 2.48 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2823, allocations: 4 kB / 1.026 GB, free: 2.477 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003036/0.2826, allocations: 51.98 kB / 1.026 GB, free: 2.426 MB / 0.795 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.0002976/0.2829, allocations: 159.6 kB / 1.026 GB, free: 2.277 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002424/0.2831, allocations: 99.89 kB / 1.026 GB, free: 2.18 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2831, allocations: 4.062 kB / 1.026 GB, free: 2.176 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.2833, allocations: 59.97 kB / 1.026 GB, free: 2.117 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.2836, allocations: 19.92 kB / 1.026 GB, free: 2.098 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004708/0.2841, allocations: 225.9 kB / 1.026 GB, free: 1.852 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002476/0.2843, allocations: 0.7041 MB / 1.027 GB, free: 1.121 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.776e-05/0.2844, allocations: 12.55 kB / 1.027 GB, free: 1.109 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.962e-05/0.2844, allocations: 19.44 kB / 1.027 GB, free: 1.09 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.2844, allocations: 0 / 1.027 GB, free: 1.09 MB / 0.795 GB Notification: Performance of Templates: time 0.0046/0.289, allocations: 2.006 MB / 1.029 GB, free: 15.09 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches