Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.PCV.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.FlowControl.Tests.PCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pCV.inlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|volumeFlex.M|volumeFlex.U_med|volumeFlex1.M|volumeFlex1.U_med|volumeFlex2.M|volumeFlex2.U_med|volumeFlex2.m_flow_out|volumeFlex3.M|volumeFlex3.U_med",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.PCV") translateModel(ThermofluidStream.FlowControl.Tests.PCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pCV.inlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|volumeFlex.M|volumeFlex.U_med|volumeFlex1.M|volumeFlex1.U_med|volumeFlex2.M|volumeFlex2.U_med|volumeFlex2.m_flow_out|volumeFlex3.M|volumeFlex3.U_med",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.PCV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008873/0.0008873, allocations: 169.3 kB / 16.1 MB, free: 5.691 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.162/1.162, allocations: 205 MB / 221.9 MB, free: 9.145 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.0006989/0.0006989, allocations: 85.02 kB / 269.9 MB, free: 8.668 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.5921/0.5921, allocations: 90.52 MB / 408.3 MB, free: 3.938 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002919/0.000292, allocations: 8.219 kB / 484.9 MB, free: 7.207 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2405, allocations: 65.8 MB / 0.5377 GB, free: 34.89 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.3699/0.6105, allocations: 185.4 MB / 0.7188 GB, free: 0.9492 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01557/0.6261, allocations: 17.66 MB / 0.736 GB, free: 0.5586 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001917/0.628, allocations: 29.59 kB / 0.7361 GB, free: 0.5586 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.00208/0.6301, allocations: 0.8446 MB / 0.7369 GB, free: 0.5273 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.004901/0.635, allocations: 2.096 MB / 0.7389 GB, free: 420 kB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.004001/0.6391, allocations: 1.602 MB / 0.7405 GB, free: 360 kB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.003968/0.643, allocations: 4.244 MB / 0.7446 GB, free: 348 kB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005383/0.6436, allocations: 357 kB / 0.745 GB, free: 232 kB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00222/0.6458, allocations: 1.23 MB / 0.7462 GB, free: 220 kB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001657/0.6475, allocations: 1.421 MB / 0.7476 GB, free: 208 kB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0002038/0.6477, allocations: 74.78 kB / 0.7476 GB, free: 208 kB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004706/0.6524, allocations: 2.636 MB / 0.7502 GB, free: 144 kB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0003051/0.6527, allocations: 333.1 kB / 0.7505 GB, free: 144 kB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.6538, allocations: 0.8784 MB / 0.7514 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002762/0.6566, allocations: 2.113 MB / 0.7534 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.6566, allocations: 0 / 0.7534 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.834e-06/0.6566, allocations: 3 kB / 0.7535 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.67e-05/0.6566, allocations: 0 / 0.7535 GB, free: 15.05 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.003329/0.66, allocations: 1.976 MB / 0.7554 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.66, allocations: 9.844 kB / 0.7554 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005541/0.6606, allocations: 208.6 kB / 0.7556 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.6616, allocations: 0.8558 MB / 0.7564 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.676e-05/0.6617, allocations: 108.5 kB / 0.7565 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.6618, allocations: 159.7 kB / 0.7567 GB, free: 13.17 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002222/0.6641, allocations: 1.639 MB / 0.7583 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.896e-05/0.6641, allocations: 2.906 kB / 0.7583 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.6642, allocations: 60.47 kB / 0.7583 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.369e-05/0.6643, allocations: 41.22 kB / 0.7584 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002125/0.6664, allocations: 1.506 MB / 0.7599 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007968/0.6744, allocations: 7.166 MB / 0.7668 GB, free: 6.391 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002653/0.6771, allocations: 1.676 MB / 0.7685 GB, free: 5.469 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/0.6781, allocations: 0.7983 MB / 0.7693 GB, free: 5.055 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005454/0.6836, allocations: 6.001 MB / 0.7751 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/0.6837, allocations: 54.53 kB / 0.7752 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=172): time 3.356e-06/0.6837, allocations: 4 kB / 0.7752 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=172): time 0.005922/0.6896, allocations: 3.235 MB / 0.7783 GB, free: 10.97 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.6897, allocations: 178.5 kB / 0.7785 GB, free: 10.76 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009023/0.6906, allocations: 0.8777 MB / 0.7794 GB, free: 9.863 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.401e-05/0.6907, allocations: 57.7 kB / 0.7794 GB, free: 9.801 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003692/0.6911, allocations: 0.6252 MB / 0.78 GB, free: 9.164 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003652/0.6915, allocations: 0.5871 MB / 0.7806 GB, free: 8.582 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.89e-05/0.6915, allocations: 32 kB / 0.7806 GB, free: 8.551 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.6917, allocations: 377.8 kB / 0.781 GB, free: 8.176 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000889/0.6926, allocations: 0.5193 MB / 0.7815 GB, free: 7.656 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.6937, allocations: 0.8708 MB / 0.7824 GB, free: 6.66 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002085/0.6957, allocations: 1.518 MB / 0.7838 GB, free: 5.055 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.6958, allocations: 4 kB / 0.7838 GB, free: 5.051 MB / 0.5261 GB Notification: Performance of matching and sorting (n=222) (initialization): time 0.003071/0.6988, allocations: 1.898 MB / 0.7857 GB, free: 3.188 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.6989, allocations: 8 kB / 0.7857 GB, free: 3.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.6989, allocations: 16.83 kB / 0.7857 GB, free: 3.164 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005875/0.6995, allocations: 214.7 kB / 0.7859 GB, free: 2.941 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.7008, allocations: 386.8 kB / 0.7863 GB, free: 2.586 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004728/0.7055, allocations: 7.136 MB / 0.7933 GB, free: 10.83 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.7067, allocations: 186.4 kB / 0.7934 GB, free: 10.65 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.7068, allocations: 75.98 kB / 0.7935 GB, free: 10.57 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (204): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005485/0.7074, allocations: 316.7 kB / 0.7938 GB, free: 10.28 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003253/0.7077, allocations: 158.1 kB / 0.794 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003682/0.7114, allocations: 2.076 MB / 0.796 GB, free: 8.039 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.869e-05/0.7114, allocations: 31.94 kB / 0.796 GB, free: 8.008 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.7114, allocations: 4 kB / 0.796 GB, free: 8.004 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.021e-05/0.7115, allocations: 15.95 kB / 0.796 GB, free: 7.988 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005802/0.7173, allocations: 3.982 MB / 0.7999 GB, free: 3.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.7173, allocations: 8.156 kB / 0.7999 GB, free: 3.973 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000964/0.7183, allocations: 272.6 kB / 0.8002 GB, free: 3.719 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001518/0.7198, allocations: 464.2 kB / 0.8006 GB, free: 3.242 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.7199, allocations: 56.02 kB / 0.8007 GB, free: 3.188 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005747/0.7257, allocations: 9.433 MB / 0.8099 GB, free: 9.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.758e-06/0.7257, allocations: 6.625 kB / 0.8099 GB, free: 9.016 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004459/0.7301, allocations: 3.024 MB / 0.8129 GB, free: 5.953 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003473/0.7305, allocations: 238.8 kB / 0.8131 GB, free: 5.699 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001768/0.7307, allocations: 36 kB / 0.8131 GB, free: 5.664 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009928/0.7317, allocations: 99.8 kB / 0.8132 GB, free: 5.566 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002432/0.7319, allocations: 139.1 kB / 0.8134 GB, free: 5.434 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001348/0.7321, allocations: 75.95 kB / 0.8134 GB, free: 5.359 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0006321/0.7327, allocations: 0.582 MB / 0.814 GB, free: 4.77 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7327, allocations: 0 / 0.814 GB, free: 4.77 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001885/0.7346, allocations: 0.7724 MB / 0.8148 GB, free: 3.996 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 13 (volumeFlex2.M,volumeFlex2.U_med,volumeFlex.M,volumeFlex.U_med,flowResistance.inlet.m_flow,volumeFlex1.M,volumeFlex1.U_med,volumeFlex3.M,volumeFlex3.U_med,flowResistance1.inlet.m_flow,pCV2.inlet.m_flow,pCV3.inlet.m_flow,pCV4.inlet.m_flow) * 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 (151): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,3), (2,3), (2,3), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001115/0.7357, allocations: 0.7849 MB / 0.8155 GB, free: 3.254 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003083/0.7388, allocations: 2.103 MB / 0.8176 GB, free: 1.133 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.7388, allocations: 0 / 0.8176 GB, free: 1.133 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002313/0.7412, allocations: 1.513 MB / 0.819 GB, free: 15.59 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002609/0.7438, allocations: 497.4 kB / 0.8195 GB, free: 15.11 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005705/0.7495, allocations: 4.129 MB / 0.8236 GB, free: 10.95 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007663/0.7503, allocations: 1.234 MB / 0.8248 GB, free: 9.684 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004653/0.7508, allocations: 163.4 kB / 0.8249 GB, free: 9.523 MB / 0.573 GB Notification: Performance of SimCode: time 5.61e-07/0.7508, allocations: 0 / 0.8249 GB, free: 9.523 MB / 0.573 GB Notification: Performance of Templates: time 0.06411/0.8149, allocations: 67.12 MB / 0.8905 GB, free: 6.363 MB / 0.6355 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.PCV.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.PCV.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.PCV.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.PCV.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.PCV.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.PCV -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.PCV_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.PCV_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches