Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_11_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_11_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005201/0.005201, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001556/0.001556, allocations: 202.3 kB / 16.68 MB, free: 5.969 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.858/2.858, allocations: 469.8 MB / 0.7425 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 56.05 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2683, allocations: 159.1 MB / 1.22 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.002581/0.2709, allocations: 1.521 MB / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001256/0.2722, allocations: 0.7595 MB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.757e-05/0.2723, allocations: 0 / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.929e-05/0.2723, allocations: 7.875 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.167e-05/0.2724, allocations: 15.84 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004972/0.2729, allocations: 127.6 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.273, allocations: 87.7 kB / 1.223 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.685e-05/0.2731, allocations: 8 kB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.141e-05/0.2732, allocations: 39.84 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.451e-05/0.2733, allocations: 39.83 kB / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.2733, allocations: 8 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001903/0.2735, allocations: 95.84 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.946e-05/0.2736, allocations: 23.92 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.754e-05/0.2736, allocations: 35.84 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002468/0.2739, allocations: 147.5 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2739, allocations: 0 / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2739, allocations: 0 / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.369e-06/0.2739, allocations: 0 / 1.223 GB, free: 11.39 MB / 0.9825 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.0007184/0.2746, allocations: 466.3 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.2747, allocations: 8.031 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.3e-05/0.2747, allocations: 42.73 kB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.306e-05/0.2748, allocations: 8.891 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/0.2749, allocations: 180.2 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.2749, allocations: 4.375 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.2749, allocations: 4.375 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/0.2751, allocations: 77.7 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.2752, allocations: 4 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.2752, allocations: 0 / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2752, allocations: 0 / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001433/0.2753, allocations: 47.91 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005254/0.2759, allocations: 324.7 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001555/0.276, allocations: 58.56 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.627e-05/0.2761, allocations: 36.83 kB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.2762, allocations: 4.031 kB / 1.224 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002062/0.2764, allocations: 91.36 kB / 1.224 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.774e-06/0.2764, allocations: 0 / 1.224 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0004119/0.2768, allocations: 157.5 kB / 1.224 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.2769, allocations: 59.39 kB / 1.224 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.277, allocations: 129.7 kB / 1.225 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.277, allocations: 33.7 kB / 1.225 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.159e-05/0.2771, allocations: 96.36 kB / 1.225 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.519e-05/0.2771, allocations: 19.86 kB / 1.225 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.915e-05/0.2772, allocations: 29.7 kB / 1.225 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.2773, allocations: 330.7 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.352e-05/0.2774, allocations: 27.98 kB / 1.225 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.2775, allocations: 73.06 kB / 1.225 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.2777, allocations: 105 kB / 1.225 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.2777, allocations: 4 kB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002616/0.278, allocations: 129.9 kB / 1.225 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.278, allocations: 8 kB / 1.225 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.278, allocations: 0 / 1.225 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.2781, allocations: 0 / 1.225 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.2782, allocations: 23.86 kB / 1.225 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.2782, allocations: 4 kB / 1.225 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.2783, allocations: 19.88 kB / 1.225 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.2783, allocations: 4.125 kB / 1.225 GB, free: 8.543 MB / 0.9825 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.0001041/0.2784, allocations: 131.1 kB / 1.226 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.059e-05/0.2785, allocations: 7.953 kB / 1.226 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003378/0.2788, allocations: 145.9 kB / 1.226 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.2788, allocations: 0 / 1.226 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.2788, allocations: 3.938 kB / 1.226 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2789, allocations: 4 kB / 1.226 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000602/0.2795, allocations: 430.5 kB / 1.226 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2795, allocations: 0 / 1.226 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.525e-05/0.2796, allocations: 11.98 kB / 1.226 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2796, allocations: 0 / 1.226 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.2796, allocations: 0 / 1.226 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.2796, allocations: 3.938 kB / 1.226 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.2796, allocations: 7.984 kB / 1.226 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003184/0.2799, allocations: 231.3 kB / 1.226 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.9e-05/0.28, allocations: 85 kB / 1.226 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.28, allocations: 7.984 kB / 1.226 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.2801, allocations: 11.94 kB / 1.226 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.932e-05/0.2802, allocations: 7.984 kB / 1.226 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.2802, allocations: 7.984 kB / 1.227 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.789e-05/0.2803, allocations: 103.1 kB / 1.227 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2803, allocations: 0 / 1.227 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003005/0.2806, allocations: 43.94 kB / 1.227 GB, free: 7.215 MB / 0.9825 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.0008449/0.2814, allocations: 0.8247 MB / 1.227 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002499/0.2817, allocations: 79.89 kB / 1.228 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2817, allocations: 0 / 1.228 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.2818, allocations: 43.98 kB / 1.228 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002949/0.2821, allocations: 32.66 kB / 1.228 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/0.2839, allocations: 1.61 MB / 1.229 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003119/0.2842, allocations: 0.6962 MB / 1.23 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.561e-05/0.2843, allocations: 8.438 kB / 1.23 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.094e-05/0.2843, allocations: 27.42 kB / 1.23 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.2844, allocations: 0 / 1.23 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02316/0.3075, allocations: 3.087 MB / 1.233 GB, free: 0.793 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.723/8.031, allocations: 6.75 kB / 1.233 GB, free: 0.7891 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_11_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.fmu > Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[575]=3600.000000 File[1254]=2249.280000 Error: Could not read variable lig.occ in file Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.csv. Warning: Get data of variable lig.occ from file Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.csv failed! Error: Could not read variable lig.on in file Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.csv. Warning: Get data of variable lig.on from file Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.csv failed! " Variables in the reference:time,lig.ill,lig.occ,lig.p,lig.on Variables in the result:time,lig.ill,lig.p,ill.amplitude,ill.f,ill.offset