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.7398/0.7398, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.01e-05/1.013e-05, allocations: 0 / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1298, allocations: 31.97 MB / 236.8 MB, free: 5.406 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.TestDynamicCheckValve): time 1.409/1.539, allocations: 293.7 MB / 0.5181 GB, free: 13.33 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03716/1.576, allocations: 37.45 MB / 0.5546 GB, free: 8.023 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001896/1.576, allocations: 4 kB / 0.5546 GB, free: 8.02 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003162/1.577, allocations: 107.4 kB / 0.5548 GB, free: 7.914 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002458/1.577, allocations: 115.1 kB / 0.5549 GB, free: 7.801 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01815/1.595, allocations: 7.438 MB / 0.5621 GB, free: 372 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005215/1.595, allocations: 430.6 kB / 0.5625 GB, free: 15.94 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/1.596, allocations: 121.9 kB / 0.5627 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002081/1.596, allocations: 159.2 kB / 0.5628 GB, free: 15.66 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001897/1.596, allocations: 151.2 kB / 0.5629 GB, free: 15.51 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/1.596, allocations: 12 kB / 0.563 GB, free: 15.5 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02487/1.621, allocations: 17.81 MB / 0.5804 GB, free: 13.67 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/1.621, allocations: 51.77 kB / 0.5804 GB, free: 13.62 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/1.621, allocations: 184.7 kB / 0.5806 GB, free: 13.43 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0146/1.636, allocations: 8.421 MB / 0.5888 GB, free: 4.988 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/1.636, allocations: 4 kB / 0.5888 GB, free: 4.984 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.874e-06/1.636, allocations: 0 / 0.5888 GB, free: 4.984 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.034e-05/1.636, allocations: 0 / 0.5888 GB, free: 4.984 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.003649/1.64, allocations: 1.489 MB / 0.5903 GB, free: 3.445 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/1.64, allocations: 12.03 kB / 0.5903 GB, free: 3.434 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.172e-05/1.64, allocations: 39.47 kB / 0.5903 GB, free: 3.395 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/1.64, allocations: 258.3 kB / 0.5906 GB, free: 3.102 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.858e-05/1.64, allocations: 56.08 kB / 0.5906 GB, free: 3.043 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.231e-05/1.64, allocations: 24 kB / 0.5906 GB, free: 3.02 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005107/1.641, allocations: 354.8 kB / 0.591 GB, free: 2.645 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/1.641, allocations: 3.938 kB / 0.591 GB, free: 2.641 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.747e-05/1.641, allocations: 12 kB / 0.591 GB, free: 2.629 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/1.641, allocations: 19.92 kB / 0.591 GB, free: 2.609 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003583/1.641, allocations: 221.8 kB / 0.5912 GB, free: 2.395 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.01835/1.66, allocations: 10.06 MB / 0.601 GB, free: 7.301 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006408/1.66, allocations: 298.9 kB / 0.6013 GB, free: 6.996 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/1.66, allocations: 149.2 kB / 0.6015 GB, free: 6.848 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1578/1.818, allocations: 86.21 MB / 0.6856 GB, free: 7.02 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003603/1.819, allocations: 216.1 kB / 0.6859 GB, free: 6.789 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 3.637e-06/1.819, allocations: 3.938 kB / 0.6859 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001144/1.82, allocations: 0.5849 MB / 0.6864 GB, free: 6.172 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/1.82, allocations: 81.06 kB / 0.6865 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002489/1.82, allocations: 258.6 kB / 0.6868 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.381e-05/1.82, allocations: 29.7 kB / 0.6868 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.663e-05/1.82, allocations: 172.9 kB / 0.6869 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.928e-05/1.82, allocations: 157.7 kB / 0.6871 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.818e-05/1.82, allocations: 41.69 kB / 0.6871 GB, free: 5.41 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001023/1.821, allocations: 338.8 kB / 0.6875 GB, free: 5.07 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/1.821, allocations: 108.8 kB / 0.6876 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/1.821, allocations: 168 kB / 0.6877 GB, free: 4.785 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003884/1.821, allocations: 291.2 kB / 0.688 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/1.821, allocations: 0 / 0.688 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007598/1.822, allocations: 447.2 kB / 0.6884 GB, free: 4.035 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/1.822, allocations: 4 kB / 0.6884 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/1.822, allocations: 3.984 kB / 0.6884 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009848/1.823, allocations: 226.1 kB / 0.6887 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/1.823, allocations: 31.91 kB / 0.6887 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001958/1.825, allocations: 2.261 MB / 0.6909 GB, free: 1.344 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/1.825, allocations: 51.58 kB / 0.6909 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/1.825, allocations: 12 kB / 0.6909 GB, free: 1.281 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: 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.0001447/1.826, allocations: 148.8 kB / 0.6911 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/1.826, allocations: 35.61 kB / 0.6911 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007285/1.826, allocations: 0.5678 MB / 0.6917 GB, free: 500 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004684/1.827, allocations: 366.3 kB / 0.692 GB, free: 120 kB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/1.827, allocations: 4 kB / 0.692 GB, free: 116 kB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/1.827, allocations: 8.203 kB / 0.692 GB, free: 108 kB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1501/1.977, allocations: 0.9714 MB / 0.693 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/1.977, allocations: 3.844 kB / 0.693 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/1.977, allocations: 62.62 kB / 0.6931 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004699/1.978, allocations: 130.2 kB / 0.6932 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.821e-05/1.978, allocations: 5.734 kB / 0.6932 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003339/1.978, allocations: 0.634 MB / 0.6938 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/1.978, allocations: 4.844 kB / 0.6938 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008389/1.979, allocations: 0.6562 MB / 0.6944 GB, free: 227.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/1.979, allocations: 149.5 kB / 0.6946 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.574e-05/1.979, allocations: 8.656 kB / 0.6946 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/1.979, allocations: 32.25 kB / 0.6946 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.096e-05/1.979, allocations: 33.81 kB / 0.6947 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/1.98, allocations: 11.42 kB / 0.6947 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001734/1.98, allocations: 217 kB / 0.6949 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/1.98, allocations: 1.156 kB / 0.6949 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002743/1.982, allocations: 1.215 MB / 0.6961 GB, free: 227.4 MB / 0.5762 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.004279/1.987, allocations: 1.762 MB / 0.6978 GB, free: 227.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008956/1.988, allocations: 496.1 kB / 0.6983 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/1.988, allocations: 2.969 kB / 0.6983 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003627/1.988, allocations: 196.4 kB / 0.6985 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007789/1.989, allocations: 133.1 kB / 0.6986 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00133/1.99, allocations: 1.083 MB / 0.6996 GB, free: 226.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/1.99, allocations: 0.8083 MB / 0.7004 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001331/1.99, allocations: 33.34 kB / 0.7005 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.736e-05/1.991, allocations: 25.17 kB / 0.7005 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of SimCode: time 2.2e-07/1.991, allocations: 3.562 kB / 0.7005 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.04391/2.034, allocations: 43.31 MB / 0.7428 GB, free: 202.1 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: