Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Utilities.Plotters.Examples.TimeSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|timSer.y.1.|timSer.y.2.|timSer.y.3.|timSer1.y.1.|timSer1.y.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries") translateModel(Buildings.Utilities.Plotters.Examples.TimeSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|timSer.y.1.|timSer.y.2.|timSer.y.3.|timSer1.y.1.|timSer1.y.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 103.4 kB / 16.36 MB, free: 6.289 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.001273/0.001273, allocations: 193.4 kB / 17.29 MB, free: 5.863 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.244/1.244, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.309/2.309, allocations: 442.6 MB / 0.7165 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 71.95 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3303, allocations: 153 MB / 1.027 GB, free: 2.074 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.TimeSeries): time 0.003175/0.3335, allocations: 1.789 MB / 1.028 GB, free: 280 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.3347, allocations: 0.6274 MB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.895e-05/0.3348, allocations: 11.94 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.335, allocations: 27.72 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003437/0.3353, allocations: 115.5 kB / 1.029 GB, free: 15.49 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.3357, allocations: 162.2 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002977/0.336, allocations: 243.3 kB / 1.03 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001368/0.3362, allocations: 45.66 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.3363, allocations: 103.7 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00582/0.3422, allocations: 1.036 MB / 1.031 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.182e-05/0.3422, allocations: 20 kB / 1.031 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001302/0.3424, allocations: 51.92 kB / 1.031 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.004e-05/0.3425, allocations: 35.84 kB / 1.031 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.3426, allocations: 95.5 kB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003902/0.343, allocations: 223.2 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.343, allocations: 0 / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.723e-06/0.343, allocations: 0 / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.384e-05/0.343, allocations: 0 / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0009593/0.344, allocations: 0.5566 MB / 1.032 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.3441, allocations: 12.03 kB / 1.032 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.583e-05/0.3442, allocations: 20.75 kB / 1.032 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003766/0.3445, allocations: 244.1 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.3446, allocations: 12.38 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.686e-05/0.3446, allocations: 24.11 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.3448, allocations: 103.1 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.3448, allocations: 4 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.3449, allocations: 4 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.3449, allocations: 0 / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001148/0.345, allocations: 63.91 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008742/0.3459, allocations: 492.1 kB / 1.033 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002706/0.3462, allocations: 122.6 kB / 1.033 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.947e-05/0.3462, allocations: 36.84 kB / 1.033 GB, free: 11.92 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.3463, allocations: 4 kB / 1.033 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001553/0.3464, allocations: 107.2 kB / 1.033 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.793e-06/0.3464, allocations: 0 / 1.033 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.0003369/0.3468, allocations: 169.4 kB / 1.033 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.3468, allocations: 63.41 kB / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001931/0.347, allocations: 207.6 kB / 1.033 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.24e-05/0.3471, allocations: 33.7 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.636e-05/0.3472, allocations: 120.5 kB / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.563e-05/0.3472, allocations: 43.45 kB / 1.033 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.3473, allocations: 61.67 kB / 1.034 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3475, allocations: 330.8 kB / 1.034 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.3476, allocations: 63.95 kB / 1.034 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.3478, allocations: 132.6 kB / 1.034 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.3481, allocations: 220.8 kB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.3482, allocations: 0 / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005607/0.3487, allocations: 328.6 kB / 1.035 GB, free: 9.926 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.211e-05/0.3488, allocations: 67.39 kB / 1.035 GB, free: 9.848 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.3488, allocations: 7.938 kB / 1.035 GB, free: 9.84 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.3488, allocations: 0 / 1.035 GB, free: 9.84 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-05/0.3489, allocations: 20.14 kB / 1.035 GB, free: 9.82 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.3489, allocations: 7.938 kB / 1.035 GB, free: 9.812 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.3491, allocations: 27.83 kB / 1.035 GB, free: 9.785 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.414e-05/0.3492, allocations: 8 kB / 1.035 GB, free: 9.777 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 19 (timSer1.timeConverted,$PRE.timSer1.timeConverted,timSer.timeConverted,$PRE.timSer.timeConverted,timSer1.sampleTrigger,timSer1.tActivateLast,$PRE.timSer1.tActivateLast,timSer1.active,timSer.sampleTrigger,timSer.tActivateLast,$PRE.timSer.tActivateLast,timSer.active,plotConfiguration.tActivateLast,$PRE.plotConfiguration.tActivateLast,plotConfiguration.active,$whenCondition1,$whenCondition2,$whenCondition3,plotConfiguration.activate_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 2 * 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.0001307/0.3493, allocations: 140.1 kB / 1.035 GB, free: 9.633 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/0.3493, allocations: 19.72 kB / 1.035 GB, free: 9.613 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002364/0.3496, allocations: 153.4 kB / 1.035 GB, free: 9.461 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3496, allocations: 4 kB / 1.035 GB, free: 9.457 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.3496, allocations: 4 kB / 1.035 GB, free: 9.453 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.3496, allocations: 3.984 kB / 1.035 GB, free: 9.449 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005491/0.3502, allocations: 490.1 kB / 1.035 GB, free: 8.914 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3502, allocations: 4 kB / 1.035 GB, free: 8.91 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.978e-05/0.3502, allocations: 7.984 kB / 1.036 GB, free: 8.902 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.3502, allocations: 0 / 1.036 GB, free: 8.902 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.3502, allocations: 4 kB / 1.036 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.3502, allocations: 0 / 1.036 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3503, allocations: 0 / 1.036 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.3505, allocations: 250.2 kB / 1.036 GB, free: 8.641 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.074e-05/0.3506, allocations: 108.8 kB / 1.036 GB, free: 8.516 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.3506, allocations: 7.984 kB / 1.036 GB, free: 8.508 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.3507, allocations: 8 kB / 1.036 GB, free: 8.5 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.477e-05/0.3508, allocations: 15.97 kB / 1.036 GB, free: 8.484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-05/0.3508, allocations: 12 kB / 1.036 GB, free: 8.473 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001109/0.351, allocations: 145.5 kB / 1.036 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.351, allocations: 4 kB / 1.036 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003084/0.3513, allocations: 51.89 kB / 1.036 GB, free: 8.277 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 (timSer1.sampleTrigger,timSer.sampleTrigger,plotConfiguration.active,$whenCondition3,$whenCondition2,$whenCondition1,plotConfiguration.tActivateLast,timSer.active,timSer.tActivateLast,timSer.timeConverted,timSer1.active,timSer1.tActivateLast,timSer1.timeConverted) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000335/0.3516, allocations: 160.3 kB / 1.036 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003941/0.352, allocations: 250.5 kB / 1.036 GB, free: 7.863 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.352, allocations: 3.938 kB / 1.036 GB, free: 7.859 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.771e-05/0.3521, allocations: 55.89 kB / 1.037 GB, free: 7.805 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004095/0.3525, allocations: 62.69 kB / 1.037 GB, free: 7.746 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006197/0.3532, allocations: 311.5 kB / 1.037 GB, free: 7.418 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.3535, allocations: 0.7203 MB / 1.038 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 8.377e-05/0.3536, allocations: 33.92 kB / 1.038 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.209e-05/0.3536, allocations: 27.42 kB / 1.038 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of SimCode: time 5.71e-07/0.3536, allocations: 0 / 1.038 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of Templates: time 0.007375/0.361, allocations: 3.558 MB / 1.041 GB, free: 3.105 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.makefile (rm -f Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe >> ../files/Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.sim & ./Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Plotters_Examples_TimeSeries.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches