Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Hunt1979Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 105 kB / 15.98 MB, free: 6.77 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.001067/0.001067, allocations: 194.2 kB / 16.91 MB, free: 6.551 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.327/1.327, allocations: 222.9 MB / 240.6 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.652/2.652, allocations: 469.4 MB / 0.7423 GB, free: 7.867 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 68.86 kB / 0.9083 GB, free: 34.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2656, allocations: 159.1 MB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002665/0.2683, allocations: 1.577 MB / 1.065 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001262/0.2696, allocations: 0.7556 MB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.504e-05/0.2697, allocations: 4 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.578e-05/0.2697, allocations: 0 / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.807e-05/0.2698, allocations: 19.84 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005115/0.2703, allocations: 107.8 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.2705, allocations: 91.7 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.649e-05/0.2706, allocations: 8 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.2707, allocations: 47.83 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.964e-05/0.2708, allocations: 39.84 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.785e-05/0.2708, allocations: 4 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.271, allocations: 95.91 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.803e-05/0.271, allocations: 27.84 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.618e-05/0.2711, allocations: 43.78 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001764/0.2713, allocations: 108 kB / 1.067 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2713, allocations: 0 / 1.067 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.263e-06/0.2713, allocations: 0 / 1.067 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.2713, allocations: 0 / 1.067 GB, free: 12.01 MB / 0.8262 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.0007397/0.272, allocations: 474.5 kB / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.2721, allocations: 8.031 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.79e-05/0.2721, allocations: 8.844 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.2723, allocations: 186 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.111e-05/0.2723, allocations: 34.27 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.682e-05/0.2724, allocations: 4.375 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002031/0.2726, allocations: 81.7 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.912e-06/0.2726, allocations: 4 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.2726, allocations: 4 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.2726, allocations: 3.938 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.2728, allocations: 47.95 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005188/0.2733, allocations: 320.7 kB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002052/0.2736, allocations: 74.58 kB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.2737, allocations: 40.83 kB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.2737, allocations: 0 / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002499/0.274, allocations: 103.4 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.733e-06/0.274, allocations: 0 / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0004636/0.2744, allocations: 165.5 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.2745, allocations: 63.33 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.2746, allocations: 131.9 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.2746, allocations: 25.7 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.058e-05/0.2747, allocations: 100.4 kB / 1.068 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.557e-05/0.2747, allocations: 23.66 kB / 1.068 GB, free: 9.922 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.53e-05/0.2748, allocations: 33.7 kB / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.2749, allocations: 326.8 kB / 1.069 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.275, allocations: 27.98 kB / 1.069 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.2751, allocations: 77.12 kB / 1.069 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/0.2754, allocations: 101 kB / 1.069 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.2754, allocations: 4 kB / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002967/0.2757, allocations: 141.4 kB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2757, allocations: 5.406 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.2757, allocations: 4 kB / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.2757, allocations: 0 / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.2759, allocations: 19.92 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.2759, allocations: 0 / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.276, allocations: 24.02 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.276, allocations: 7.984 kB / 1.069 GB, free: 9.109 MB / 0.8262 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.184e-05/0.2761, allocations: 127.3 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.2761, allocations: 7.906 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.378e-05/0.2762, allocations: 17.09 kB / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2762, allocations: 0 / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2762, allocations: 0 / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.2762, allocations: 0 / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006013/0.2768, allocations: 438.2 kB / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2768, allocations: 0 / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.421e-05/0.2769, allocations: 11.92 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.156e-05/0.2769, allocations: 4 kB / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.2769, allocations: 0 / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.277, allocations: 3.938 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.277, allocations: 4 kB / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/0.2773, allocations: 227.3 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.287e-05/0.2774, allocations: 88.92 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.319e-05/0.2774, allocations: 0 / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.2775, allocations: 19.92 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.503e-05/0.2776, allocations: 11.92 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.2776, allocations: 11.98 kB / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.375e-05/0.2777, allocations: 99.27 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2777, allocations: 0 / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003048/0.278, allocations: 40 kB / 1.07 GB, free: 7.922 MB / 0.8262 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 (10): * Single equations (assignments): 7 * 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.000299/0.2783, allocations: 165.5 kB / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003002/0.2786, allocations: 91.81 kB / 1.07 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2786, allocations: 0 / 1.07 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.2788, allocations: 47.97 kB / 1.07 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.2791, allocations: 15.92 kB / 1.07 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004673/0.2795, allocations: 257.6 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002179/0.2798, allocations: 0.6961 MB / 1.071 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.288e-05/0.2798, allocations: 19.44 kB / 1.071 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.2798, allocations: 0 / 1.071 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of Templates: time 0.003488/0.2833, allocations: 1.866 MB / 1.073 GB, free: 4.727 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches