Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.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.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_CheckValve",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.0106/0.0106, allocations: 171.5 kB / 15.12 MB, free: 5.559 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.675/1.675, 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.00114/0.00114, allocations: 86.86 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.9376/0.9376, allocations: 90.6 MB / 408.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003395/0.0003396, allocations: 8 kB / 485.3 MB, free: 1.996 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5152/0.5156, allocations: 66.28 MB / 0.5387 GB, free: 45.45 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1681/0.6838, allocations: 121.9 MB / 0.6577 GB, free: 1.801 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.004066/0.6879, allocations: 2.983 MB / 0.6606 GB, free: 14.82 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003151/0.6882, allocations: 4 kB / 0.6606 GB, free: 14.81 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006687/0.6889, allocations: 151.3 kB / 0.6607 GB, free: 14.66 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009639/0.6899, allocations: 335.5 kB / 0.6611 GB, free: 14.34 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000769/0.6907, allocations: 204.7 kB / 0.6613 GB, free: 14.14 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.000391/0.6911, allocations: 283.4 kB / 0.6615 GB, free: 13.86 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000189/0.6913, allocations: 63.42 kB / 0.6616 GB, free: 13.8 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003548/0.6916, allocations: 163.4 kB / 0.6617 GB, free: 13.64 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.6919, allocations: 160 kB / 0.6619 GB, free: 13.48 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.985e-05/0.6919, allocations: 16 kB / 0.6619 GB, free: 13.47 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009205/0.6929, allocations: 459.4 kB / 0.6623 GB, free: 13.02 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 5.877e-05/0.6929, allocations: 43.77 kB / 0.6624 GB, free: 12.98 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 9.217e-05/0.693, allocations: 73.58 kB / 0.6625 GB, free: 12.9 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004662/0.6935, allocations: 316.9 kB / 0.6628 GB, free: 12.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.6935, allocations: 0 / 0.6628 GB, free: 12.6 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.6935, allocations: 4.656 kB / 0.6628 GB, free: 12.59 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.6936, allocations: 0 / 0.6628 GB, free: 12.59 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001239/0.6948, allocations: 0.6144 MB / 0.6634 GB, free: 11.93 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.6949, allocations: 12.03 kB / 0.6634 GB, free: 11.92 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.13e-05/0.6949, allocations: 50.55 kB / 0.6634 GB, free: 11.86 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.357e-05/0.695, allocations: 31.62 kB / 0.6635 GB, free: 11.83 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003566/0.6954, allocations: 265.6 kB / 0.6637 GB, free: 11.53 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.6954, allocations: 21.36 kB / 0.6637 GB, free: 11.51 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.277e-05/0.6955, allocations: 20 kB / 0.6638 GB, free: 11.49 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004875/0.696, allocations: 235.2 kB / 0.664 GB, free: 11.25 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.696, allocations: 0 / 0.664 GB, free: 11.25 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.696, allocations: 8 kB / 0.664 GB, free: 11.25 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.696, allocations: 4 kB / 0.664 GB, free: 11.24 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005011/0.6966, allocations: 237.5 kB / 0.6642 GB, free: 11.01 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.6982, allocations: 1.057 MB / 0.6652 GB, free: 9.828 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005672/0.6988, allocations: 276.7 kB / 0.6655 GB, free: 9.551 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009885/0.6998, allocations: 0.845 MB / 0.6663 GB, free: 8.605 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004115/0.7002, allocations: 192.5 kB / 0.6665 GB, free: 8.406 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.637e-06/0.7002, allocations: 0 / 0.6665 GB, free: 8.406 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.001226/0.7014, allocations: 0.5807 MB / 0.6671 GB, free: 7.781 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.7015, allocations: 85.11 kB / 0.6672 GB, free: 7.68 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002347/0.7017, allocations: 225 kB / 0.6674 GB, free: 7.453 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.379e-05/0.7018, allocations: 33.7 kB / 0.6674 GB, free: 7.414 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.7019, allocations: 160.2 kB / 0.6676 GB, free: 7.254 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.416e-05/0.702, allocations: 82.83 kB / 0.6676 GB, free: 7.172 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.696e-05/0.702, allocations: 8 kB / 0.6677 GB, free: 7.164 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.7022, allocations: 334.8 kB / 0.668 GB, free: 6.828 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002245/0.7024, allocations: 99.95 kB / 0.6681 GB, free: 6.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/0.7027, allocations: 127.9 kB / 0.6682 GB, free: 6.594 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/0.703, allocations: 129.4 kB / 0.6683 GB, free: 6.465 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.703, allocations: 0 / 0.6683 GB, free: 6.465 MB / 490.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007203/0.7037, allocations: 368.3 kB / 0.6687 GB, free: 6.09 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.516e-05/0.7038, allocations: 31.11 kB / 0.6687 GB, free: 6.055 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.7038, allocations: 4 kB / 0.6687 GB, free: 6.051 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002306/0.704, allocations: 40.78 kB / 0.6687 GB, free: 6.008 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.7042, allocations: 48.66 kB / 0.6688 GB, free: 5.961 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.7056, allocations: 1.431 MB / 0.6702 GB, free: 4.395 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001939/0.7058, allocations: 27.86 kB / 0.6702 GB, free: 4.367 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.994e-05/0.7059, allocations: 16.98 kB / 0.6702 GB, free: 4.352 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (26): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001657/0.706, allocations: 149.5 kB / 0.6704 GB, free: 4.195 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.876e-05/0.7061, allocations: 27.62 kB / 0.6704 GB, free: 4.168 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005686/0.7067, allocations: 282.4 kB / 0.6707 GB, free: 3.891 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.7067, allocations: 8 kB / 0.6707 GB, free: 3.883 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.7067, allocations: 0 / 0.6707 GB, free: 3.883 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.7067, allocations: 7.984 kB / 0.6707 GB, free: 3.875 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.7077, allocations: 0.7027 MB / 0.6714 GB, free: 3.109 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.7077, allocations: 3.938 kB / 0.6714 GB, free: 3.105 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.7079, allocations: 48 kB / 0.6714 GB, free: 3.059 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001323/0.708, allocations: 44.77 kB / 0.6715 GB, free: 3.012 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.7081, allocations: 6.25 kB / 0.6715 GB, free: 3.008 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.7092, allocations: 1.427 MB / 0.6729 GB, free: 1.449 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.7092, allocations: 4.031 kB / 0.6729 GB, free: 1.445 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009519/0.7102, allocations: 0.5626 MB / 0.6734 GB, free: 0.8477 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.514e-05/0.7103, allocations: 108.7 kB / 0.6735 GB, free: 0.7227 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.792e-05/0.7103, allocations: 12.06 kB / 0.6735 GB, free: 0.7109 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.7105, allocations: 23.84 kB / 0.6735 GB, free: 0.6875 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.632e-05/0.7106, allocations: 31.89 kB / 0.6736 GB, free: 0.6562 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.7107, allocations: 9.5 kB / 0.6736 GB, free: 0.6484 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000155/0.7108, allocations: 164.5 kB / 0.6737 GB, free: 0.4922 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7108, allocations: 0 / 0.6737 GB, free: 0.4922 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0005009/0.7113, allocations: 127.9 kB / 0.6739 GB, free: 376 kB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.inlet.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 (23): * Single equations (assignments): 19 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001647/0.713, allocations: 1.349 MB / 0.6752 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0008776/0.7139, allocations: 462.5 kB / 0.6756 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.7139, allocations: 0 / 0.6756 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004587/0.7144, allocations: 294.2 kB / 0.6759 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005004/0.7149, allocations: 79.97 kB / 0.676 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003136/0.718, allocations: 2.176 MB / 0.6781 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.7184, allocations: 0.7675 MB / 0.6789 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0001887/0.7186, allocations: 40.5 kB / 0.6789 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.7187, allocations: 95.39 kB / 0.679 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of SimCode: time 1.072e-06/0.7187, allocations: 0 / 0.679 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03071/0.7494, allocations: 8.462 MB / 0.6872 GB, free: 2.762 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003137/0.7498, allocations: 213.5 kB / 0.6874 GB, free: 2.523 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.266/3.016, allocations: 0 / 0.6874 GB, free: 2.523 MB / 0.4948 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat does not exist to compare? outputFormat=mat