Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicMultiFluidHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicMultiFluidHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8506/0.8506, allocations: 150.8 MB / 166.1 MB, free: 15.16 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.708e-05/1.69e-05, allocations: 4 kB / 204.9 MB, free: 9.586 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1598, allocations: 31.99 MB / 236.9 MB, free: 5.453 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger): time 1.61/1.77, allocations: 298 MB / 0.5224 GB, free: 9.539 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5537/2.324, allocations: 195.4 MB / 0.7131 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006646/2.325, allocations: 26.31 kB / 0.7132 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004521/2.325, allocations: 203.2 kB / 0.7134 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00132/2.326, allocations: 0.7953 MB / 0.7141 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03276/2.359, allocations: 11.32 MB / 0.7252 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005747/2.365, allocations: 6.24 MB / 0.7313 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002069/2.367, allocations: 1.602 MB / 0.7328 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001589/2.369, allocations: 1.371 MB / 0.7342 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002414/2.371, allocations: 2.029 MB / 0.7362 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000401/2.371, allocations: 168.5 kB / 0.7363 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03943/2.411, allocations: 23.19 MB / 0.759 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001503/2.412, allocations: 1.119 MB / 0.7601 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002379/2.415, allocations: 1.47 MB / 0.7615 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03546/2.45, allocations: 15.72 MB / 0.7768 GB, free: 7.262 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/2.45, allocations: 1.969 kB / 0.7768 GB, free: 7.262 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.307e-06/2.45, allocations: 0 / 0.7768 GB, free: 7.262 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.986e-05/2.451, allocations: 0 / 0.7768 GB, free: 7.262 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 662 * Number of variables: 662 Notification: Performance of Generate backend data structure: time 0.01421/2.465, allocations: 4.215 MB / 0.781 GB, free: 3.211 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/2.465, allocations: 8.031 kB / 0.781 GB, free: 3.203 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000822/2.466, allocations: 377 kB / 0.7813 GB, free: 2.992 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005759/2.466, allocations: 292.7 kB / 0.7816 GB, free: 2.703 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002343/2.469, allocations: 1.551 MB / 0.7831 GB, free: 1.621 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004107/2.469, allocations: 442.8 kB / 0.7835 GB, free: 1.227 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004253/2.469, allocations: 248.9 kB / 0.7838 GB, free: 1.062 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007048/2.476, allocations: 4.421 MB / 0.7881 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.418e-05/2.477, allocations: 6.906 kB / 0.7881 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003041/2.477, allocations: 104 kB / 0.7882 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.246e-05/2.477, allocations: 68 kB / 0.7883 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01217/2.489, allocations: 7.893 MB / 0.796 GB, free: 5.828 MB / 0.6075 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2047/2.694, allocations: 112.4 MB / 0.9058 GB, free: 8.855 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0148/2.709, allocations: 5.306 MB / 0.9109 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005537/2.714, allocations: 2.357 MB / 0.9132 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.385/4.099, allocations: 364.2 MB / 1.269 GB, free: 254.3 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.712e-05/4.1, allocations: 70.17 kB / 1.269 GB, free: 254.3 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=324): time 5.3e-06/4.1, allocations: 1.094 kB / 1.269 GB, free: 254.3 MB / 0.8419 GB Notification: Performance of matching and sorting (n=324): time 0.01678/4.116, allocations: 8.185 MB / 1.277 GB, free: 254.1 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/4.116, allocations: 83.23 kB / 1.277 GB, free: 254 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/4.118, allocations: 0.9915 MB / 1.278 GB, free: 253.9 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0002485/4.118, allocations: 82.7 kB / 1.278 GB, free: 253.9 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004061/4.118, allocations: 0.731 MB / 1.279 GB, free: 253.5 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008412/4.119, allocations: 1.109 MB / 1.28 GB, free: 252.8 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003813/4.12, allocations: 249.6 kB / 1.28 GB, free: 252.8 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 4.748e-05/4.12, allocations: 306.6 kB / 1.28 GB, free: 252.5 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003134/4.123, allocations: 1.922 MB / 1.282 GB, free: 252.5 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003229/4.126, allocations: 2.401 MB / 1.285 GB, free: 252 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006775/4.133, allocations: 4.664 MB / 1.289 GB, free: 251.5 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/4.133, allocations: 3.5 kB / 1.289 GB, free: 251.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01216/4.145, allocations: 6.876 MB / 1.296 GB, free: 251.3 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/4.145, allocations: 11.98 kB / 1.296 GB, free: 251.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.788e-05/4.145, allocations: 14.38 kB / 1.296 GB, free: 251.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04628/4.191, allocations: 10.01 MB / 1.306 GB, free: 249 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007543/4.192, allocations: 205.2 kB / 1.306 GB, free: 248.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01472/4.207, allocations: 7.933 MB / 1.314 GB, free: 244.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002402/4.209, allocations: 319.7 kB / 1.314 GB, free: 244.4 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004539/4.21, allocations: 150.5 kB / 1.314 GB, free: 244.3 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 12 (sourceP1.C.ftype,sourceP.C.ftype,sinkP.fluid,dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.fluid,dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_1.fluid,sinkP1.fluid,sourceP1.fluid1,sourceP.fluid1,dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_1.C1.diff_on_2,dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_1.C2.diff_on_1,dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.C1.diff_on_2,dynamicMultiFluidHeatExchanger.DynamicOnePhaseFlowPipe_2.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(22,251)} Notification: Performance of prepare postOptimizeDAE: time 0.001419/4.211, allocations: 0.6682 MB / 1.315 GB, free: 243.9 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004749/4.212, allocations: 213 kB / 1.315 GB, free: 243.7 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01574/4.228, allocations: 7.829 MB / 1.323 GB, free: 237.7 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.047e-05/4.228, allocations: 28 kB / 1.323 GB, free: 237.6 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/4.228, allocations: 0 / 1.323 GB, free: 237.6 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.548e-05/4.228, allocations: 19.94 kB / 1.323 GB, free: 237.6 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01943/4.247, allocations: 12.11 MB / 1.335 GB, free: 225.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/4.247, allocations: 0 / 1.335 GB, free: 225.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00035/4.248, allocations: 109.8 kB / 1.335 GB, free: 225.4 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04386/4.291, allocations: 8.744 MB / 1.343 GB, free: 216.6 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001072/4.292, allocations: 96.92 kB / 1.343 GB, free: 216.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01464/4.307, allocations: 7.772 MB / 1.351 GB, free: 208.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/4.307, allocations: 4 kB / 1.351 GB, free: 208.7 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01312/4.32, allocations: 6.511 MB / 1.357 GB, free: 202.1 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001499/4.322, allocations: 0.8101 MB / 1.358 GB, free: 201.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004832/4.322, allocations: 55.98 kB / 1.358 GB, free: 201.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001891/4.324, allocations: 123.8 kB / 1.358 GB, free: 201.1 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004537/4.325, allocations: 194.2 kB / 1.358 GB, free: 200.9 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002766/4.325, allocations: 119.9 kB / 1.358 GB, free: 200.8 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0009045/4.326, allocations: 0.6764 MB / 1.359 GB, free: 200.1 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/4.326, allocations: 0 / 1.359 GB, free: 200.1 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.007705/4.334, allocations: 2.634 MB / 1.362 GB, free: 197.7 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(22,245)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02559/4.359, allocations: 10.01 MB / 1.371 GB, free: 188.2 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01248/4.372, allocations: 4.92 MB / 1.376 GB, free: 183.3 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/4.372, allocations: 0 / 1.376 GB, free: 183.3 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.006862/4.379, allocations: 2.64 MB / 1.379 GB, free: 180.7 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003685/4.382, allocations: 439.6 kB / 1.379 GB, free: 180.2 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06238/4.445, allocations: 30.5 MB / 1.409 GB, free: 149 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001571/4.446, allocations: 1.705 MB / 1.411 GB, free: 147.2 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001395/4.448, allocations: 441.4 kB / 1.411 GB, free: 146.8 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008569/4.449, allocations: 0.7492 MB / 1.412 GB, free: 146.1 MB / 0.8419 GB Notification: Performance of SimCode: time 1.453e-06/4.449, allocations: 0 / 1.412 GB, free: 146.1 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3649/4.814, allocations: 141.3 MB / 1.55 GB, free: 469.6 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000255/4.814, allocations: 306.8 kB / 1.55 GB, free: 469.2 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.543/11.36, allocations: 2.188 kB / 1.55 GB, free: 469.2 MB / 0.8419 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicMultiFluidHeatExchanger_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicMultiFluidHeatExchanger.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicMultiFluidHeatExchanger.pipe 2>&1)