Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.005034/0.005034, allocations: 167.4 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.417/1.417, allocations: 205.4 MB / 221.3 MB, free: 13.81 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.0008444/0.0008444, allocations: 90.31 kB / 269.6 MB, free: 13.34 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.6694/0.6694, allocations: 90.61 MB / 408.5 MB, free: 14.93 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002978, allocations: 8 kB / 485.3 MB, free: 2.016 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3096, allocations: 66.27 MB / 0.5386 GB, free: 45.69 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.156/0.4656, allocations: 158.2 MB / 0.6931 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.01249/0.4781, allocations: 10.2 MB / 0.703 GB, free: 3.176 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001403/0.4796, allocations: 25.94 kB / 0.7031 GB, free: 3.152 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.00188/0.4815, allocations: 0.6526 MB / 0.7037 GB, free: 2.496 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.003998/0.4855, allocations: 1.492 MB / 0.7052 GB, free: 0.9961 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.002393/0.4879, allocations: 0.8003 MB / 0.7059 GB, free: 200 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.003134/0.491, allocations: 2.842 MB / 0.7087 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005969/0.4916, allocations: 366.8 kB / 0.7091 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001578/0.4932, allocations: 0.8093 MB / 0.7099 GB, free: 12.18 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001726/0.495, allocations: 1.242 MB / 0.7111 GB, free: 10.94 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.4951, allocations: 60 kB / 0.7111 GB, free: 10.88 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003702/0.4988, allocations: 1.657 MB / 0.7127 GB, free: 9.219 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0002537/0.4991, allocations: 246.9 kB / 0.713 GB, free: 8.977 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0004859/0.4996, allocations: 293 kB / 0.7133 GB, free: 8.684 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.002677/0.5023, allocations: 1.703 MB / 0.7149 GB, free: 6.977 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.5023, allocations: 0 / 0.7149 GB, free: 6.977 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.054e-06/0.5023, allocations: 0 / 0.7149 GB, free: 6.977 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.433e-05/0.5023, allocations: 0 / 0.7149 GB, free: 6.977 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.003533/0.5059, allocations: 1.672 MB / 0.7166 GB, free: 5.246 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.5059, allocations: 12.03 kB / 0.7166 GB, free: 5.234 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002552/0.5062, allocations: 154.2 kB / 0.7167 GB, free: 5.082 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.5072, allocations: 0.7086 MB / 0.7174 GB, free: 4.332 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.345e-05/0.5073, allocations: 94.31 kB / 0.7175 GB, free: 4.238 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001695/0.5075, allocations: 120 kB / 0.7176 GB, free: 4.121 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002378/0.5099, allocations: 1.394 MB / 0.719 GB, free: 2.703 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.42e-05/0.5099, allocations: 8 kB / 0.719 GB, free: 2.695 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/0.51, allocations: 44 kB / 0.719 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.098e-05/0.5101, allocations: 32 kB / 0.719 GB, free: 2.621 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00258/0.5126, allocations: 1.684 MB / 0.7207 GB, free: 0.9297 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007139/0.5198, allocations: 6.301 MB / 0.7268 GB, free: 9.973 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002508/0.5223, allocations: 1.473 MB / 0.7283 GB, free: 8.496 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/0.5235, allocations: 0.7466 MB / 0.729 GB, free: 7.746 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004909/0.5284, allocations: 4.108 MB / 0.733 GB, free: 3.184 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001246/0.5297, allocations: 0.7706 MB / 0.7338 GB, free: 2.406 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=134): time 3.697e-06/0.5297, allocations: 4 kB / 0.7338 GB, free: 2.402 MB / 0.5417 GB Notification: Performance of matching and sorting (n=135): time 0.007276/0.537, allocations: 4.099 MB / 0.7378 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.5371, allocations: 72.64 kB / 0.7379 GB, free: 14.12 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005817/0.5376, allocations: 0.5393 MB / 0.7384 GB, free: 13.58 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.105e-05/0.5377, allocations: 53.7 kB / 0.7384 GB, free: 13.52 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003302/0.5381, allocations: 464.6 kB / 0.7389 GB, free: 13.06 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003221/0.5384, allocations: 457.3 kB / 0.7393 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.476e-05/0.5385, allocations: 28 kB / 0.7393 GB, free: 12.58 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001704/0.5387, allocations: 402.7 kB / 0.7397 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000997/0.5397, allocations: 0.5453 MB / 0.7403 GB, free: 11.63 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001068/0.5407, allocations: 0.6611 MB / 0.7409 GB, free: 10.95 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.5419, allocations: 0.6445 MB / 0.7415 GB, free: 10.3 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.5419, allocations: 0 / 0.7415 GB, free: 10.3 MB / 0.5573 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.00288/0.5448, allocations: 1.654 MB / 0.7431 GB, free: 8.629 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.771e-05/0.5448, allocations: 33.7 kB / 0.7432 GB, free: 8.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.5449, allocations: 7.984 kB / 0.7432 GB, free: 8.582 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005162/0.5454, allocations: 152.8 kB / 0.7433 GB, free: 8.43 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009407/0.5463, allocations: 251.7 kB / 0.7436 GB, free: 8.184 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003827/0.5502, allocations: 2.528 MB / 0.746 GB, free: 5.527 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000781/0.551, allocations: 103.8 kB / 0.7461 GB, free: 5.426 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/0.5511, allocations: 47.98 kB / 0.7462 GB, free: 5.379 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004712/0.5516, allocations: 277.6 kB / 0.7464 GB, free: 5.098 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/0.5517, allocations: 102.9 kB / 0.7465 GB, free: 4.996 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004076/0.5558, allocations: 2.182 MB / 0.7487 GB, free: 2.891 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.5559, allocations: 16 kB / 0.7487 GB, free: 2.875 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.5559, allocations: 7.938 kB / 0.7487 GB, free: 2.867 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.5559, allocations: 7.969 kB / 0.7487 GB, free: 2.859 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1954/0.7513, allocations: 3.56 MB / 0.7522 GB, free: 179.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.7513, allocations: 7.594 kB / 0.7522 GB, free: 179.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009504/0.7523, allocations: 288.5 kB / 0.7525 GB, free: 179.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004054/0.7527, allocations: 142.9 kB / 0.7526 GB, free: 179.6 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.418e-05/0.7528, allocations: 48.97 kB / 0.7526 GB, free: 179.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001982/0.7548, allocations: 2.218 MB / 0.7548 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.7548, allocations: 2.688 kB / 0.7548 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004028/0.7588, allocations: 2.777 MB / 0.7575 GB, free: 178 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002242/0.7591, allocations: 168.6 kB / 0.7577 GB, free: 177.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001368/0.7592, allocations: 37.59 kB / 0.7577 GB, free: 177.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006895/0.7599, allocations: 102.7 kB / 0.7578 GB, free: 177.9 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.7601, allocations: 125 kB / 0.7579 GB, free: 177.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.7602, allocations: 57.84 kB / 0.758 GB, free: 177.9 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003888/0.7606, allocations: 377.3 kB / 0.7584 GB, free: 177.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7606, allocations: 5.172 kB / 0.7584 GB, free: 177.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001308/0.762, allocations: 0.514 MB / 0.7589 GB, free: 177.8 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.m_flow) * 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 (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008139/0.7628, allocations: 0.5851 MB / 0.7594 GB, free: 177.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002695/0.7655, allocations: 1.775 MB / 0.7612 GB, free: 177.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.7655, allocations: 0 / 0.7612 GB, free: 177.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00176/0.7673, allocations: 1.098 MB / 0.7622 GB, free: 177.2 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001808/0.7691, allocations: 333.5 kB / 0.7626 GB, free: 177.1 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003644/0.7728, allocations: 2.973 MB / 0.7655 GB, free: 175.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005117/0.7733, allocations: 1.145 MB / 0.7666 GB, free: 174.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0009995/0.7743, allocations: 333.7 kB / 0.7669 GB, free: 174.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003291/0.7746, allocations: 137.5 kB / 0.767 GB, free: 174.7 MB / 0.5573 GB Notification: Performance of SimCode: time 6.41e-07/0.7746, allocations: 1.375 kB / 0.767 GB, free: 174.7 MB / 0.5573 GB Notification: Performance of Templates: time 0.0361/0.8107, allocations: 24.48 MB / 0.7909 GB, free: 168.5 MB / 0.5573 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches