Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.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: translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,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.Gunay2016Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,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.Gunay2016Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 107.2 kB / 15.99 MB, free: 6.348 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.00134/0.00134, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.339/1.339, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.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.292/2.292, allocations: 390.2 MB / 0.665 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 67.39 kB / 0.8127 GB, free: 32.55 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2746, allocations: 140.4 MB / 0.9498 GB, free: 9.273 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.003137/0.2778, allocations: 1.578 MB / 0.9513 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001351/0.2792, allocations: 0.7441 MB / 0.952 GB, free: 6.934 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.05e-05/0.2793, allocations: 4 kB / 0.952 GB, free: 6.93 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.909e-05/0.2793, allocations: 3.938 kB / 0.952 GB, free: 6.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001066/0.2795, allocations: 11.86 kB / 0.9521 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006005/0.2801, allocations: 111.8 kB / 0.9522 GB, free: 6.805 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001361/0.2802, allocations: 99.69 kB / 0.9523 GB, free: 6.707 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.2803, allocations: 23.97 kB / 0.9523 GB, free: 6.684 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.2804, allocations: 39.86 kB / 0.9523 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.275e-05/0.2805, allocations: 47.81 kB / 0.9524 GB, free: 6.598 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.338e-05/0.2806, allocations: 11.94 kB / 0.9524 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001981/0.2808, allocations: 99.84 kB / 0.9525 GB, free: 6.488 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.97e-05/0.2808, allocations: 23.91 kB / 0.9525 GB, free: 6.465 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.812e-05/0.2809, allocations: 43.78 kB / 0.9525 GB, free: 6.422 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.2811, allocations: 112 kB / 0.9526 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2811, allocations: 4 kB / 0.9526 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2811, allocations: 0 / 0.9526 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.006e-06/0.2811, allocations: 3.984 kB / 0.9526 GB, free: 6.305 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.0007944/0.2819, allocations: 496.2 kB / 0.9531 GB, free: 5.754 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.282, allocations: 8.031 kB / 0.9531 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.737e-05/0.282, allocations: 12.75 kB / 0.9531 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000152/0.2822, allocations: 186.8 kB / 0.9533 GB, free: 5.516 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.2822, allocations: 384 / 0.9533 GB, free: 5.516 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.2822, allocations: 16.38 kB / 0.9533 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002103/0.2825, allocations: 77.95 kB / 0.9534 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.2825, allocations: 3.938 kB / 0.9534 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.2825, allocations: 3.984 kB / 0.9534 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.2825, allocations: 4 kB / 0.9534 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001535/0.2827, allocations: 51.91 kB / 0.9535 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005739/0.2833, allocations: 328.8 kB / 0.9538 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.2835, allocations: 82.7 kB / 0.9539 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.8e-05/0.2836, allocations: 44.83 kB / 0.9539 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.2836, allocations: 0 / 0.9539 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.2839, allocations: 107.2 kB / 0.954 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.492e-06/0.2839, allocations: 0 / 0.954 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0004335/0.2844, allocations: 181.4 kB / 0.9542 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.2844, allocations: 55.34 kB / 0.9542 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.2845, allocations: 130.1 kB / 0.9544 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.2846, allocations: 29.7 kB / 0.9544 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.472e-05/0.2846, allocations: 96.12 kB / 0.9545 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.2847, allocations: 27.66 kB / 0.9545 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.9e-05/0.2847, allocations: 29.7 kB / 0.9545 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.2849, allocations: 326.8 kB / 0.9548 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.65e-05/0.2849, allocations: 27.98 kB / 0.9549 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.2851, allocations: 72.08 kB / 0.9549 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001907/0.2853, allocations: 113 kB / 0.955 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2853, allocations: 3.938 kB / 0.9551 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002562/0.2855, allocations: 141.3 kB / 0.9552 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2856, allocations: 8.094 kB / 0.9552 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.2856, allocations: 0 / 0.9552 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.2856, allocations: 4 kB / 0.9552 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.2857, allocations: 19.92 kB / 0.9552 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.2857, allocations: 4 kB / 0.9552 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.2858, allocations: 15.92 kB / 0.9552 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.2859, allocations: 4 kB / 0.9552 GB, free: 3.371 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 0.0001027/0.286, allocations: 131.7 kB / 0.9554 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.834e-05/0.286, allocations: 11.91 kB / 0.9554 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003448/0.2863, allocations: 154.3 kB / 0.9555 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.2864, allocations: 4 kB / 0.9555 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2864, allocations: 0 / 0.9555 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.2864, allocations: 3.984 kB / 0.9555 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006145/0.287, allocations: 446.3 kB / 0.956 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.287, allocations: 8 kB / 0.956 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.019e-05/0.2871, allocations: 19.92 kB / 0.956 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.2871, allocations: 0 / 0.956 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.2871, allocations: 4 kB / 0.956 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.2871, allocations: 0 / 0.956 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2872, allocations: 11.88 kB / 0.956 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003489/0.2875, allocations: 235.5 kB / 0.9562 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.086e-05/0.2876, allocations: 96.94 kB / 0.9563 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.754e-05/0.2876, allocations: 7.984 kB / 0.9563 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.2877, allocations: 4 kB / 0.9563 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.145e-05/0.2878, allocations: 19.91 kB / 0.9563 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.2878, allocations: 4 kB / 0.9564 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.981e-05/0.2879, allocations: 99.27 kB / 0.9564 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of sort global known variables: time 5.91e-07/0.2879, allocations: 0 / 0.9564 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003476/0.2882, allocations: 47.98 kB / 0.9565 GB, free: 1.984 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 (13): * Single equations (assignments): 10 * 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.0003607/0.2886, allocations: 162.7 kB / 0.9566 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002684/0.2889, allocations: 95.89 kB / 0.9567 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2889, allocations: 0 / 0.9567 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.289, allocations: 51.92 kB / 0.9568 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.2894, allocations: 24.08 kB / 0.9568 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005229/0.2899, allocations: 261.5 kB / 0.9571 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.2903, allocations: 0.7078 MB / 0.9578 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.838e-05/0.2903, allocations: 15.42 kB / 0.9578 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.2903, allocations: 0 / 0.9578 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of Templates: time 0.004596/0.2949, allocations: 1.938 MB / 0.9597 GB, free: 14.69 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches