Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeA.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.TestVolumeA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeA") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9014/0.9014, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.983e-05/2.007e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1983, allocations: 31.98 MB / 236.8 MB, free: 5.426 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.TestVolumeA): time 1.919/2.117, allocations: 297.6 MB / 0.5218 GB, free: 9.469 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5897/2.707, allocations: 195.5 MB / 0.7127 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009197/2.708, allocations: 19.25 kB / 0.7128 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004326/2.708, allocations: 157 kB / 0.7129 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001118/2.709, allocations: 481.2 kB / 0.7134 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03956/2.749, allocations: 11.33 MB / 0.7244 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003028/2.752, allocations: 1.934 MB / 0.7263 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001177/2.753, allocations: 0.9087 MB / 0.7272 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008786/2.754, allocations: 0.6421 MB / 0.7278 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000675/2.755, allocations: 0.7636 MB / 0.7286 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001234/2.755, allocations: 84.88 kB / 0.7287 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.052/2.807, allocations: 22.79 MB / 0.7509 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006352/2.807, allocations: 318.1 kB / 0.7512 GB, free: 0.75 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001402/2.809, allocations: 0.8016 MB / 0.752 GB, free: 0.668 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04046/2.849, allocations: 12.86 MB / 0.7646 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 1.083e-05/2.849, allocations: 0.9062 kB / 0.7646 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of FrontEnd: time 4.228e-06/2.849, allocations: 0 / 0.7646 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.984e-05/2.849, allocations: 0 / 0.7646 GB, free: 11.69 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: 413 * Number of variables: 413 Notification: Performance of Generate backend data structure: time 0.01096/2.86, allocations: 3.018 MB / 0.7675 GB, free: 9.758 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/2.861, allocations: 15.19 kB / 0.7675 GB, free: 9.754 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004163/2.861, allocations: 206.2 kB / 0.7677 GB, free: 9.652 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/2.862, allocations: 0.7975 MB / 0.7685 GB, free: 9.172 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/2.862, allocations: 125.1 kB / 0.7686 GB, free: 9.168 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002034/2.862, allocations: 160 kB / 0.7688 GB, free: 9.164 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002824/2.865, allocations: 1.653 MB / 0.7704 GB, free: 8.691 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.337e-05/2.865, allocations: 4.031 kB / 0.7704 GB, free: 8.691 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001365/2.865, allocations: 70.3 kB / 0.7705 GB, free: 8.688 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-05/2.866, allocations: 43.38 kB / 0.7705 GB, free: 8.684 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002578/2.868, allocations: 1.458 MB / 0.7719 GB, free: 8.504 MB / 0.5919 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.02335/2.891, allocations: 15.72 MB / 0.7873 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/2.893, allocations: 0.8012 MB / 0.7881 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005571/2.894, allocations: 328.6 kB / 0.7884 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8416/3.735, allocations: 291.1 MB / 1.073 GB, free: 385.8 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/3.735, allocations: 46.52 kB / 1.073 GB, free: 385.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=77): time 3.116e-06/3.735, allocations: 0 / 1.073 GB, free: 385.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=77): time 0.01269/3.748, allocations: 3.256 MB / 1.076 GB, free: 382.9 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/3.748, allocations: 60.06 kB / 1.076 GB, free: 382.8 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/3.749, allocations: 0.9719 MB / 1.077 GB, free: 382.1 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.351e-05/3.749, allocations: 41.02 kB / 1.077 GB, free: 382.1 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003451/3.75, allocations: 0.7374 MB / 1.078 GB, free: 381.6 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/3.75, allocations: 272.3 kB / 1.078 GB, free: 381.3 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/3.75, allocations: 119.7 kB / 1.078 GB, free: 381.3 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.781e-05/3.75, allocations: 359.5 kB / 1.078 GB, free: 380.9 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005549/3.75, allocations: 327.4 kB / 1.079 GB, free: 380.7 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006722/3.751, allocations: 0.7025 MB / 1.079 GB, free: 380 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/3.752, allocations: 1.071 MB / 1.08 GB, free: 379.1 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/3.752, allocations: 4 kB / 1.08 GB, free: 379.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002159/3.755, allocations: 1.448 MB / 1.082 GB, free: 378 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/3.755, allocations: 12 kB / 1.082 GB, free: 378 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/3.755, allocations: 15.91 kB / 1.082 GB, free: 378 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009593/3.764, allocations: 1.891 MB / 1.084 GB, free: 376.2 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005527/3.765, allocations: 167.5 kB / 1.084 GB, free: 376.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002026/3.767, allocations: 1.437 MB / 1.085 GB, free: 374.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009478/3.768, allocations: 146 kB / 1.085 GB, free: 374.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.616e-05/3.768, allocations: 64.11 kB / 1.085 GB, free: 374.7 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 26 (volumeA.Cs1.ftype,sourceP2.C.ftype,sourceP1.C.ftype,volumeA.Cs2.ftype,volumeA.Cs2.diff_on_2,volumeA.fluids[1],volumeA.Ce1.diff_on_1,controlValve2.C2.diff_on_1,volumeA.Cs1.diff_on_2,sinkP.fluid,lumpedStraightPipe1.fluid,lumpedStraightPipe3.fluid,lumpedStraightPipe2.fluid,controlValve1.fluid,controlValve2.fluid,controlValve3.fluid,sourceP2.fluid1,volumeA.fluid1,sourceP1.fluid1,volumeA.Cs1.diff_on_1,lumpedStraightPipe3.C2.diff_on_1,volumeA.Ce2.diff_on_2,lumpedStraightPipe2.C1.diff_on_2,volumeA.Ce1.diff_on_2,lumpedStraightPipe1.C1.diff_on_2,volumeA.Cs2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * 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 {(12,46)} Notification: Performance of prepare postOptimizeDAE: time 0.0005503/3.769, allocations: 319.1 kB / 1.086 GB, free: 374.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/3.769, allocations: 120.2 kB / 1.086 GB, free: 374.4 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002109/3.771, allocations: 1.177 MB / 1.087 GB, free: 373.6 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/3.771, allocations: 11.94 kB / 1.087 GB, free: 373.6 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/3.771, allocations: 0 / 1.087 GB, free: 373.6 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/3.771, allocations: 3.984 kB / 1.087 GB, free: 373.6 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/3.772, allocations: 1.072 MB / 1.088 GB, free: 372.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/3.772, allocations: 0 / 1.088 GB, free: 372.8 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/3.773, allocations: 47.97 kB / 1.088 GB, free: 372.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007279/3.78, allocations: 1.586 MB / 1.09 GB, free: 371.3 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.749e-05/3.78, allocations: 27.67 kB / 1.09 GB, free: 371.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001854/3.782, allocations: 1.441 MB / 1.091 GB, free: 370.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/3.782, allocations: 4 kB / 1.091 GB, free: 370.1 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001613/3.783, allocations: 1.109 MB / 1.092 GB, free: 369.3 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004109/3.784, allocations: 289.2 kB / 1.092 GB, free: 369 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/3.784, allocations: 11.38 kB / 1.092 GB, free: 369 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000469/3.785, allocations: 27.36 kB / 1.092 GB, free: 369 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/3.785, allocations: 52.67 kB / 1.093 GB, free: 369 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.717e-05/3.785, allocations: 32.36 kB / 1.093 GB, free: 368.9 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007069/3.785, allocations: 0.6064 MB / 1.093 GB, free: 368.5 MB / 0.8106 GB Notification: Performance of sort global known variables: time 6.51e-07/3.785, allocations: 4.094 kB / 1.093 GB, free: 368.5 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.005384/3.791, allocations: 2.114 MB / 1.095 GB, free: 366.7 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 (20): * Single equations (assignments): 19 * 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 {(10,54)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009169/3.8, allocations: 2.91 MB / 1.098 GB, free: 364.4 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002134/3.802, allocations: 1.014 MB / 1.099 GB, free: 363.6 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/3.802, allocations: 4.062 kB / 1.099 GB, free: 363.6 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001063/3.803, allocations: 491.3 kB / 1.1 GB, free: 363.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/3.804, allocations: 239.3 kB / 1.1 GB, free: 363.1 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/3.808, allocations: 2.824 MB / 1.103 GB, free: 360.4 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005332/3.808, allocations: 1.167 MB / 1.104 GB, free: 359.2 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005587/3.809, allocations: 166.2 kB / 1.104 GB, free: 359.1 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/3.809, allocations: 67.3 kB / 1.104 GB, free: 359 MB / 0.8106 GB Notification: Performance of SimCode: time 4.11e-07/3.809, allocations: 0 / 1.104 GB, free: 359 MB / 0.8106 GB Notification: Performance of Templates: time 0.07389/3.883, allocations: 64.19 MB / 1.167 GB, free: 295.7 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeA.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeA.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeA.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeA.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeA.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeA -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestVolumeA.pipe 2>&1) Environment - environmentSimulation: