Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.0009655/0.0009655, allocations: 99.27 kB / 16.02 MB, free: 76 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.001616/0.001616, allocations: 183 kB / 16.92 MB, free: 6.918 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.418/1.418, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.433/2.433, allocations: 390.9 MB / 0.667 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0006358/0.0006359, allocations: 8 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8941/0.8948, allocations: 142.4 MB / 0.9557 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.TimeSeries): time 0.001862/0.8967, allocations: 1.573 MB / 0.9572 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001064/0.8978, allocations: 0.6669 MB / 0.9579 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.658e-05/0.8979, allocations: 1.125 kB / 0.9579 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.8981, allocations: 28.19 kB / 0.9579 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.8983, allocations: 92.66 kB / 0.958 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003159/0.8986, allocations: 145.3 kB / 0.9581 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002335/0.8989, allocations: 231.8 kB / 0.9584 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.899, allocations: 30.42 kB / 0.9584 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.8991, allocations: 99.73 kB / 0.9585 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.04024/0.9394, allocations: 2.646 MB / 0.9611 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.834e-05/0.9395, allocations: 9 kB / 0.9611 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001532/0.9397, allocations: 26.2 kB / 0.9611 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.535e-05/0.9397, allocations: 41.3 kB / 0.9611 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.9399, allocations: 111.5 kB / 0.9612 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.9402, allocations: 145.7 kB / 0.9614 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.9402, allocations: 1.094 kB / 0.9614 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.243e-06/0.9402, allocations: 0 / 0.9614 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.118e-06/0.9402, allocations: 0 / 0.9614 GB, free: 4.328 MB / 0.7169 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.000792/0.941, allocations: 0.5276 MB / 0.9619 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.9411, allocations: 9.75 kB / 0.9619 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.9412, allocations: 20.38 kB / 0.9619 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.9415, allocations: 246.1 kB / 0.9622 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.9416, allocations: 11.97 kB / 0.9622 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.637e-05/0.9416, allocations: 19.59 kB / 0.9622 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000223/0.9418, allocations: 116.3 kB / 0.9623 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.9419, allocations: 0 / 0.9623 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.9419, allocations: 8.984 kB / 0.9623 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.9419, allocations: 3.156 kB / 0.9623 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.942, allocations: 56.06 kB / 0.9624 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009134/0.9429, allocations: 498.9 kB / 0.9628 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003098/0.9433, allocations: 112.1 kB / 0.963 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.615e-05/0.9433, allocations: 34.47 kB / 0.963 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.235e-05/0.9434, allocations: 2.594 kB / 0.963 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001686/0.9436, allocations: 108.2 kB / 0.9631 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.374e-06/0.9436, allocations: 0 / 0.9631 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0003601/0.9439, allocations: 175.2 kB / 0.9633 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.1e-05/0.944, allocations: 58.59 kB / 0.9633 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.9442, allocations: 203.5 kB / 0.9635 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.71e-05/0.9442, allocations: 33.3 kB / 0.9635 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.267e-05/0.9443, allocations: 131 kB / 0.9637 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.565e-05/0.9444, allocations: 37.69 kB / 0.9637 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.193e-05/0.9444, allocations: 35.8 kB / 0.9637 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.681e-05/0.9445, allocations: 335 kB / 0.9641 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.9447, allocations: 62.92 kB / 0.9641 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.9449, allocations: 134.9 kB / 0.9642 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000279/0.9452, allocations: 214.3 kB / 0.9645 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.9452, allocations: 5.375 kB / 0.9645 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005942/0.9458, allocations: 323.9 kB / 0.9648 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.475e-05/0.9459, allocations: 65.05 kB / 0.9648 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.9459, allocations: 6.281 kB / 0.9648 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.9459, allocations: 2.812 kB / 0.9648 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.946, allocations: 25.3 kB / 0.9649 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.946, allocations: 10.66 kB / 0.9649 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.9463, allocations: 29.33 kB / 0.9649 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.9e-05/0.9463, allocations: 13.03 kB / 0.9649 GB, free: 1.297 MB / 0.7169 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.0001218/0.9464, allocations: 143.8 kB / 0.965 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.059e-05/0.9465, allocations: 15.34 kB / 0.9651 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.9467, allocations: 153 kB / 0.9652 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.9467, allocations: 5.719 kB / 0.9652 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.9467, allocations: 0 / 0.9652 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.9467, allocations: 4.984 kB / 0.9652 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005388/0.9473, allocations: 498 kB / 0.9657 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.9473, allocations: 0 / 0.9657 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.264e-05/0.9474, allocations: 9.891 kB / 0.9657 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.9474, allocations: 4 kB / 0.9657 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.9474, allocations: 2.656 kB / 0.9657 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.9474, allocations: 3.938 kB / 0.9657 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.9474, allocations: 0 / 0.9657 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002206/0.9476, allocations: 237.6 kB / 0.9659 GB, free: 448 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.192e-05/0.9477, allocations: 108.8 kB / 0.966 GB, free: 328 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.736e-05/0.9477, allocations: 2.031 kB / 0.966 GB, free: 328 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.9479, allocations: 19.08 kB / 0.9661 GB, free: 316 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.459e-05/0.9479, allocations: 11.36 kB / 0.9661 GB, free: 312 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.039e-05/0.948, allocations: 14.64 kB / 0.9661 GB, free: 304 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001184/0.9481, allocations: 145 kB / 0.9662 GB, free: 196 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9481, allocations: 0 / 0.9662 GB, free: 196 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003606/0.9485, allocations: 47.88 kB / 0.9663 GB, free: 184 kB / 0.7169 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.0003502/0.9488, allocations: 175.7 kB / 0.9664 GB, free: 56 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004557/0.9493, allocations: 250.7 kB / 0.9667 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/0.9493, allocations: 4 kB / 0.9667 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.991e-05/0.9494, allocations: 48.14 kB / 0.9667 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004721/0.9499, allocations: 63.75 kB / 0.9668 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000785/0.9507, allocations: 402.3 kB / 0.9672 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.951, allocations: 0.7321 MB / 0.9679 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.462e-05/0.9511, allocations: 24.7 kB / 0.9679 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.9511, allocations: 0 / 0.9679 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of Templates: time 0.007754/0.9589, allocations: 3.231 MB / 0.9711 GB, free: 13.1 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.makefile (rm -f Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe ; mkfifo Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe >> ../files/Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.sim & ./Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Plotters_Examples_TimeSeries.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches