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.001612/0.001612, allocations: 112.6 kB / 16.37 MB, free: 6 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.001678/0.001678, allocations: 196 kB / 17.31 MB, free: 5.613 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.371/1.371, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.211/2.211, allocations: 390.3 MB / 0.6655 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 63.42 kB / 0.814 GB, free: 32.71 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2868, allocations: 140.4 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.00282/0.2897, allocations: 1.542 MB / 0.9526 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001504/0.2912, allocations: 0.775 MB / 0.9534 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.293e-05/0.2913, allocations: 0 / 0.9534 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.299e-05/0.2913, allocations: 7.938 kB / 0.9534 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.856e-05/0.2914, allocations: 19.78 kB / 0.9534 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005441/0.292, allocations: 135.5 kB / 0.9535 GB, free: 5.566 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.2921, allocations: 103.7 kB / 0.9536 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.522e-05/0.2922, allocations: 11.98 kB / 0.9536 GB, free: 5.453 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.2923, allocations: 43.8 kB / 0.9537 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.853e-05/0.2924, allocations: 47.81 kB / 0.9537 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.122e-05/0.2925, allocations: 11.94 kB / 0.9537 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.2926, allocations: 99.84 kB / 0.9538 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.106e-05/0.2927, allocations: 23.91 kB / 0.9539 GB, free: 5.23 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.252e-05/0.2927, allocations: 47.73 kB / 0.9539 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002354/0.293, allocations: 163.6 kB / 0.9541 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.293, allocations: 4 kB / 0.9541 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.333e-06/0.293, allocations: 3.938 kB / 0.9541 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.293, allocations: 0 / 0.9541 GB, free: 5.016 MB / 0.7325 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.000762/0.2938, allocations: 0.4885 MB / 0.9546 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.2938, allocations: 12.02 kB / 0.9546 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.2939, allocations: 8.844 kB / 0.9546 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.294, allocations: 193.8 kB / 0.9548 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.2941, allocations: 4.375 kB / 0.9548 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.965e-05/0.2941, allocations: 8.375 kB / 0.9548 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001955/0.2943, allocations: 81.94 kB / 0.9548 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.2943, allocations: 0 / 0.9548 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.2943, allocations: 4 kB / 0.9549 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.2943, allocations: 3.984 kB / 0.9549 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001457/0.2945, allocations: 51.91 kB / 0.9549 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005716/0.2951, allocations: 340.6 kB / 0.9552 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002122/0.2953, allocations: 78.7 kB / 0.9553 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.297e-05/0.2954, allocations: 40.84 kB / 0.9553 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.2954, allocations: 0 / 0.9553 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002388/0.2957, allocations: 103.3 kB / 0.9554 GB, free: 3.434 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.553e-06/0.2957, allocations: 0 / 0.9554 GB, free: 3.434 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0004338/0.2961, allocations: 169.5 kB / 0.9556 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.2962, allocations: 59.34 kB / 0.9557 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.2963, allocations: 143.9 kB / 0.9558 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.2963, allocations: 25.7 kB / 0.9558 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.366e-05/0.2964, allocations: 104 kB / 0.9559 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.93e-05/0.2964, allocations: 31.62 kB / 0.956 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-05/0.2965, allocations: 37.7 kB / 0.956 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.2966, allocations: 326.8 kB / 0.9563 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.515e-05/0.2967, allocations: 27.98 kB / 0.9563 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.729e-05/0.2968, allocations: 73.12 kB / 0.9564 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.297, allocations: 101 kB / 0.9565 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.297, allocations: 0 / 0.9565 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002454/0.2972, allocations: 141.4 kB / 0.9566 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.2973, allocations: 4 kB / 0.9566 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2973, allocations: 4 kB / 0.9566 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.2973, allocations: 3.938 kB / 0.9566 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.2974, allocations: 19.92 kB / 0.9567 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.2974, allocations: 7.984 kB / 0.9567 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.2975, allocations: 23.83 kB / 0.9567 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.2976, allocations: 4 kB / 0.9567 GB, free: 2.059 MB / 0.7325 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.971e-05/0.2977, allocations: 135.8 kB / 0.9568 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.2977, allocations: 12.05 kB / 0.9568 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003547/0.298, allocations: 174.1 kB / 0.957 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.82e-05/0.2981, allocations: 4 kB / 0.957 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2981, allocations: 0 / 0.957 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.2981, allocations: 0 / 0.957 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005942/0.2987, allocations: 458.2 kB / 0.9574 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2987, allocations: 8 kB / 0.9574 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.214e-05/0.2988, allocations: 11.98 kB / 0.9575 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2988, allocations: 0 / 0.9575 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.2988, allocations: 8 kB / 0.9575 GB, free: 1.195 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2988, allocations: 0 / 0.9575 GB, free: 1.195 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.2989, allocations: 7.875 kB / 0.9575 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003235/0.2992, allocations: 243.4 kB / 0.9577 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.461e-05/0.2992, allocations: 96.91 kB / 0.9578 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.2993, allocations: 4 kB / 0.9578 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.2994, allocations: 4 kB / 0.9578 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.78e-05/0.2994, allocations: 19.91 kB / 0.9578 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/0.2995, allocations: 8 kB / 0.9578 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.15e-05/0.2996, allocations: 103.3 kB / 0.9579 GB, free: 0.6836 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2996, allocations: 0 / 0.9579 GB, free: 0.6836 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003132/0.2999, allocations: 43.98 kB / 0.958 GB, free: 0.6406 MB / 0.7325 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.0003479/0.3002, allocations: 173.3 kB / 0.9581 GB, free: 488 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002436/0.3005, allocations: 91.89 kB / 0.9582 GB, free: 396 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3005, allocations: 0 / 0.9582 GB, free: 396 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.3006, allocations: 60.09 kB / 0.9583 GB, free: 336 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.3009, allocations: 21.88 kB / 0.9583 GB, free: 316 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004836/0.3014, allocations: 235.8 kB / 0.9585 GB, free: 52 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.3017, allocations: 0.7001 MB / 0.9592 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.824e-05/0.3018, allocations: 20.81 kB / 0.9592 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.802e-05/0.3018, allocations: 11.44 kB / 0.9592 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of SimCode: time 2.21e-07/0.3018, allocations: 0 / 0.9592 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of Templates: time 0.004923/0.3068, allocations: 1.991 MB / 0.9612 GB, free: 13.31 MB / 0.7481 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 -s cvode -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/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