Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Love1998Light2,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.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_latest_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.001609/0.001609, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.378/1.378, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.835/2.835, allocations: 472.7 MB / 0.7452 GB, free: 4.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.001261, allocations: 69.75 kB / 0.9121 GB, free: 33.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.309, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.003088/0.3122, allocations: 1.502 MB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00152/0.3137, allocations: 0.7634 MB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.744e-05/0.3138, allocations: 0 / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.853e-05/0.3139, allocations: 7.875 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.231e-05/0.314, allocations: 15.84 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006332/0.3146, allocations: 127.6 kB / 1.071 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001251/0.3148, allocations: 91.7 kB / 1.071 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.3149, allocations: 11.97 kB / 1.071 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.315, allocations: 43.84 kB / 1.071 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.739e-05/0.3151, allocations: 35.84 kB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.053e-05/0.3151, allocations: 8 kB / 1.071 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002039/0.3153, allocations: 95.84 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.245e-05/0.3154, allocations: 19.91 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.752e-05/0.3154, allocations: 39.84 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002638/0.3157, allocations: 143.9 kB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3157, allocations: 0 / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3157, allocations: 0 / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.3157, allocations: 0 / 1.071 GB, free: 7.465 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.0007696/0.3165, allocations: 466.5 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3166, allocations: 8.031 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.7e-05/0.3166, allocations: 4.938 kB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.3168, allocations: 192.1 kB / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.3168, allocations: 8.312 kB / 1.072 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.3168, allocations: 4.375 kB / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002001/0.317, allocations: 77.95 kB / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.3171, allocations: 0 / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.3171, allocations: 0 / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.3171, allocations: 0 / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/0.3172, allocations: 47.91 kB / 1.072 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005291/0.3178, allocations: 320.7 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.3179, allocations: 62.56 kB / 1.072 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.409e-05/0.318, allocations: 28.84 kB / 1.072 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.3181, allocations: 7.984 kB / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002268/0.3183, allocations: 95.39 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.773e-06/0.3183, allocations: 0 / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0003971/0.3187, allocations: 153.5 kB / 1.072 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.866e-05/0.3188, allocations: 63.39 kB / 1.073 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.3189, allocations: 124.1 kB / 1.073 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.3189, allocations: 33.7 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.337e-05/0.319, allocations: 92.36 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.865e-05/0.319, allocations: 23.86 kB / 1.073 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.844e-05/0.3191, allocations: 33.7 kB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.3192, allocations: 322.8 kB / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.204e-05/0.3193, allocations: 31.98 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/0.3194, allocations: 65.5 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.3196, allocations: 109 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3196, allocations: 0 / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002476/0.3199, allocations: 133.5 kB / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.3199, allocations: 7.938 kB / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3199, allocations: 0 / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.3199, allocations: 7.938 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.32, allocations: 15.98 kB / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.32, allocations: 3.938 kB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.3202, allocations: 19.92 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.3202, allocations: 4 kB / 1.073 GB, free: 4.676 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 0.0001005/0.3203, allocations: 129.3 kB / 1.074 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.162e-05/0.3203, allocations: 7.906 kB / 1.074 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003096/0.3206, allocations: 145.9 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3206, allocations: 4 kB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3206, allocations: 0 / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3207, allocations: 0 / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006223/0.3213, allocations: 430.2 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3213, allocations: 0 / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.959e-05/0.3214, allocations: 11.98 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3214, allocations: 0 / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.3214, allocations: 4 kB / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3214, allocations: 0 / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3214, allocations: 3.938 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.3217, allocations: 231.3 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.996e-05/0.3218, allocations: 88.95 kB / 1.075 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.3218, allocations: 0 / 1.075 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.3219, allocations: 11.98 kB / 1.075 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.681e-05/0.322, allocations: 19.86 kB / 1.075 GB, free: 3.508 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.322, allocations: 7.984 kB / 1.075 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.815e-05/0.3221, allocations: 102.4 kB / 1.075 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3221, allocations: 4 kB / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003213/0.3224, allocations: 40 kB / 1.075 GB, free: 3.359 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 (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.0003129/0.3227, allocations: 168.7 kB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002503/0.323, allocations: 91.86 kB / 1.075 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.323, allocations: 256 / 1.075 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.3231, allocations: 59.89 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.3234, allocations: 12 kB / 1.075 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004582/0.3239, allocations: 211.5 kB / 1.075 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.3241, allocations: 0.6924 MB / 1.076 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.798e-05/0.3242, allocations: 12.42 kB / 1.076 GB, free: 2.078 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.678e-05/0.3242, allocations: 15.42 kB / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3242, allocations: 0 / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of Templates: time 0.005014/0.3293, allocations: 1.783 MB / 1.078 GB, free: 292 kB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches