Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.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.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8318/0.8318, allocations: 150.8 MB / 166.6 MB, free: 11.16 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002513/0.0002513, allocations: 11.98 kB / 204.7 MB, free: 6.176 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1488, allocations: 31.33 MB / 236 MB, free: 3.895 MB / 186.7 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.899/2.048, allocations: 292.1 MB / 0.5157 GB, free: 9.875 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0434/2.092, allocations: 38.01 MB / 0.5529 GB, free: 3.992 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002804/2.092, allocations: 4 kB / 0.5529 GB, free: 3.988 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:61:3-63:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:64:3-65:51:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004918/2.093, allocations: 101.3 kB / 0.553 GB, free: 3.891 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003739/2.093, allocations: 123.1 kB / 0.5531 GB, free: 3.77 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02466/2.118, allocations: 7.289 MB / 0.5602 GB, free: 12.48 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007097/2.118, allocations: 426.7 kB / 0.5606 GB, free: 12.06 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002872/2.119, allocations: 144.6 kB / 0.5607 GB, free: 11.92 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003762/2.119, allocations: 175.2 kB / 0.5609 GB, free: 11.75 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002714/2.119, allocations: 159.2 kB / 0.5611 GB, free: 11.59 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 5.711e-05/2.119, allocations: 16 kB / 0.5611 GB, free: 11.58 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03162/2.151, allocations: 17.73 MB / 0.5784 GB, free: 9.816 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001494/2.151, allocations: 59.59 kB / 0.5785 GB, free: 9.762 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002399/2.151, allocations: 167.1 kB / 0.5786 GB, free: 9.598 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02087/2.172, allocations: 8.511 MB / 0.5869 GB, free: 1.066 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/2.172, allocations: 0 / 0.5869 GB, free: 1.066 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.462e-06/2.172, allocations: 0 / 0.5869 GB, free: 1.066 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.067e-05/2.172, allocations: 0 / 0.5869 GB, free: 1.066 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004476/2.177, allocations: 1.54 MB / 0.5884 GB, free: 15.48 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/2.177, allocations: 8.031 kB / 0.5884 GB, free: 15.47 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/2.177, allocations: 43.47 kB / 0.5885 GB, free: 15.43 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003061/2.177, allocations: 266.3 kB / 0.5887 GB, free: 15.12 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.461e-05/2.177, allocations: 46.2 kB / 0.5888 GB, free: 15.07 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.272e-05/2.177, allocations: 24 kB / 0.5888 GB, free: 15.05 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000552/2.178, allocations: 354.7 kB / 0.5891 GB, free: 14.68 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/2.178, allocations: 3.906 kB / 0.5891 GB, free: 14.67 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.629e-05/2.178, allocations: 15.94 kB / 0.5892 GB, free: 14.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/2.178, allocations: 19.92 kB / 0.5892 GB, free: 14.64 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003884/2.179, allocations: 225.8 kB / 0.5894 GB, free: 14.42 MB / 490.7 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.02008/2.199, allocations: 9.983 MB / 0.5991 GB, free: 3.398 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007102/2.199, allocations: 276.6 kB / 0.5994 GB, free: 3.117 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002239/2.2, allocations: 149.2 kB / 0.5995 GB, free: 2.969 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.177/2.377, allocations: 85.47 MB / 0.683 GB, free: 3.875 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004198/2.377, allocations: 221.3 kB / 0.6832 GB, free: 3.641 MB / 0.573 GB Notification: Performance of pre-optimization done (n=48): time 1.994e-06/2.377, allocations: 0 / 0.6832 GB, free: 3.641 MB / 0.573 GB Notification: Performance of matching and sorting (n=48): time 0.001249/2.378, allocations: 0.5811 MB / 0.6838 GB, free: 3.031 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/2.378, allocations: 85.06 kB / 0.6839 GB, free: 2.93 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/2.379, allocations: 246.6 kB / 0.6841 GB, free: 2.684 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.699e-05/2.379, allocations: 29.7 kB / 0.6841 GB, free: 2.648 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/2.379, allocations: 176.8 kB / 0.6843 GB, free: 2.473 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/2.379, allocations: 145.8 kB / 0.6844 GB, free: 2.328 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.495e-05/2.379, allocations: 65.83 kB / 0.6845 GB, free: 2.258 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001226/2.379, allocations: 350.8 kB / 0.6848 GB, free: 1.906 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/2.379, allocations: 108.8 kB / 0.6849 GB, free: 1.801 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/2.38, allocations: 164.3 kB / 0.6851 GB, free: 1.629 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000397/2.38, allocations: 291.1 kB / 0.6854 GB, free: 1.332 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/2.38, allocations: 0 / 0.6854 GB, free: 1.332 MB / 0.573 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008113/2.381, allocations: 434.5 kB / 0.6858 GB, free: 0.8945 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/2.381, allocations: 9.562 kB / 0.6858 GB, free: 0.8867 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/2.381, allocations: 4.125 kB / 0.6858 GB, free: 0.8828 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009846/2.382, allocations: 193.5 kB / 0.686 GB, free: 0.6875 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/2.382, allocations: 23.98 kB / 0.686 GB, free: 0.6641 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1752/2.557, allocations: 2.241 MB / 0.6882 GB, free: 221 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002287/2.557, allocations: 42.08 kB / 0.6882 GB, free: 221 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/2.558, allocations: 10.61 kB / 0.6883 GB, free: 221 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000147/2.558, allocations: 155 kB / 0.6884 GB, free: 220.9 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.389e-05/2.558, allocations: 31.06 kB / 0.6884 GB, free: 220.9 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007078/2.558, allocations: 0.5688 MB / 0.689 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005082/2.559, allocations: 363.3 kB / 0.6893 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/2.559, allocations: 5.062 kB / 0.6893 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/2.559, allocations: 0 / 0.6893 GB, free: 220.8 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/2.56, allocations: 0.9783 MB / 0.6903 GB, free: 220.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/2.56, allocations: 2.094 kB / 0.6903 GB, free: 220.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003012/2.561, allocations: 57.61 kB / 0.6904 GB, free: 220.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004968/2.561, allocations: 122.6 kB / 0.6905 GB, free: 220.4 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/2.561, allocations: 9.125 kB / 0.6905 GB, free: 220.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003778/2.561, allocations: 0.6365 MB / 0.6911 GB, free: 219.9 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/2.561, allocations: 0.5625 kB / 0.6911 GB, free: 219.9 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003149/2.565, allocations: 2.412 MB / 0.6935 GB, free: 218.8 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/2.565, allocations: 136.8 kB / 0.6936 GB, free: 218.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.657e-05/2.565, allocations: 9.609 kB / 0.6936 GB, free: 218.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/2.565, allocations: 16.22 kB / 0.6936 GB, free: 218.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.489e-05/2.565, allocations: 34.22 kB / 0.6936 GB, free: 218.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/2.565, allocations: 12.81 kB / 0.6937 GB, free: 218.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0002/2.565, allocations: 219.3 kB / 0.6939 GB, free: 218.6 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.4e-07/2.565, allocations: 0.6562 kB / 0.6939 GB, free: 218.6 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.003292/2.569, allocations: 1.281 MB / 0.6951 GB, free: 218.6 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.004875/2.574, allocations: 1.8 MB / 0.6969 GB, free: 218.4 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001034/2.575, allocations: 496.5 kB / 0.6973 GB, free: 218.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/2.575, allocations: 0.5625 kB / 0.6973 GB, free: 218.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0004091/2.575, allocations: 201.5 kB / 0.6975 GB, free: 218.3 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008063/2.576, allocations: 124.5 kB / 0.6977 GB, free: 218.3 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/2.577, allocations: 1.295 MB / 0.6989 GB, free: 217.6 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/2.578, allocations: 0.8206 MB / 0.6997 GB, free: 216.9 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0001534/2.578, allocations: 37.59 kB / 0.6998 GB, free: 216.9 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.928e-05/2.578, allocations: 30.02 kB / 0.6998 GB, free: 216.9 MB / 0.573 GB Notification: Performance of SimCode: time 2.9e-07/2.578, allocations: 0.5312 kB / 0.6998 GB, free: 216.9 MB / 0.573 GB Notification: Performance of Templates: time 0.04652/2.624, allocations: 44.46 MB / 0.7432 GB, free: 191.4 MB / 0.573 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)