Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.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.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_SourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_SourceSink",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.008043/0.008043, allocations: 170.3 kB / 15.13 MB, free: 6.023 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.392/1.392, 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.0008057/0.0008057, 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.649/0.649, allocations: 90.6 MB / 408.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003061/0.0003061, allocations: 12 kB / 485.3 MB, free: 1.938 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3404/0.3407, allocations: 66.27 MB / 0.5387 GB, free: 45.69 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.1317/0.4724, allocations: 127.5 MB / 0.6632 GB, free: 12.16 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002843/0.4753, allocations: 3.06 MB / 0.6662 GB, free: 9.102 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.4755, allocations: 7.938 kB / 0.6662 GB, free: 9.094 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004034/0.4759, allocations: 104 kB / 0.6663 GB, free: 8.992 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003416/0.4763, allocations: 174.9 kB / 0.6664 GB, free: 8.82 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.4766, allocations: 143.4 kB / 0.6666 GB, free: 8.68 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002629/0.4769, allocations: 306.7 kB / 0.6669 GB, free: 8.379 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.477, allocations: 44.03 kB / 0.6669 GB, free: 8.34 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002851/0.4773, allocations: 139.4 kB / 0.667 GB, free: 8.203 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.4774, allocations: 107.5 kB / 0.6671 GB, free: 8.098 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.4775, allocations: 13.03 kB / 0.6671 GB, free: 8.086 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003992/0.4779, allocations: 255.5 kB / 0.6674 GB, free: 7.836 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 2.389e-05/0.4779, allocations: 19.86 kB / 0.6674 GB, free: 7.816 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 4.119e-05/0.4779, allocations: 53.64 kB / 0.6675 GB, free: 7.758 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002139/0.4782, allocations: 167.6 kB / 0.6676 GB, free: 7.594 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.4782, allocations: 4 kB / 0.6676 GB, free: 7.59 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4782, allocations: 0 / 0.6676 GB, free: 7.59 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.4782, allocations: 0 / 0.6676 GB, free: 7.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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006707/0.4789, allocations: 471.2 kB / 0.6681 GB, free: 7.086 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.4789, allocations: 8.031 kB / 0.6681 GB, free: 7.078 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.611e-05/0.479, allocations: 47.11 kB / 0.6681 GB, free: 7.023 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.292e-05/0.479, allocations: 24.61 kB / 0.6682 GB, free: 7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.4792, allocations: 222.6 kB / 0.6684 GB, free: 6.742 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.4793, allocations: 8 kB / 0.6684 GB, free: 6.734 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/0.4793, allocations: 12 kB / 0.6684 GB, free: 6.723 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.4795, allocations: 144.9 kB / 0.6685 GB, free: 6.566 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.4796, allocations: 0 / 0.6685 GB, free: 6.566 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.4796, allocations: 8 kB / 0.6685 GB, free: 6.559 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.4796, allocations: 3.984 kB / 0.6685 GB, free: 6.555 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.4797, allocations: 75.97 kB / 0.6686 GB, free: 6.48 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007741/0.4805, allocations: 0.7569 MB / 0.6693 GB, free: 5.621 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001718/0.4807, allocations: 122.1 kB / 0.6695 GB, free: 5.484 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.515e-05/0.4808, allocations: 49.83 kB / 0.6695 GB, free: 5.43 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.096e-05/0.4808, allocations: 7.984 kB / 0.6695 GB, free: 5.422 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.4809, allocations: 38.5 kB / 0.6696 GB, free: 5.375 MB / 490.7 MB Notification: Performance of pre-optimization done (n=12): time 1.413e-06/0.4809, allocations: 0 / 0.6696 GB, free: 5.375 MB / 490.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006973/0.4816, allocations: 371.4 kB / 0.6699 GB, free: 4.965 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.4816, allocations: 81.06 kB / 0.67 GB, free: 4.867 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.4818, allocations: 191.8 kB / 0.6702 GB, free: 4.664 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.4818, allocations: 29.7 kB / 0.6702 GB, free: 4.629 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.912e-05/0.4819, allocations: 124 kB / 0.6703 GB, free: 4.504 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.852e-05/0.4819, allocations: 47.38 kB / 0.6704 GB, free: 4.457 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.446e-06/0.4819, allocations: 4 kB / 0.6704 GB, free: 4.453 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.026e-05/0.482, allocations: 328.2 kB / 0.6707 GB, free: 4.125 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.795e-05/0.4821, allocations: 31.98 kB / 0.6707 GB, free: 4.094 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.45e-05/0.4822, allocations: 68.02 kB / 0.6708 GB, free: 4.016 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.164e-05/0.4822, allocations: 36 kB / 0.6708 GB, free: 3.98 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.4822, allocations: 4 kB / 0.6708 GB, free: 3.977 MB / 490.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002876/0.4825, allocations: 184.3 kB / 0.671 GB, free: 3.785 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.4826, allocations: 7.984 kB / 0.671 GB, free: 3.777 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.4826, allocations: 64 / 0.671 GB, free: 3.777 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001978/0.4828, allocations: 41.7 kB / 0.671 GB, free: 3.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.36e-05/0.4828, allocations: 11.98 kB / 0.671 GB, free: 3.719 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001558/0.4844, allocations: 2.561 MB / 0.6735 GB, free: 0.8906 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.697e-05/0.4845, allocations: 17.31 kB / 0.6736 GB, free: 0.875 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.4845, allocations: 4 kB / 0.6736 GB, free: 0.8711 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.48e-05/0.4846, allocations: 121.6 kB / 0.6737 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.957e-05/0.4847, allocations: 19.77 kB / 0.6737 GB, free: 0.7227 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000307/0.485, allocations: 174.3 kB / 0.6739 GB, free: 0.543 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.485, allocations: 7.938 kB / 0.6739 GB, free: 0.5352 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.485, allocations: 0 / 0.6739 GB, free: 0.5352 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.485, allocations: 3.984 kB / 0.6739 GB, free: 0.5312 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002761/0.4853, allocations: 238.6 kB / 0.6741 GB, free: 256 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.4853, allocations: 1.406 kB / 0.6741 GB, free: 256 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.118e-05/0.4854, allocations: 8 kB / 0.6741 GB, free: 248 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001205/0.4855, allocations: 45.59 kB / 0.6742 GB, free: 196 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.4855, allocations: 7.984 kB / 0.6742 GB, free: 188 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001586/0.4871, allocations: 2.57 MB / 0.6767 GB, free: 13.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4871, allocations: 0 / 0.6767 GB, free: 13.35 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004269/0.4876, allocations: 378.8 kB / 0.677 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.352e-05/0.4876, allocations: 92.94 kB / 0.6771 GB, free: 12.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.4877, allocations: 4 kB / 0.6771 GB, free: 12.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.4878, allocations: 12.11 kB / 0.6771 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.932e-05/0.4878, allocations: 7.984 kB / 0.6771 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.4879, allocations: 8 kB / 0.6772 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00011/0.488, allocations: 137.5 kB / 0.6773 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/0.488, allocations: 3.938 kB / 0.6773 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003769/0.4884, allocations: 49.88 kB / 0.6773 GB, free: 12.64 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (sink.inlet.m_flow,sink1.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 (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008925/0.4893, allocations: 0.9615 MB / 0.6783 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.000555/0.4898, allocations: 393 kB / 0.6787 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4898, allocations: 0 / 0.6787 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003111/0.4902, allocations: 341.7 kB / 0.679 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005832/0.4908, allocations: 39.97 kB / 0.679 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00168/0.4925, allocations: 1.208 MB / 0.6802 GB, free: 9.555 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.4927, allocations: 0.732 MB / 0.6809 GB, free: 8.797 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 5.573e-05/0.4928, allocations: 19.02 kB / 0.6809 GB, free: 8.781 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.596e-05/0.4929, allocations: 51.42 kB / 0.681 GB, free: 8.73 MB / 0.4948 GB Notification: Performance of SimCode: time 4.01e-07/0.4929, allocations: 0 / 0.681 GB, free: 8.73 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01819/0.5111, allocations: 5.447 MB / 0.6863 GB, free: 3.543 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002104/0.5113, allocations: 221.1 kB / 0.6865 GB, free: 3.305 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.755/2.266, allocations: 0 / 0.6865 GB, free: 3.305 MB / 0.4948 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_SourceSink_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Boundaries_Tests_SourceSink.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat does not exist to compare? outputFormat=mat