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: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006399/0.006399, allocations: 168.2 kB / 15.13 MB, free: 6.02 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.422/1.422, allocations: 205.4 MB / 221.3 MB, free: 13.8 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.000785/0.000785, allocations: 90.23 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.7813/0.7813, allocations: 90.59 MB / 408.5 MB, free: 14.94 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003278/0.0003279, allocations: 8 kB / 485.4 MB, free: 1.922 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.3887, allocations: 66.28 MB / 0.5387 GB, free: 45.09 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1682/0.5569, allocations: 158.2 MB / 0.6932 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.01244/0.5694, allocations: 10.21 MB / 0.7031 GB, free: 3.027 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00139/0.5709, allocations: 23.88 kB / 0.7032 GB, free: 3.004 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.001885/0.5728, allocations: 0.6488 MB / 0.7038 GB, free: 2.352 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.003864/0.5766, allocations: 1.488 MB / 0.7053 GB, free: 0.8555 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.002205/0.5789, allocations: 0.7982 MB / 0.706 GB, free: 56 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.002982/0.5819, allocations: 2.842 MB / 0.7088 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005677/0.5824, allocations: 377 kB / 0.7092 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001315/0.5838, allocations: 0.8093 MB / 0.71 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00178/0.5856, allocations: 1.234 MB / 0.7112 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001762/0.5857, allocations: 63.94 kB / 0.7112 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00413/0.5899, allocations: 1.665 MB / 0.7128 GB, free: 9.066 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0002697/0.5902, allocations: 242.9 kB / 0.7131 GB, free: 8.828 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0005297/0.5907, allocations: 289 kB / 0.7134 GB, free: 8.539 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.002458/0.5932, allocations: 1.711 MB / 0.715 GB, free: 6.824 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.5932, allocations: 0 / 0.715 GB, free: 6.824 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.104e-06/0.5932, allocations: 0 / 0.715 GB, free: 6.824 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.868e-05/0.5932, allocations: 0 / 0.715 GB, free: 6.824 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.003542/0.5968, allocations: 1.672 MB / 0.7167 GB, free: 5.094 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.5968, allocations: 12.03 kB / 0.7167 GB, free: 5.082 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002334/0.5971, allocations: 177.6 kB / 0.7168 GB, free: 4.898 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002451/0.5973, allocations: 158.2 kB / 0.717 GB, free: 4.742 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/0.5984, allocations: 0.7009 MB / 0.7177 GB, free: 4 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.173e-05/0.5984, allocations: 94.36 kB / 0.7178 GB, free: 3.906 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001584/0.5986, allocations: 120 kB / 0.7179 GB, free: 3.789 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002335/0.601, allocations: 1.39 MB / 0.7192 GB, free: 2.371 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.601, allocations: 0 / 0.7192 GB, free: 2.371 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.742e-05/0.6011, allocations: 48 kB / 0.7193 GB, free: 2.324 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.705e-05/0.6011, allocations: 35.98 kB / 0.7193 GB, free: 2.289 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00254/0.6037, allocations: 1.684 MB / 0.721 GB, free: 0.5977 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007489/0.6112, allocations: 6.311 MB / 0.7271 GB, free: 9.629 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002499/0.6137, allocations: 1.464 MB / 0.7286 GB, free: 8.16 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001121/0.6148, allocations: 0.7427 MB / 0.7293 GB, free: 7.414 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004833/0.6197, allocations: 4.116 MB / 0.7333 GB, free: 2.844 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/0.621, allocations: 0.7746 MB / 0.7341 GB, free: 2.062 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=134): time 3.516e-06/0.621, allocations: 0 / 0.7341 GB, free: 2.062 MB / 0.5417 GB Notification: Performance of matching and sorting (n=135): time 0.007573/0.6286, allocations: 4.099 MB / 0.7381 GB, free: 13.87 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.6287, allocations: 68.72 kB / 0.7381 GB, free: 13.79 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006413/0.6294, allocations: 0.5393 MB / 0.7387 GB, free: 13.24 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.891e-05/0.6295, allocations: 49.7 kB / 0.7387 GB, free: 13.18 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003493/0.6298, allocations: 468.6 kB / 0.7391 GB, free: 12.72 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003445/0.6302, allocations: 457.2 kB / 0.7396 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.418e-05/0.6302, allocations: 28 kB / 0.7396 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001756/0.6304, allocations: 402.7 kB / 0.74 GB, free: 11.84 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009746/0.6314, allocations: 0.5453 MB / 0.7405 GB, free: 11.3 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001076/0.6325, allocations: 0.6603 MB / 0.7412 GB, free: 10.61 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/0.6336, allocations: 0.6499 MB / 0.7418 GB, free: 9.961 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.6336, allocations: 0 / 0.7418 GB, free: 9.961 MB / 0.5573 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003007/0.6367, allocations: 1.65 MB / 0.7434 GB, free: 8.293 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/0.6367, allocations: 33.7 kB / 0.7434 GB, free: 8.254 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.6367, allocations: 0 / 0.7434 GB, free: 8.254 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005127/0.6373, allocations: 156.7 kB / 0.7436 GB, free: 8.098 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009193/0.6382, allocations: 251.7 kB / 0.7438 GB, free: 7.852 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003781/0.642, allocations: 2.543 MB / 0.7463 GB, free: 5.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009935/0.643, allocations: 95.81 kB / 0.7464 GB, free: 5.086 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.6431, allocations: 51.98 kB / 0.7465 GB, free: 5.035 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.0005341/0.6437, allocations: 277.6 kB / 0.7467 GB, free: 4.754 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.6438, allocations: 102.7 kB / 0.7468 GB, free: 4.652 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004099/0.6479, allocations: 2.18 MB / 0.749 GB, free: 2.551 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-05/0.648, allocations: 16 kB / 0.749 GB, free: 2.535 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.648, allocations: 0 / 0.749 GB, free: 2.535 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-05/0.648, allocations: 14.91 kB / 0.749 GB, free: 2.523 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2285/0.8766, allocations: 3.563 MB / 0.7525 GB, free: 179 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.8766, allocations: 1.078 kB / 0.7525 GB, free: 179 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009394/0.8776, allocations: 286.8 kB / 0.7527 GB, free: 179 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004042/0.878, allocations: 148.2 kB / 0.7529 GB, free: 179 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.21e-05/0.8781, allocations: 47.39 kB / 0.7529 GB, free: 179 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/0.88, allocations: 2.22 MB / 0.7551 GB, free: 177.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.88, allocations: 3.75 kB / 0.7551 GB, free: 177.7 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004031/0.8841, allocations: 2.772 MB / 0.7578 GB, free: 177.5 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002818/0.8844, allocations: 176.7 kB / 0.758 GB, free: 177.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.8845, allocations: 28.25 kB / 0.758 GB, free: 177.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000676/0.8852, allocations: 98.64 kB / 0.7581 GB, free: 177.4 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.8854, allocations: 130 kB / 0.7582 GB, free: 177.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.8855, allocations: 59.62 kB / 0.7583 GB, free: 177.4 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003496/0.8859, allocations: 374.8 kB / 0.7586 GB, free: 177.3 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8859, allocations: 6.109 kB / 0.7586 GB, free: 177.3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001311/0.8872, allocations: 0.5118 MB / 0.7591 GB, free: 177.3 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.00514/0.8923, allocations: 3.814 MB / 0.7629 GB, free: 176.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002868/0.8952, allocations: 1.773 MB / 0.7646 GB, free: 175.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.8953, allocations: 0 / 0.7646 GB, free: 175.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001616/0.8969, allocations: 1.1 MB / 0.7657 GB, free: 175.2 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001688/0.8986, allocations: 336.8 kB / 0.766 GB, free: 175.1 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01128/0.9099, allocations: 7.264 MB / 0.7731 GB, free: 171.4 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006781/0.9106, allocations: 1.155 MB / 0.7742 GB, free: 170.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001209/0.9118, allocations: 332.8 kB / 0.7745 GB, free: 170.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006642/0.9125, allocations: 0.5164 MB / 0.775 GB, free: 170.3 MB / 0.5573 GB Notification: Performance of SimCode: time 7.41e-07/0.9125, allocations: 0.9375 kB / 0.775 GB, free: 170.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05871/0.9712, allocations: 34.72 MB / 0.8089 GB, free: 154.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/0.9714, allocations: 229.9 kB / 0.8092 GB, free: 154.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.976/3.947, allocations: 0 / 0.8092 GB, free: 154.6 MB / 0.5573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat does not exist to compare? outputFormat=mat