Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.008258/0.008258, allocations: 165.9 kB / 15.13 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 205.4 MB / 221.3 MB, free: 13.79 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008573/0.0008573, allocations: 90.3 kB / 269.6 MB, free: 13.33 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6613/0.6613, allocations: 90.61 MB / 408.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003378/0.0003378, allocations: 12 kB / 485.2 MB, free: 2.043 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3166, allocations: 66.27 MB / 0.5386 GB, free: 45.35 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1319/0.4486, allocations: 127.3 MB / 0.6629 GB, free: 12.32 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.4508, allocations: 1.948 MB / 0.6648 GB, free: 10.38 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.451, allocations: 0 / 0.6648 GB, free: 10.38 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004212/0.4514, allocations: 99.45 kB / 0.6649 GB, free: 10.28 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003798/0.4518, allocations: 131.2 kB / 0.665 GB, free: 10.15 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004027/0.4522, allocations: 123.5 kB / 0.6652 GB, free: 10.03 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003376/0.4526, allocations: 278.8 kB / 0.6654 GB, free: 9.758 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.4527, allocations: 47.77 kB / 0.6655 GB, free: 9.715 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003935/0.4531, allocations: 139.4 kB / 0.6656 GB, free: 9.578 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001796/0.4533, allocations: 107.6 kB / 0.6657 GB, free: 9.473 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.285e-05/0.4534, allocations: 8 kB / 0.6657 GB, free: 9.465 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003727/0.4538, allocations: 191.6 kB / 0.6659 GB, free: 9.277 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 3.497e-05/0.4538, allocations: 16.77 kB / 0.6659 GB, free: 9.262 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 7.239e-05/0.4539, allocations: 57.58 kB / 0.666 GB, free: 9.199 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002407/0.4541, allocations: 165.7 kB / 0.6661 GB, free: 9.039 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.4541, allocations: 0 / 0.6661 GB, free: 9.039 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4541, allocations: 0 / 0.6661 GB, free: 9.039 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.4542, allocations: 0 / 0.6661 GB, free: 9.039 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.000863/0.455, allocations: 0.497 MB / 0.6666 GB, free: 8.492 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.4551, allocations: 8.031 kB / 0.6666 GB, free: 8.484 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.164e-05/0.4551, allocations: 15.81 kB / 0.6666 GB, free: 8.469 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.4554, allocations: 216.5 kB / 0.6668 GB, free: 8.219 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.4554, allocations: 12.23 kB / 0.6668 GB, free: 8.207 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.571e-05/0.4555, allocations: 12 kB / 0.6669 GB, free: 8.195 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003994/0.4559, allocations: 170.2 kB / 0.667 GB, free: 8.02 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.4559, allocations: 0 / 0.667 GB, free: 8.02 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.4559, allocations: 7.984 kB / 0.667 GB, free: 8.012 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.4559, allocations: 4 kB / 0.667 GB, free: 8.008 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003323/0.4563, allocations: 115.9 kB / 0.6671 GB, free: 7.895 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.4573, allocations: 0.7858 MB / 0.6679 GB, free: 7.008 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003391/0.4576, allocations: 122.5 kB / 0.668 GB, free: 6.879 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.4578, allocations: 48.83 kB / 0.6681 GB, free: 6.828 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.284e-05/0.4579, allocations: 85.09 kB / 0.6682 GB, free: 6.727 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002813/0.4582, allocations: 103.8 kB / 0.6683 GB, free: 6.613 MB / 490.7 MB Notification: Performance of pre-optimization done (n=9): time 1.754e-06/0.4582, allocations: 0 / 0.6683 GB, free: 6.613 MB / 490.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005369/0.4587, allocations: 182 kB / 0.6684 GB, free: 6.43 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.4588, allocations: 63.39 kB / 0.6685 GB, free: 6.355 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.459, allocations: 186.6 kB / 0.6687 GB, free: 6.16 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.459, allocations: 29.7 kB / 0.6687 GB, free: 6.125 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.939e-05/0.4591, allocations: 143.8 kB / 0.6688 GB, free: 5.977 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.427e-05/0.4591, allocations: 28.48 kB / 0.6689 GB, free: 5.949 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.688e-06/0.4592, allocations: 4 kB / 0.6689 GB, free: 5.945 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.4593, allocations: 330.8 kB / 0.6692 GB, free: 5.613 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.4594, allocations: 55.91 kB / 0.6692 GB, free: 5.559 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.4597, allocations: 94.31 kB / 0.6693 GB, free: 5.449 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/0.4599, allocations: 97.61 kB / 0.6694 GB, free: 5.348 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4599, allocations: 0 / 0.6694 GB, free: 5.348 MB / 490.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004594/0.4603, allocations: 227 kB / 0.6696 GB, free: 5.113 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/0.4604, allocations: 34.8 kB / 0.6697 GB, free: 5.074 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4604, allocations: 1.781 kB / 0.6697 GB, free: 5.074 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.4604, allocations: 7.984 kB / 0.6697 GB, free: 5.066 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.4606, allocations: 28.48 kB / 0.6697 GB, free: 5.039 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.4606, allocations: 4.156 kB / 0.6697 GB, free: 5.035 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.4608, allocations: 31.83 kB / 0.6697 GB, free: 5.004 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.4608, allocations: 7.938 kB / 0.6697 GB, free: 4.996 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.0001059/0.4609, allocations: 133.6 kB / 0.6699 GB, free: 4.855 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.401e-05/0.4609, allocations: 15.81 kB / 0.6699 GB, free: 4.84 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003843/0.4613, allocations: 154.4 kB / 0.67 GB, free: 4.691 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.4613, allocations: 4 kB / 0.67 GB, free: 4.688 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.4614, allocations: 0 / 0.67 GB, free: 4.688 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-06/0.4614, allocations: 4 kB / 0.67 GB, free: 4.684 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001962/0.4616, allocations: 229.4 kB / 0.6703 GB, free: 4.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4616, allocations: 0 / 0.6703 GB, free: 4.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.4617, allocations: 23.98 kB / 0.6703 GB, free: 4.387 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.4617, allocations: 0 / 0.6703 GB, free: 4.387 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.4617, allocations: 10.48 kB / 0.6703 GB, free: 4.379 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.4617, allocations: 4 kB / 0.6703 GB, free: 4.375 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4618, allocations: 0 / 0.6703 GB, free: 4.375 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005215/0.4623, allocations: 222.4 kB / 0.6705 GB, free: 4.141 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.14e-05/0.4623, allocations: 101 kB / 0.6706 GB, free: 4.023 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.45e-05/0.4624, allocations: 0 / 0.6706 GB, free: 4.023 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.4625, allocations: 15.89 kB / 0.6706 GB, free: 4.008 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.45e-05/0.4626, allocations: 23.98 kB / 0.6706 GB, free: 3.984 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.4626, allocations: 0 / 0.6706 GB, free: 3.984 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001107/0.4627, allocations: 136.5 kB / 0.6708 GB, free: 3.852 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4627, allocations: 0 / 0.6708 GB, free: 3.852 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002455/0.463, allocations: 40 kB / 0.6708 GB, free: 3.812 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.000188/0.4632, allocations: 140.5 kB / 0.6709 GB, free: 3.664 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0004589/0.4636, allocations: 179.3 kB / 0.6711 GB, free: 3.477 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4636, allocations: 0 / 0.6711 GB, free: 3.477 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.4638, allocations: 56.22 kB / 0.6712 GB, free: 3.422 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.4642, allocations: 44.89 kB / 0.6712 GB, free: 3.383 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007231/0.4649, allocations: 464.2 kB / 0.6717 GB, free: 2.902 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.4652, allocations: 0.7242 MB / 0.6724 GB, free: 2.152 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 7.492e-05/0.4653, allocations: 14.17 kB / 0.6724 GB, free: 2.141 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.423e-05/0.4653, allocations: 19.44 kB / 0.6724 GB, free: 2.121 MB / 490.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4653, allocations: 0 / 0.6724 GB, free: 2.121 MB / 490.7 MB Notification: Performance of Templates: time 0.005024/0.4703, allocations: 2.281 MB / 0.6746 GB, free: 15.91 MB / 0.4948 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches