Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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: 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_10_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_10_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.001024/0.001024, allocations: 91.92 kB / 16.02 MB, free: 80 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.001311/0.001311, allocations: 184.2 kB / 16.92 MB, free: 6.926 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.384/1.384, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.678/2.678, allocations: 437.8 MB / 0.7128 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003919/0.0003921, allocations: 8 kB / 0.8735 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8133/0.8137, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.TimeSeries): time 0.002289/0.816, allocations: 1.571 MB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001312/0.8174, allocations: 0.6665 MB / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.8175, allocations: 0 / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001962/0.8177, allocations: 19.8 kB / 1.026 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003714/0.8181, allocations: 95.66 kB / 1.026 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000404/0.8185, allocations: 155.5 kB / 1.026 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003071/0.8188, allocations: 223.4 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.819, allocations: 37.66 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.8192, allocations: 95.61 kB / 1.026 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.03852/0.8577, allocations: 2.643 MB / 1.029 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.8578, allocations: 8 kB / 1.029 GB, free: 11 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.858, allocations: 24 kB / 1.029 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.147e-05/0.858, allocations: 39.83 kB / 1.029 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.8582, allocations: 113.2 kB / 1.029 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002564/0.8585, allocations: 151.6 kB / 1.029 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.8585, allocations: 0 / 1.029 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.184e-06/0.8585, allocations: 0 / 1.029 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.032e-06/0.8585, allocations: 0 / 1.029 GB, free: 10.67 MB / 0.7794 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.0007531/0.8592, allocations: 0.5177 MB / 1.03 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.8593, allocations: 8.031 kB / 1.03 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.711e-05/0.8594, allocations: 24.73 kB / 1.03 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.8597, allocations: 244.1 kB / 1.03 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.8597, allocations: 12.38 kB / 1.03 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.978e-05/0.8598, allocations: 16.12 kB / 1.03 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.86, allocations: 109.6 kB / 1.03 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.86, allocations: 0 / 1.03 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.86, allocations: 4 kB / 1.03 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.86, allocations: 4 kB / 1.03 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001182/0.8602, allocations: 63.95 kB / 1.03 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008714/0.8611, allocations: 496.1 kB / 1.031 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002652/0.8613, allocations: 118.6 kB / 1.031 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.623e-05/0.8614, allocations: 44.83 kB / 1.031 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.8614, allocations: 11.97 kB / 1.031 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001575/0.8616, allocations: 99.36 kB / 1.031 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.844e-06/0.8616, allocations: 0 / 1.031 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.0003489/0.862, allocations: 177.2 kB / 1.031 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.862, allocations: 59.39 kB / 1.031 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.8622, allocations: 204.8 kB / 1.031 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.811e-05/0.8623, allocations: 33.7 kB / 1.032 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.966e-05/0.8624, allocations: 124.3 kB / 1.032 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.127e-05/0.8624, allocations: 43.55 kB / 1.032 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.207e-05/0.8625, allocations: 29.7 kB / 1.032 GB, free: 8.039 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.8626, allocations: 326.8 kB / 1.032 GB, free: 7.711 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.8628, allocations: 63.95 kB / 1.032 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002103/0.863, allocations: 125.9 kB / 1.032 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002845/0.8633, allocations: 220.6 kB / 1.032 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.8633, allocations: 0 / 1.032 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005742/0.8639, allocations: 340.5 kB / 1.033 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.414e-05/0.8639, allocations: 67.39 kB / 1.033 GB, free: 6.824 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.8639, allocations: 7.938 kB / 1.033 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.864, allocations: 0 / 1.033 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.582e-05/0.864, allocations: 19.94 kB / 1.033 GB, free: 6.797 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.8641, allocations: 3.984 kB / 1.033 GB, free: 6.793 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001983/0.8643, allocations: 27.84 kB / 1.033 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.8643, allocations: 12.14 kB / 1.033 GB, free: 6.754 MB / 0.7794 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.0001362/0.8644, allocations: 148.5 kB / 1.033 GB, free: 6.602 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.8645, allocations: 15.81 kB / 1.033 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002339/0.8647, allocations: 150.6 kB / 1.033 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.8647, allocations: 4 kB / 1.033 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.8647, allocations: 0 / 1.033 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.8647, allocations: 0 / 1.033 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005714/0.8653, allocations: 0.4943 MB / 1.034 GB, free: 5.887 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.8653, allocations: 3.938 kB / 1.034 GB, free: 5.883 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.274e-05/0.8654, allocations: 7.938 kB / 1.034 GB, free: 5.875 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.8654, allocations: 0 / 1.034 GB, free: 5.875 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.8654, allocations: 7.984 kB / 1.034 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.8654, allocations: 0 / 1.034 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.8654, allocations: 0 / 1.034 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002304/0.8657, allocations: 243.2 kB / 1.034 GB, free: 5.613 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.586e-05/0.8657, allocations: 108.8 kB / 1.034 GB, free: 5.488 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.8659, allocations: 3.984 kB / 1.034 GB, free: 5.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.866, allocations: 12 kB / 1.034 GB, free: 5.473 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.466e-05/0.8661, allocations: 19.97 kB / 1.034 GB, free: 5.453 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.32e-05/0.8661, allocations: 8 kB / 1.034 GB, free: 5.445 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001198/0.8663, allocations: 148.5 kB / 1.034 GB, free: 5.301 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8663, allocations: 4 kB / 1.034 GB, free: 5.297 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000342/0.8666, allocations: 43.98 kB / 1.034 GB, free: 5.254 MB / 0.7794 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.0003402/0.867, allocations: 174.9 kB / 1.034 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000404/0.8674, allocations: 242.7 kB / 1.035 GB, free: 4.832 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.8674, allocations: 0 / 1.035 GB, free: 4.832 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.854e-05/0.8675, allocations: 55.91 kB / 1.035 GB, free: 4.777 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.8679, allocations: 60.95 kB / 1.035 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00069/0.8687, allocations: 412 kB / 1.035 GB, free: 4.285 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.8689, allocations: 0.7245 MB / 1.036 GB, free: 3.535 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/0.869, allocations: 23.42 kB / 1.036 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of SimCode: time 3.81e-07/0.869, allocations: 7.938 kB / 1.036 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of Templates: time 0.006061/0.8751, allocations: 3.248 MB / 1.039 GB, free: 288 kB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Plotters.Examples.TimeSeries.makefile (rm -f Buildings_10_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe ; mkfifo Buildings_10_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe >> ../files/Buildings_10_Buildings.Utilities.Plotters.Examples.TimeSeries.sim & ./Buildings_10_Buildings.Utilities.Plotters.Examples.TimeSeries -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Plotters.Examples.TimeSeries_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Plotters_Examples_TimeSeries.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Plotters.Examples.TimeSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches