Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicOnePhaseFlowPipe.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.Examples.SimpleExamples.TestDynamicOnePhaseFlowPipe,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicOnePhaseFlowPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicOnePhaseFlowPipe,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicOnePhaseFlowPipe",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.8304/0.8304, allocations: 150.8 MB / 166.1 MB, free: 15.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.698e-05/1.708e-05, allocations: 4 kB / 204.9 MB, free: 10.11 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1443, allocations: 31.99 MB / 236.8 MB, free: 5.352 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.Examples.SimpleExamples.TestDynamicOnePhaseFlowPipe): time 1.584/1.728, allocations: 295.7 MB / 0.52 GB, free: 12.22 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03219/1.76, allocations: 27.36 MB / 0.5468 GB, free: 1.035 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003802/1.761, allocations: 4 kB / 0.5468 GB, free: 1.031 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000482/1.761, allocations: 175 kB / 0.5469 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000637/1.762, allocations: 366.2 kB / 0.5473 GB, free: 0.5 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01477/1.777, allocations: 5.616 MB / 0.5528 GB, free: 10.89 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004088/1.781, allocations: 4.911 MB / 0.5576 GB, free: 5.965 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001499/1.782, allocations: 1.412 MB / 0.5589 GB, free: 4.543 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001563/1.784, allocations: 1.374 MB / 0.5603 GB, free: 3.164 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/1.786, allocations: 1.67 MB / 0.5619 GB, free: 1.488 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002609/1.786, allocations: 124 kB / 0.562 GB, free: 1.367 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02631/1.812, allocations: 16.14 MB / 0.5778 GB, free: 1.203 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001319/1.814, allocations: 0.9853 MB / 0.5788 GB, free: 220 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001986/1.816, allocations: 1.503 MB / 0.5802 GB, free: 14.7 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01724/1.833, allocations: 9.979 MB / 0.59 GB, free: 4.695 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/1.833, allocations: 0 / 0.59 GB, free: 4.695 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.543e-06/1.833, allocations: 0 / 0.59 GB, free: 4.695 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.486e-05/1.833, allocations: 0 / 0.59 GB, free: 4.695 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 817 * Number of variables: 817 Notification: Performance of Generate backend data structure: time 0.01227/1.845, allocations: 3.76 MB / 0.5937 GB, free: 0.875 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/1.845, allocations: 8.031 kB / 0.5937 GB, free: 0.8672 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005499/1.846, allocations: 407 kB / 0.594 GB, free: 468 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004321/1.846, allocations: 273.5 kB / 0.5943 GB, free: 192 kB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/1.848, allocations: 1.037 MB / 0.5953 GB, free: 15.11 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004219/1.848, allocations: 448.6 kB / 0.5958 GB, free: 14.61 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004005/1.849, allocations: 211.8 kB / 0.596 GB, free: 14.4 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006163/1.855, allocations: 3.911 MB / 0.5998 GB, free: 10.44 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.934e-05/1.855, allocations: 0 / 0.5998 GB, free: 10.44 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002349/1.855, allocations: 76 kB / 0.5998 GB, free: 10.36 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.279e-05/1.855, allocations: 107.9 kB / 0.5999 GB, free: 10.26 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006066/1.861, allocations: 3.432 MB / 0.6033 GB, free: 6.82 MB / 494.1 MB 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.05362/1.915, allocations: 29.44 MB / 0.632 GB, free: 6.668 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01403/1.929, allocations: 4.042 MB / 0.636 GB, free: 2.621 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004743/1.934, allocations: 2.62 MB / 0.6386 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08259/2.017, allocations: 37.23 MB / 0.6749 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.958e-05/2.017, allocations: 72.44 kB / 0.675 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=591): time 5.33e-06/2.017, allocations: 0 / 0.675 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of matching and sorting (n=591): time 0.02575/2.042, allocations: 10.82 MB / 0.6856 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/2.042, allocations: 77.41 kB / 0.6856 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007754/2.043, allocations: 0.5966 MB / 0.6862 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0004668/2.044, allocations: 77.64 kB / 0.6863 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003175/2.044, allocations: 483.6 kB / 0.6867 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001762/2.046, allocations: 1.959 MB / 0.6887 GB, free: 8.715 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006819/2.047, allocations: 372.8 kB / 0.689 GB, free: 8.344 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001216/2.047, allocations: 349.9 kB / 0.6893 GB, free: 7.996 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004342/2.051, allocations: 2.225 MB / 0.6915 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004525/2.056, allocations: 2.604 MB / 0.6941 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1813/2.237, allocations: 5.408 MB / 0.6993 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.218e-05/2.237, allocations: 1.125 kB / 0.6993 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=650) (initialization): time 0.01529/2.252, allocations: 7.207 MB / 0.7064 GB, free: 221.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/2.252, allocations: 5.781 kB / 0.7064 GB, free: 221.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.649e-05/2.252, allocations: 17.73 kB / 0.7064 GB, free: 221.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02908/2.281, allocations: 12.55 MB / 0.7187 GB, free: 221.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004249/2.286, allocations: 0.5564 MB / 0.7192 GB, free: 221.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01277/2.298, allocations: 6.894 MB / 0.7259 GB, free: 220.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003002/2.301, allocations: 461 kB / 0.7264 GB, free: 220.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004933/2.302, allocations: 118.3 kB / 0.7265 GB, free: 220.7 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (sinkP.C.a,sourceP.C.b,dynamicOnePhaseFlowPipe.C2.b,dynamicOnePhaseFlowPipe.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * 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 {(23,106)} Notification: Performance of prepare postOptimizeDAE: time 0.001545/2.303, allocations: 0.7582 MB / 0.7272 GB, free: 220.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004768/2.304, allocations: 205.5 kB / 0.7274 GB, free: 220.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01753/2.322, allocations: 14.32 MB / 0.7414 GB, free: 209.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01178/2.333, allocations: 7.382 MB / 0.7486 GB, free: 202.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.275e-05/2.333, allocations: 6.406 kB / 0.7486 GB, free: 202.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.629e-05/2.333, allocations: 27.84 kB / 0.7486 GB, free: 202.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02179/2.355, allocations: 14.48 MB / 0.7628 GB, free: 187.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-05/2.355, allocations: 11.94 kB / 0.7628 GB, free: 187.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01234/2.368, allocations: 2.462 MB / 0.7652 GB, free: 185 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003778/2.371, allocations: 1.031 MB / 0.7662 GB, free: 183.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004899/2.372, allocations: 143.6 kB / 0.7664 GB, free: 183.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01603/2.388, allocations: 28.09 MB / 0.7938 GB, free: 153 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/2.388, allocations: 0 / 0.7938 GB, free: 153 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01777/2.406, allocations: 11.03 MB / 0.8046 GB, free: 141.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/2.407, allocations: 0.9054 MB / 0.8054 GB, free: 141 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004953/2.408, allocations: 104 kB / 0.8055 GB, free: 140.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002698/2.41, allocations: 259.2 kB / 0.8058 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006137/2.411, allocations: 311.6 kB / 0.8061 GB, free: 140.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002911/2.411, allocations: 135.9 kB / 0.8062 GB, free: 140.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005028/2.412, allocations: 0.5107 MB / 0.8067 GB, free: 139.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/2.412, allocations: 0 / 0.8067 GB, free: 139.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004369/2.416, allocations: 1.93 MB / 0.8086 GB, free: 137.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 41 (dynamicOnePhaseFlowPipe.P[2],dynamicOnePhaseFlowPipe.P[3],dynamicOnePhaseFlowPipe.P[4],dynamicOnePhaseFlowPipe.P[5],dynamicOnePhaseFlowPipe.P[6],dynamicOnePhaseFlowPipe.P[7],dynamicOnePhaseFlowPipe.P[8],dynamicOnePhaseFlowPipe.P[9],dynamicOnePhaseFlowPipe.P[10],dynamicOnePhaseFlowPipe.P[11],dynamicOnePhaseFlowPipe.Q[1],dynamicOnePhaseFlowPipe.Q[2],dynamicOnePhaseFlowPipe.Q[3],dynamicOnePhaseFlowPipe.Q[4],dynamicOnePhaseFlowPipe.Q[5],dynamicOnePhaseFlowPipe.Q[6],dynamicOnePhaseFlowPipe.Q[7],dynamicOnePhaseFlowPipe.Q[8],dynamicOnePhaseFlowPipe.Q[9],dynamicOnePhaseFlowPipe.Q[10],dynamicOnePhaseFlowPipe.Q[11],dynamicOnePhaseFlowPipe.h[2],dynamicOnePhaseFlowPipe.h[3],dynamicOnePhaseFlowPipe.h[4],dynamicOnePhaseFlowPipe.h[5],dynamicOnePhaseFlowPipe.h[6],dynamicOnePhaseFlowPipe.h[7],dynamicOnePhaseFlowPipe.h[8],dynamicOnePhaseFlowPipe.h[9],dynamicOnePhaseFlowPipe.h[10],dynamicOnePhaseFlowPipe.h[11],heatExchangerWall.Tp[1],heatExchangerWall.Tp[2],heatExchangerWall.Tp[3],heatExchangerWall.Tp[4],heatExchangerWall.Tp[5],heatExchangerWall.Tp[6],heatExchangerWall.Tp[7],heatExchangerWall.Tp[8],heatExchangerWall.Tp[9],heatExchangerWall.Tp[10]) * 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 (444): * Single equations (assignments): 391 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 33 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 20 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 20 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02082/2.437, allocations: 12.86 MB / 0.8212 GB, free: 125 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01654/2.454, allocations: 9.248 MB / 0.8302 GB, free: 115.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/2.454, allocations: 0 / 0.8302 GB, free: 115.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.008007/2.462, allocations: 6.335 MB / 0.8364 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006864/2.469, allocations: 1.469 MB / 0.8378 GB, free: 107.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05699/2.526, allocations: 37.6 MB / 0.8745 GB, free: 69.36 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00195/2.528, allocations: 2.551 MB / 0.877 GB, free: 66.78 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003054/2.531, allocations: 0.9468 MB / 0.8779 GB, free: 65.88 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001808/2.532, allocations: 1.394 MB / 0.8793 GB, free: 64.49 MB / 0.5762 GB Notification: Performance of SimCode: time 1.032e-06/2.533, allocations: 0 / 0.8793 GB, free: 64.49 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3449/2.877, allocations: 150.8 MB / 1.027 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001352/2.878, allocations: 250.9 kB / 1.027 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.676/10.55, allocations: 0 / 1.027 GB, free: 150.5 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicOnePhaseFlowPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicOnePhaseFlowPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicOnePhaseFlowPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicOnePhaseFlowPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicOnePhaseFlowPipe_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicOnePhaseFlowPipe.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicOnePhaseFlowPipe.pipe 2>&1)