Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.VectorFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sine.y|sine1.y|sine2.y|minVec.y|maxVec.y|aveVec.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions") translateModel(Buildings.Utilities.Math.Examples.VectorFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sine.y|sine1.y|sine2.y|minVec.y|maxVec.y|aveVec.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.233/2.233, allocations: 393.5 MB / 408.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001728/0.001727, allocations: 172 kB / 0.4902 GB, free: 2.262 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 223.2 MB / 0.7992 GB, free: 15.57 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 98.5 kB / 0.9396 GB, free: 2.746 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003663/0.0003662, allocations: 9.828 kB / 1.09 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3388, allocations: 143 MB / 1.229 GB, free: 85.45 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2035/0.5423, allocations: 150.8 MB / 1.376 GB, free: 14.45 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/0.5426, allocations: 75.97 kB / 1.377 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.005969/0.5486, allocations: 1.755 MB / 1.378 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.744e-06/0.5487, allocations: 0 / 1.378 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.317e-05/0.5487, allocations: 0 / 1.378 GB, free: 12.61 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005849/0.5493, allocations: 406.8 kB / 1.379 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.5493, allocations: 8.562 kB / 1.379 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.473e-05/0.5494, allocations: 11.86 kB / 1.379 GB, free: 12.14 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002547/0.5497, allocations: 199.8 kB / 1.379 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.5497, allocations: 8 kB / 1.379 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.5497, allocations: 4 kB / 1.379 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.55, allocations: 119.8 kB / 1.379 GB, free: 11.78 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.5501, allocations: 0 / 1.379 GB, free: 11.78 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.794e-05/0.5501, allocations: 4 kB / 1.379 GB, free: 11.77 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-06/0.5501, allocations: 4 kB / 1.379 GB, free: 11.77 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002644/0.5504, allocations: 103.9 kB / 1.379 GB, free: 11.67 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007207/0.5511, allocations: 384.5 kB / 1.379 GB, free: 11.24 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.5513, allocations: 62.5 kB / 1.38 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.681e-05/0.5513, allocations: 4 kB / 1.38 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.5514, allocations: 34.69 kB / 1.38 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=6): time 2.094e-06/0.5514, allocations: 4 kB / 1.38 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6): time 0.0005383/0.5519, allocations: 177.4 kB / 1.38 GB, free: 10.94 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.552, allocations: 59.41 kB / 1.38 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.5521, allocations: 114.9 kB / 1.38 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.5522, allocations: 25.7 kB / 1.38 GB, free: 10.72 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.572e-05/0.5523, allocations: 116.2 kB / 1.38 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.99e-05/0.5523, allocations: 15.8 kB / 1.38 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.58e-06/0.5523, allocations: 0 / 1.38 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.5525, allocations: 322.8 kB / 1.38 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.5526, allocations: 43.97 kB / 1.38 GB, free: 10.22 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.5527, allocations: 43.97 kB / 1.38 GB, free: 10.18 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.5528, allocations: 47.97 kB / 1.38 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.5529, allocations: 0 / 1.38 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003118/0.5532, allocations: 141.4 kB / 1.381 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.5532, allocations: 7.953 kB / 1.381 GB, free: 9.977 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.5532, allocations: 0 / 1.381 GB, free: 9.977 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.5532, allocations: 4 kB / 1.381 GB, free: 9.973 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.5534, allocations: 19.98 kB / 1.381 GB, free: 9.953 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.5534, allocations: 0 / 1.381 GB, free: 9.953 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.739e-05/0.5535, allocations: 27.86 kB / 1.381 GB, free: 9.926 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.5536, allocations: 0 / 1.381 GB, free: 9.926 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001138/0.5537, allocations: 121.8 kB / 1.381 GB, free: 9.797 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.365e-05/0.5537, allocations: 11.91 kB / 1.381 GB, free: 9.785 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003962/0.5541, allocations: 158.6 kB / 1.381 GB, free: 9.621 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.5541, allocations: 4 kB / 1.381 GB, free: 9.617 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.5542, allocations: 0 / 1.381 GB, free: 9.617 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.5542, allocations: 4.062 kB / 1.381 GB, free: 9.613 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002456/0.5544, allocations: 205.6 kB / 1.381 GB, free: 9.363 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.5544, allocations: 0 / 1.381 GB, free: 9.363 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.5546, allocations: 19.98 kB / 1.381 GB, free: 9.344 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.5546, allocations: 0 / 1.381 GB, free: 9.344 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.5546, allocations: 7.984 kB / 1.381 GB, free: 9.336 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.5546, allocations: 3.953 kB / 1.381 GB, free: 9.332 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5546, allocations: 4 kB / 1.381 GB, free: 9.328 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003764/0.555, allocations: 227.3 kB / 1.381 GB, free: 9.09 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.243e-05/0.5551, allocations: 85 kB / 1.381 GB, free: 8.988 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.372e-05/0.5551, allocations: 4 kB / 1.381 GB, free: 8.984 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.5552, allocations: 16 kB / 1.382 GB, free: 8.969 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.064e-05/0.5553, allocations: 7.938 kB / 1.382 GB, free: 8.961 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.5553, allocations: 4 kB / 1.382 GB, free: 8.957 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.877e-05/0.5554, allocations: 104.5 kB / 1.382 GB, free: 8.855 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5554, allocations: 0 / 1.382 GB, free: 8.855 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002576/0.5557, allocations: 19.94 kB / 1.382 GB, free: 8.836 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002246/0.5559, allocations: 100 kB / 1.382 GB, free: 8.73 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003187/0.5562, allocations: 111.9 kB / 1.382 GB, free: 8.621 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.5562, allocations: 0 / 1.382 GB, free: 8.621 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.5564, allocations: 71.89 kB / 1.382 GB, free: 8.551 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001615/0.5566, allocations: 0.8594 kB / 1.382 GB, free: 8.551 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005888/0.5572, allocations: 241.4 kB / 1.382 GB, free: 8.285 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.5576, allocations: 0.7004 MB / 1.383 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.076e-05/0.5576, allocations: 15.97 kB / 1.383 GB, free: 7.543 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.163e-05/0.5577, allocations: 19.42 kB / 1.383 GB, free: 7.527 MB / 0.8855 GB Notification: Performance of SimCode: time 6.91e-07/0.5577, allocations: 3.938 kB / 1.383 GB, free: 7.523 MB / 0.8855 GB Notification: Performance of Templates: time 0.003196/0.5609, allocations: 0.5927 MB / 1.383 GB, free: 6.934 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_VectorFunctions.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.VectorFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches