Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Love1998Light1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.p|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1") translateModel(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.p|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 109.2 kB / 15.99 MB, free: 6.359 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.001533/0.001533, allocations: 194.5 kB / 16.91 MB, free: 6.195 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.373/1.373, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.69/2.69, allocations: 482.2 MB / 0.7548 GB, free: 7.371 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 72.8 kB / 0.9238 GB, free: 0.5508 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7692/0.7712, allocations: 162.2 MB / 1.082 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1): time 0.00247/0.7737, allocations: 1.561 MB / 1.084 GB, free: 0.6523 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001143/0.7749, allocations: 0.7498 MB / 1.084 GB, free: 144 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.271e-05/0.7749, allocations: 1 kB / 1.084 GB, free: 144 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.861e-05/0.775, allocations: 5.672 kB / 1.084 GB, free: 140 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.197e-05/0.7751, allocations: 14.64 kB / 1.084 GB, free: 128 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000497/0.7756, allocations: 113 kB / 1.085 GB, free: 72 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001136/0.7757, allocations: 84.42 kB / 1.085 GB, free: 32 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.7758, allocations: 19.05 kB / 1.085 GB, free: 20 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.7759, allocations: 36.77 kB / 1.085 GB, free: 4 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.097e-05/0.776, allocations: 37.31 kB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.7761, allocations: 6.938 kB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002095/0.7763, allocations: 98.42 kB / 1.085 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.678e-05/0.7763, allocations: 24.59 kB / 1.085 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.602e-05/0.7764, allocations: 33.73 kB / 1.085 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000214/0.7766, allocations: 100.1 kB / 1.085 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.7766, allocations: 4 kB / 1.085 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.122e-06/0.7766, allocations: 0.5312 kB / 1.085 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.585e-06/0.7766, allocations: 0 / 1.085 GB, free: 15.89 MB / 0.8419 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.0008093/0.7775, allocations: 465.4 kB / 1.085 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.7775, allocations: 9.875 kB / 1.085 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.684e-05/0.7776, allocations: 8.969 kB / 1.085 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.7777, allocations: 174.6 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.7778, allocations: 15.67 kB / 1.086 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/0.7778, allocations: 8.219 kB / 1.086 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/0.778, allocations: 76.28 kB / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.778, allocations: 0.6562 kB / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.778, allocations: 1.188 kB / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.778, allocations: 1.094 kB / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.7782, allocations: 42 kB / 1.086 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005846/0.7788, allocations: 324.5 kB / 1.086 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.7789, allocations: 62.08 kB / 1.086 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.312e-05/0.779, allocations: 32.77 kB / 1.086 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.7791, allocations: 1.344 kB / 1.086 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000315/0.7794, allocations: 101.2 kB / 1.086 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=10): time 1.864e-06/0.7794, allocations: 0 / 1.086 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10): time 0.0004401/0.7798, allocations: 157.1 kB / 1.086 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.7799, allocations: 54.45 kB / 1.086 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.78, allocations: 134.8 kB / 1.087 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.7801, allocations: 31.36 kB / 1.087 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.312e-05/0.7801, allocations: 89.03 kB / 1.087 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.329e-05/0.7802, allocations: 25.28 kB / 1.087 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.512e-05/0.7803, allocations: 35.2 kB / 1.087 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001786/0.7804, allocations: 323.7 kB / 1.087 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.719e-05/0.7805, allocations: 31.36 kB / 1.087 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.7807, allocations: 64.09 kB / 1.087 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001862/0.7808, allocations: 102.8 kB / 1.087 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.7809, allocations: 0.625 kB / 1.087 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002607/0.7811, allocations: 139.3 kB / 1.087 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.7812, allocations: 13.34 kB / 1.087 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.7812, allocations: 2.031 kB / 1.087 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.7812, allocations: 2.438 kB / 1.087 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.7813, allocations: 15.09 kB / 1.087 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.7813, allocations: 1.562 kB / 1.087 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.7814, allocations: 9.844 kB / 1.087 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/0.7815, allocations: 13.12 kB / 1.087 GB, free: 13.76 MB / 0.8419 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 0.0001146/0.7816, allocations: 126.6 kB / 1.088 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.352e-05/0.7816, allocations: 7.594 kB / 1.088 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004023/0.782, allocations: 154.6 kB / 1.088 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.782, allocations: 6.375 kB / 1.088 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.782, allocations: 0 / 1.088 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.782, allocations: 0.8438 kB / 1.088 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006789/0.7827, allocations: 432.2 kB / 1.088 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.7827, allocations: 0 / 1.088 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.222e-05/0.7828, allocations: 15.06 kB / 1.088 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.7828, allocations: 0.6094 kB / 1.088 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.7828, allocations: 2.594 kB / 1.088 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.7829, allocations: 1.594 kB / 1.088 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.7829, allocations: 4.547 kB / 1.088 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003178/0.7832, allocations: 230.1 kB / 1.088 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.759e-05/0.7833, allocations: 84.31 kB / 1.088 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.479e-05/0.7833, allocations: 2.297 kB / 1.088 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.7834, allocations: 8.828 kB / 1.088 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.7835, allocations: 15.5 kB / 1.088 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.7835, allocations: 5.25 kB / 1.088 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.326e-05/0.7836, allocations: 100 kB / 1.089 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.994e-06/0.7836, allocations: 0 / 1.089 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003411/0.7839, allocations: 44.97 kB / 1.089 GB, free: 12.81 MB / 0.8419 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.0003628/0.7843, allocations: 169.4 kB / 1.089 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002529/0.7846, allocations: 95.27 kB / 1.089 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.7846, allocations: 0 / 1.089 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.7847, allocations: 49.91 kB / 1.089 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.785, allocations: 17.94 kB / 1.089 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005198/0.7855, allocations: 247.7 kB / 1.089 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.786, allocations: 0.7018 MB / 1.09 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.76e-05/0.786, allocations: 18.88 kB / 1.09 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of SimCode: time 4.31e-07/0.786, allocations: 3.938 kB / 1.09 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of Templates: time 0.004283/0.7903, allocations: 1.816 MB / 1.092 GB, free: 11.55 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches