Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.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.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7437/0.7437, allocations: 150.8 MB / 166.1 MB, free: 15.66 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.265e-05/1.275e-05, allocations: 4 kB / 204.8 MB, free: 10.2 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1365, allocations: 31.98 MB / 236.8 MB, free: 5.402 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.Book.SimpleExamples.PressureLoss.TestDiaphragm): time 1.432/1.568, allocations: 293.5 MB / 0.5178 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03739/1.606, allocations: 37.24 MB / 0.5542 GB, free: 8.613 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/1.606, allocations: 4 kB / 0.5542 GB, free: 8.609 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003249/1.606, allocations: 87.5 kB / 0.5543 GB, free: 8.523 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000211/1.606, allocations: 87.34 kB / 0.5544 GB, free: 8.438 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01779/1.624, allocations: 7.356 MB / 0.5616 GB, free: 1.078 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000453/1.625, allocations: 326.9 kB / 0.5619 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001805/1.625, allocations: 98.72 kB / 0.562 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/1.625, allocations: 123.3 kB / 0.5621 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/1.625, allocations: 103.4 kB / 0.5622 GB, free: 444 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.901e-05/1.625, allocations: 8 kB / 0.5622 GB, free: 436 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02657/1.652, allocations: 17.88 MB / 0.5797 GB, free: 14.52 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.093e-05/1.652, allocations: 35.8 kB / 0.5797 GB, free: 14.48 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/1.652, allocations: 145 kB / 0.5798 GB, free: 14.34 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01803/1.67, allocations: 8.39 MB / 0.588 GB, free: 5.926 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/1.67, allocations: 0 / 0.588 GB, free: 5.926 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.134e-06/1.67, allocations: 0 / 0.588 GB, free: 5.926 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/1.67, allocations: 4 kB / 0.588 GB, free: 5.922 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003638/1.674, allocations: 1.404 MB / 0.5894 GB, free: 4.465 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/1.674, allocations: 8.031 kB / 0.5894 GB, free: 4.457 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.982e-05/1.674, allocations: 31.62 kB / 0.5894 GB, free: 4.426 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002033/1.674, allocations: 230.5 kB / 0.5897 GB, free: 4.16 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/1.674, allocations: 12.44 kB / 0.5897 GB, free: 4.148 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/1.674, allocations: 20 kB / 0.5897 GB, free: 4.129 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004156/1.675, allocations: 321.1 kB / 0.59 GB, free: 3.785 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/1.675, allocations: 7.938 kB / 0.59 GB, free: 3.777 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/1.675, allocations: 12 kB / 0.59 GB, free: 3.766 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/1.675, allocations: 9.828 kB / 0.59 GB, free: 3.758 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002419/1.675, allocations: 181 kB / 0.5902 GB, free: 3.582 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.03531/1.71, allocations: 18.19 MB / 0.608 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/1.711, allocations: 146.5 kB / 0.6081 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.824e-05/1.711, allocations: 92.77 kB / 0.6082 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1444/1.855, allocations: 78.13 MB / 0.6845 GB, free: 8.352 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/1.855, allocations: 34.56 kB / 0.6845 GB, free: 8.309 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 3.176e-06/1.855, allocations: 0 / 0.6845 GB, free: 8.309 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0008095/1.856, allocations: 423.3 kB / 0.6849 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/1.856, allocations: 81.11 kB / 0.685 GB, free: 7.77 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/1.856, allocations: 227.1 kB / 0.6852 GB, free: 7.535 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/1.856, allocations: 25.7 kB / 0.6852 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/1.856, allocations: 156.4 kB / 0.6854 GB, free: 7.348 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.32e-05/1.856, allocations: 110.3 kB / 0.6855 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.995e-05/1.857, allocations: 37.69 kB / 0.6855 GB, free: 7.195 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001121/1.857, allocations: 334.8 kB / 0.6858 GB, free: 6.859 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/1.857, allocations: 71.98 kB / 0.6859 GB, free: 6.789 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/1.857, allocations: 134 kB / 0.686 GB, free: 6.637 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/1.857, allocations: 229.5 kB / 0.6863 GB, free: 6.395 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/1.857, allocations: 0 / 0.6863 GB, free: 6.395 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004079/1.858, allocations: 302 kB / 0.6865 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/1.858, allocations: 9.031 kB / 0.6866 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/1.858, allocations: 0 / 0.6866 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009357/1.859, allocations: 164.9 kB / 0.6867 GB, free: 5.918 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.635e-05/1.859, allocations: 19.98 kB / 0.6867 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004621/1.859, allocations: 0.6109 MB / 0.6873 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001439/1.859, allocations: 31.62 kB / 0.6874 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/1.859, allocations: 8 kB / 0.6874 GB, free: 5.223 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.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 (15): * Single equations (assignments): 12 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001179/1.859, allocations: 149.8 kB / 0.6875 GB, free: 5.066 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.907e-05/1.859, allocations: 19.72 kB / 0.6875 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000861/1.86, allocations: 0.5914 MB / 0.6881 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000523/1.861, allocations: 226.3 kB / 0.6883 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/1.861, allocations: 7.938 kB / 0.6883 GB, free: 4.148 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/1.861, allocations: 5.625 kB / 0.6883 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/1.862, allocations: 0.7383 MB / 0.6891 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/1.862, allocations: 0 / 0.6891 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.265e-05/1.862, allocations: 19.98 kB / 0.6891 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006644/1.863, allocations: 145.8 kB / 0.6892 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/1.863, allocations: 0 / 0.6892 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004294/1.863, allocations: 0.6468 MB / 0.6898 GB, free: 2.512 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/1.863, allocations: 0 / 0.6898 GB, free: 2.512 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005897/1.864, allocations: 345 kB / 0.6902 GB, free: 2.156 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/1.864, allocations: 136.7 kB / 0.6903 GB, free: 2.004 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/1.864, allocations: 12 kB / 0.6903 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/1.864, allocations: 11.98 kB / 0.6903 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/1.864, allocations: 7.938 kB / 0.6903 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/1.864, allocations: 19.86 kB / 0.6903 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002146/1.864, allocations: 234 kB / 0.6906 GB, free: 1.727 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.864, allocations: 0 / 0.6906 GB, free: 1.727 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00262/1.867, allocations: 1.206 MB / 0.6918 GB, free: 0.5195 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 (13): * 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: 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1477/2.015, allocations: 1.796 MB / 0.6935 GB, free: 229 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006579/2.015, allocations: 241.8 kB / 0.6937 GB, free: 229 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/2.015, allocations: 1.312 kB / 0.6937 GB, free: 229 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002328/2.016, allocations: 95.36 kB / 0.6938 GB, free: 229 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007659/2.016, allocations: 128.5 kB / 0.694 GB, free: 229 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000701/2.017, allocations: 0.6396 MB / 0.6946 GB, free: 228.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001568/2.017, allocations: 0.768 MB / 0.6953 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001047/2.017, allocations: 29.86 kB / 0.6954 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.192e-05/2.017, allocations: 22.39 kB / 0.6954 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of SimCode: time 2.21e-07/2.017, allocations: 1.219 kB / 0.6954 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.04349/2.061, allocations: 42.37 MB / 0.7368 GB, free: 208.2 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1) Environment - environmentSimulation: