Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.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.Fluid.Examples.SimpleExamples.TestRefP1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8878/0.8878, allocations: 150.8 MB / 166.1 MB, free: 15.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.916e-05/1.905e-05, allocations: 4 kB / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2049, allocations: 31.98 MB / 236.8 MB, free: 5.566 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.TestRefP1): time 1.812/2.017, allocations: 294.9 MB / 0.5192 GB, free: 12.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.634/2.651, allocations: 192.7 MB / 0.7074 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005659/2.651, allocations: 9.75 kB / 0.7074 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001765/2.652, allocations: 60.12 kB / 0.7075 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006242/2.652, allocations: 197.1 kB / 0.7077 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03369/2.686, allocations: 10.44 MB / 0.7179 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001202/2.687, allocations: 0.7942 MB / 0.7187 GB, free: 3.773 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005683/2.688, allocations: 418.5 kB / 0.7191 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003321/2.688, allocations: 267.9 kB / 0.7193 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000307/2.688, allocations: 316.6 kB / 0.7196 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.282e-05/2.688, allocations: 35.44 kB / 0.7197 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04052/2.729, allocations: 19.16 MB / 0.7384 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000384/2.729, allocations: 126.9 kB / 0.7385 GB, free: 3.262 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007559/2.73, allocations: 375.8 kB / 0.7388 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03262/2.763, allocations: 10.5 MB / 0.7491 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/2.763, allocations: 0 / 0.7491 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of FrontEnd: time 5.691e-06/2.763, allocations: 2.125 kB / 0.7491 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.709e-05/2.763, allocations: 0 / 0.7491 GB, free: 15.29 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.007626/2.771, allocations: 2.07 MB / 0.7511 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/2.771, allocations: 11.5 kB / 0.7511 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002754/2.771, allocations: 89.88 kB / 0.7512 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000774/2.772, allocations: 434 kB / 0.7516 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.2e-05/2.772, allocations: 61.03 kB / 0.7517 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/2.772, allocations: 74.72 kB / 0.7518 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/2.773, allocations: 0.7363 MB / 0.7525 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/2.773, allocations: 3.984 kB / 0.7525 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.554e-05/2.773, allocations: 36.38 kB / 0.7525 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/2.773, allocations: 19.59 kB / 0.7525 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/2.775, allocations: 0.5569 MB / 0.7531 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07778/2.852, allocations: 33.42 MB / 0.7857 GB, free: 1.871 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006902/2.853, allocations: 308.5 kB / 0.786 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002089/2.853, allocations: 110.2 kB / 0.7861 GB, free: 1.586 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7314/3.585, allocations: 252.4 MB / 1.033 GB, free: 425.7 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/3.585, allocations: 44.45 kB / 1.033 GB, free: 425.7 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=27): time 3.186e-06/3.585, allocations: 0 / 1.033 GB, free: 425.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=27): time 0.005142/3.59, allocations: 1.254 MB / 1.034 GB, free: 424.5 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.644e-05/3.59, allocations: 59.41 kB / 1.034 GB, free: 424.4 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005234/3.591, allocations: 488.7 kB / 1.034 GB, free: 424.1 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/3.591, allocations: 25.7 kB / 1.034 GB, free: 424 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001953/3.591, allocations: 364.3 kB / 1.035 GB, free: 423.8 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.131e-05/3.591, allocations: 91.31 kB / 1.035 GB, free: 423.7 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.185e-05/3.591, allocations: 52.31 kB / 1.035 GB, free: 423.7 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.591e-05/3.591, allocations: 352.9 kB / 1.035 GB, free: 423.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/3.591, allocations: 108.2 kB / 1.035 GB, free: 423.3 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002383/3.591, allocations: 213.3 kB / 1.036 GB, free: 423.1 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004514/3.592, allocations: 340.4 kB / 1.036 GB, free: 422.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/3.592, allocations: 4 kB / 1.036 GB, free: 422.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.002093/3.594, allocations: 0.7136 MB / 1.037 GB, free: 422.2 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/3.594, allocations: 4.125 kB / 1.037 GB, free: 422.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/3.594, allocations: 8 kB / 1.037 GB, free: 422.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009237/3.595, allocations: 214.6 kB / 1.037 GB, free: 422 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/3.595, allocations: 56.17 kB / 1.037 GB, free: 421.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007926/3.596, allocations: 1.257 MB / 1.038 GB, free: 420.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003094/3.596, allocations: 59 kB / 1.038 GB, free: 420.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.95e-05/3.596, allocations: 18.86 kB / 1.038 GB, free: 420.7 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 7 (source.C.ftype,pump.fluid,lumpedStraightPipe.fluid,sink.fluid,source.fluid1,refQ.C1.diff_on_2,lumpedStraightPipe.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002496/3.597, allocations: 189 kB / 1.038 GB, free: 420.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.527e-05/3.597, allocations: 52.8 kB / 1.038 GB, free: 420.4 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00201/3.599, allocations: 0.6272 MB / 1.039 GB, free: 419.9 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/3.599, allocations: 4 kB / 1.039 GB, free: 419.9 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/3.599, allocations: 0 / 1.039 GB, free: 419.9 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/3.599, allocations: 3.984 kB / 1.039 GB, free: 419.9 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005669/3.599, allocations: 0.5321 MB / 1.04 GB, free: 419.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/3.599, allocations: 0 / 1.04 GB, free: 419.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.472e-05/3.599, allocations: 35.52 kB / 1.04 GB, free: 419.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007543/3.6, allocations: 193.8 kB / 1.04 GB, free: 419.3 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/3.6, allocations: 12.3 kB / 1.04 GB, free: 419.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006895/3.601, allocations: 1.247 MB / 1.041 GB, free: 418.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/3.601, allocations: 1.969 kB / 1.041 GB, free: 418.1 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001793/3.603, allocations: 0.6781 MB / 1.042 GB, free: 417.4 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/3.603, allocations: 159.1 kB / 1.042 GB, free: 417.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.966e-05/3.603, allocations: 3.562 kB / 1.042 GB, free: 417.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/3.603, allocations: 11.73 kB / 1.042 GB, free: 417.3 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.951e-05/3.603, allocations: 23.97 kB / 1.042 GB, free: 417.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/3.603, allocations: 15.86 kB / 1.042 GB, free: 417.2 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002989/3.604, allocations: 322 kB / 1.042 GB, free: 417 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/3.604, allocations: 0 / 1.042 GB, free: 417 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.006252/3.61, allocations: 1.684 MB / 1.044 GB, free: 415.6 MB / 0.8106 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008826/3.619, allocations: 2.587 MB / 1.046 GB, free: 413.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0009124/3.62, allocations: 293.6 kB / 1.047 GB, free: 413.3 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/3.62, allocations: 3.938 kB / 1.047 GB, free: 413.3 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003009/3.62, allocations: 149.5 kB / 1.047 GB, free: 413.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006877/3.621, allocations: 90.95 kB / 1.047 GB, free: 413.2 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/3.622, allocations: 1.264 MB / 1.048 GB, free: 411.9 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/3.622, allocations: 0.8814 MB / 1.049 GB, free: 411 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002275/3.623, allocations: 67.05 kB / 1.049 GB, free: 411 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.441e-05/3.623, allocations: 39.42 kB / 1.049 GB, free: 410.9 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/3.623, allocations: 0 / 1.049 GB, free: 410.9 MB / 0.8106 GB Notification: Performance of Templates: time 0.05592/3.679, allocations: 50.2 MB / 1.098 GB, free: 361.4 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe 2>&1) Environment - environmentSimulation: