Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.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: translateModel(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7423/0.7423, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.315e-05/1.308e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.129, allocations: 31.98 MB / 236.8 MB, free: 5.41 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.TestPipePressureLoss): time 1.404/1.533, allocations: 293.6 MB / 0.518 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03876/1.572, allocations: 37 MB / 0.5541 GB, free: 8.574 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/1.572, allocations: 4 kB / 0.5541 GB, free: 8.57 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002759/1.572, allocations: 71.61 kB / 0.5542 GB, free: 8.5 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001899/1.573, allocations: 87.36 kB / 0.5542 GB, free: 8.414 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01752/1.59, allocations: 7.308 MB / 0.5614 GB, free: 1.102 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003876/1.59, allocations: 326.4 kB / 0.5617 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/1.591, allocations: 102.1 kB / 0.5618 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/1.591, allocations: 111.4 kB / 0.5619 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/1.591, allocations: 95.45 kB / 0.562 GB, free: 492 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/1.591, allocations: 8 kB / 0.562 GB, free: 484 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02737/1.618, allocations: 17.8 MB / 0.5794 GB, free: 14.64 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.922e-05/1.618, allocations: 43.7 kB / 0.5794 GB, free: 14.6 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001529/1.619, allocations: 149 kB / 0.5796 GB, free: 14.45 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0146/1.633, allocations: 8.331 MB / 0.5877 GB, free: 6.098 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/1.633, allocations: 0 / 0.5877 GB, free: 6.098 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.453e-06/1.633, allocations: 0 / 0.5877 GB, free: 6.098 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/1.633, allocations: 0 / 0.5877 GB, free: 6.098 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003338/1.637, allocations: 1.392 MB / 0.5891 GB, free: 4.656 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/1.637, allocations: 8.031 kB / 0.5891 GB, free: 4.648 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.399e-05/1.637, allocations: 39.5 kB / 0.5891 GB, free: 4.609 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002022/1.637, allocations: 227.4 kB / 0.5893 GB, free: 4.348 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/1.637, allocations: 13.05 kB / 0.5893 GB, free: 4.332 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/1.637, allocations: 27.92 kB / 0.5894 GB, free: 4.305 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000411/1.637, allocations: 299.4 kB / 0.5896 GB, free: 3.988 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/1.637, allocations: 7.938 kB / 0.5897 GB, free: 3.98 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/1.637, allocations: 4 kB / 0.5897 GB, free: 3.977 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/1.638, allocations: 17.91 kB / 0.5897 GB, free: 3.961 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000238/1.638, allocations: 165.1 kB / 0.5898 GB, free: 3.801 MB / 478.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.0347/1.672, allocations: 18.14 MB / 0.6075 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002741/1.673, allocations: 142.5 kB / 0.6077 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/1.673, allocations: 90.47 kB / 0.6078 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1432/1.816, allocations: 77.94 MB / 0.6839 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/1.816, allocations: 30.56 kB / 0.6839 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 1.723e-06/1.816, allocations: 0 / 0.6839 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0009093/1.817, allocations: 451.3 kB / 0.6843 GB, free: 8.332 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.777e-05/1.817, allocations: 55.41 kB / 0.6844 GB, free: 8.266 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/1.817, allocations: 215.1 kB / 0.6846 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/1.817, allocations: 25.7 kB / 0.6846 GB, free: 8.016 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.98e-05/1.817, allocations: 148.5 kB / 0.6848 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.234e-05/1.817, allocations: 118.3 kB / 0.6849 GB, free: 7.75 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.134e-05/1.818, allocations: 33.7 kB / 0.6849 GB, free: 7.711 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.159e-05/1.818, allocations: 334.8 kB / 0.6852 GB, free: 7.375 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.461e-05/1.818, allocations: 67.98 kB / 0.6853 GB, free: 7.309 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/1.818, allocations: 112.2 kB / 0.6854 GB, free: 7.184 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/1.818, allocations: 212.6 kB / 0.6856 GB, free: 6.961 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/1.818, allocations: 4 kB / 0.6856 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003794/1.818, allocations: 293.6 kB / 0.6859 GB, free: 6.66 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/1.818, allocations: 9.969 kB / 0.6859 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/1.818, allocations: 4.125 kB / 0.6859 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000885/1.819, allocations: 188.7 kB / 0.6861 GB, free: 6.461 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.283e-05/1.819, allocations: 7.938 kB / 0.6861 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004381/1.82, allocations: 0.6388 MB / 0.6867 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/1.82, allocations: 24.98 kB / 0.6867 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/1.82, allocations: 8 kB / 0.6867 GB, free: 5.758 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (pipePressureLoss.C2.b,pipePressureLoss.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001133/1.82, allocations: 141.7 kB / 0.6869 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.831e-05/1.82, allocations: 23.66 kB / 0.6869 GB, free: 5.586 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006443/1.821, allocations: 0.5993 MB / 0.6875 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003171/1.821, allocations: 222.3 kB / 0.6877 GB, free: 4.688 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/1.821, allocations: 4 kB / 0.6877 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/1.821, allocations: 0 / 0.6877 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008326/1.822, allocations: 0.7437 MB / 0.6884 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/1.822, allocations: 0 / 0.6884 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.053e-05/1.822, allocations: 12 kB / 0.6884 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004833/1.823, allocations: 149.9 kB / 0.6886 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/1.823, allocations: 0 / 0.6886 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003861/1.823, allocations: 0.6587 MB / 0.6892 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/1.823, allocations: 0 / 0.6892 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003779/1.823, allocations: 345 kB / 0.6896 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.784e-05/1.823, allocations: 136.7 kB / 0.6897 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.345e-05/1.824, allocations: 8 kB / 0.6897 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.759e-05/1.824, allocations: 0 / 0.6897 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.302e-05/1.824, allocations: 9.812 kB / 0.6897 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/1.824, allocations: 8 kB / 0.6897 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000203/1.824, allocations: 237.9 kB / 0.6899 GB, free: 2.277 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/1.824, allocations: 0 / 0.6899 GB, free: 2.277 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002421/1.826, allocations: 1.187 MB / 0.6911 GB, free: 1.09 MB / 0.5762 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 (11): * Single equations (assignments): 10 * 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 {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1444/1.971, allocations: 1.755 MB / 0.6928 GB, free: 228.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005149/1.971, allocations: 230.9 kB / 0.693 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/1.971, allocations: 1.281 kB / 0.693 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001728/1.971, allocations: 89.34 kB / 0.6931 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007522/1.972, allocations: 121.2 kB / 0.6932 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006701/1.973, allocations: 0.6393 MB / 0.6939 GB, free: 227.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001536/1.973, allocations: 0.7671 MB / 0.6946 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.971e-05/1.973, allocations: 20 kB / 0.6946 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.909e-05/1.973, allocations: 19.62 kB / 0.6946 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of SimCode: time 2.2e-07/1.973, allocations: 0 / 0.6946 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.04193/2.015, allocations: 41.9 MB / 0.7356 GB, free: 208.5 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1) Environment - environmentSimulation: