Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.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.Love1998Light2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.p|lig.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2") translateModel(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.p|lig.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, 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.001642/0.001642, 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.365/1.365, 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 9.1.2-maint.9.1.x/package.mo): time 2.27/2.27, allocations: 390.3 MB / 0.6655 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 62.14 kB / 0.814 GB, free: 32.56 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2393, allocations: 140.4 MB / 0.9511 GB, free: 8.027 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.002522/0.2418, allocations: 1.505 MB / 0.9526 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00123/0.2431, allocations: 0.7634 MB / 0.9533 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.75e-05/0.2431, allocations: 0 / 0.9533 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.886e-05/0.2432, allocations: 3.938 kB / 0.9533 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.127e-05/0.2433, allocations: 15.86 kB / 0.9533 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004686/0.2437, allocations: 127.5 kB / 0.9535 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001226/0.2439, allocations: 91.75 kB / 0.9536 GB, free: 5.512 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.245e-05/0.244, allocations: 15.98 kB / 0.9536 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.377e-05/0.244, allocations: 35.86 kB / 0.9536 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.488e-05/0.2441, allocations: 39.88 kB / 0.9536 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/0.2441, allocations: 11.94 kB / 0.9537 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.2443, allocations: 95.84 kB / 0.9537 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.349e-05/0.2444, allocations: 15.98 kB / 0.9538 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.992e-05/0.2444, allocations: 43.78 kB / 0.9538 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002069/0.2446, allocations: 147.5 kB / 0.9539 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2446, allocations: 0 / 0.9539 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2446, allocations: 0 / 0.9539 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.2447, allocations: 0 / 0.9539 GB, free: 5.113 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006783/0.2453, allocations: 462.6 kB / 0.9544 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.2454, allocations: 8.031 kB / 0.9544 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.01e-05/0.2454, allocations: 12.78 kB / 0.9544 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.2456, allocations: 180.2 kB / 0.9546 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.2456, allocations: 4.375 kB / 0.9546 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.438e-05/0.2456, allocations: 8.375 kB / 0.9546 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.2458, allocations: 73.91 kB / 0.9547 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.2458, allocations: 3.938 kB / 0.9547 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.2458, allocations: 4 kB / 0.9547 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.2458, allocations: 4 kB / 0.9547 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.246, allocations: 35.97 kB / 0.9547 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005048/0.2465, allocations: 328.6 kB / 0.955 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001462/0.2466, allocations: 70.56 kB / 0.9551 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.668e-05/0.2467, allocations: 32.84 kB / 0.9551 GB, free: 3.746 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.2467, allocations: 4 kB / 0.9551 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001956/0.2469, allocations: 95.34 kB / 0.9552 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.693e-06/0.2469, allocations: 0 / 0.9552 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0003734/0.2473, allocations: 157.5 kB / 0.9554 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.2474, allocations: 55.41 kB / 0.9554 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.2475, allocations: 129.7 kB / 0.9555 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.2475, allocations: 33.64 kB / 0.9556 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.669e-05/0.2476, allocations: 92.38 kB / 0.9557 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.2476, allocations: 19.7 kB / 0.9557 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.981e-05/0.2477, allocations: 37.7 kB / 0.9557 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.2478, allocations: 322.8 kB / 0.956 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.377e-05/0.2479, allocations: 23.97 kB / 0.956 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.74e-05/0.248, allocations: 65.14 kB / 0.9561 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001611/0.2481, allocations: 101.1 kB / 0.9562 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2481, allocations: 0 / 0.9562 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002372/0.2484, allocations: 125.5 kB / 0.9563 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.2484, allocations: 12.02 kB / 0.9563 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2484, allocations: 4 kB / 0.9563 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.2484, allocations: 0 / 0.9563 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.2485, allocations: 19.92 kB / 0.9564 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.2486, allocations: 384 / 0.9564 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.2487, allocations: 19.84 kB / 0.9564 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.2487, allocations: 7.984 kB / 0.9564 GB, free: 2.34 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,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.815e-05/0.2488, allocations: 137.7 kB / 0.9565 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.041e-05/0.2488, allocations: 15.78 kB / 0.9565 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003121/0.2491, allocations: 142 kB / 0.9567 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.2491, allocations: 4 kB / 0.9567 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2492, allocations: 0 / 0.9567 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.2492, allocations: 0 / 0.9567 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005352/0.2497, allocations: 434.4 kB / 0.9571 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2497, allocations: 4 kB / 0.9571 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.794e-05/0.2498, allocations: 8 kB / 0.9571 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.2498, allocations: 4 kB / 0.9571 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.2498, allocations: 7.984 kB / 0.9571 GB, free: 1.523 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2498, allocations: 0 / 0.9571 GB, free: 1.523 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2498, allocations: 3.938 kB / 0.9571 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002693/0.2501, allocations: 219.4 kB / 0.9573 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.142e-05/0.2502, allocations: 92.94 kB / 0.9574 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.2502, allocations: 8 kB / 0.9574 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.2503, allocations: 15.92 kB / 0.9574 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.323e-05/0.2504, allocations: 11.92 kB / 0.9574 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.2504, allocations: 8 kB / 0.9575 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.168e-05/0.2504, allocations: 99.27 kB / 0.9575 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2505, allocations: 0 / 0.9575 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003031/0.2508, allocations: 40 kB / 0.9576 GB, free: 1 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 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.0002972/0.2511, allocations: 163.1 kB / 0.9577 GB, free: 0.8438 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002257/0.2513, allocations: 91.7 kB / 0.9578 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2513, allocations: 0 / 0.9578 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.2514, allocations: 47.97 kB / 0.9579 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.2517, allocations: 21.95 kB / 0.9579 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004152/0.2521, allocations: 203.5 kB / 0.9581 GB, free: 472 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002538/0.2524, allocations: 0.6924 MB / 0.9588 GB, free: 15.74 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.425e-05/0.2525, allocations: 16.42 kB / 0.9588 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.782e-05/0.2525, allocations: 15.44 kB / 0.9588 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of SimCode: time 2.3e-07/0.2525, allocations: 0 / 0.9588 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of Templates: time 0.004387/0.2569, allocations: 1.794 MB / 0.9605 GB, free: 13.92 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches