Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7769/0.7769, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.749e-05/1.758e-05, allocations: 4 kB / 204.9 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1398, allocations: 31.98 MB / 236.8 MB, free: 5.414 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.SimpleExamples.TestDynamicCheckValve): time 1.456/1.596, allocations: 294.8 MB / 0.5192 GB, free: 12.84 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03748/1.633, allocations: 37.45 MB / 0.5558 GB, free: 7.543 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/1.633, allocations: 4 kB / 0.5558 GB, free: 7.539 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003141/1.634, allocations: 99.45 kB / 0.5559 GB, free: 7.441 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002394/1.634, allocations: 111.2 kB / 0.556 GB, free: 7.332 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01792/1.652, allocations: 7.44 MB / 0.5632 GB, free: 15.89 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006832/1.652, allocations: 422.6 kB / 0.5636 GB, free: 15.48 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002345/1.653, allocations: 144.1 kB / 0.5638 GB, free: 15.34 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002248/1.653, allocations: 159.2 kB / 0.5639 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/1.653, allocations: 151.2 kB / 0.5641 GB, free: 15.03 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/1.653, allocations: 12 kB / 0.5641 GB, free: 15.02 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02567/1.679, allocations: 17.8 MB / 0.5815 GB, free: 13.2 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/1.679, allocations: 47.77 kB / 0.5815 GB, free: 13.15 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001945/1.679, allocations: 192.7 kB / 0.5817 GB, free: 12.95 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01591/1.695, allocations: 8.413 MB / 0.5899 GB, free: 4.52 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/1.695, allocations: 3.984 kB / 0.5899 GB, free: 4.516 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.313e-06/1.695, allocations: 3.938 kB / 0.5899 GB, free: 4.512 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/1.695, allocations: 0 / 0.5899 GB, free: 4.512 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.003802/1.699, allocations: 1.497 MB / 0.5914 GB, free: 2.965 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/1.699, allocations: 12.03 kB / 0.5914 GB, free: 2.953 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.596e-05/1.699, allocations: 66.53 kB / 0.5915 GB, free: 2.879 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.321e-05/1.699, allocations: 47.41 kB / 0.5915 GB, free: 2.832 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002447/1.699, allocations: 266.3 kB / 0.5918 GB, free: 2.531 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.283e-05/1.699, allocations: 42.27 kB / 0.5918 GB, free: 2.484 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.319e-05/1.7, allocations: 25.5 kB / 0.5918 GB, free: 2.461 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004823/1.7, allocations: 354.7 kB / 0.5922 GB, free: 2.082 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/1.7, allocations: 4 kB / 0.5922 GB, free: 2.078 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.381e-05/1.7, allocations: 8 kB / 0.5922 GB, free: 2.07 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/1.7, allocations: 19.92 kB / 0.5922 GB, free: 2.051 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003487/1.7, allocations: 225.8 kB / 0.5924 GB, free: 1.832 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.01818/1.719, allocations: 10.05 MB / 0.6022 GB, free: 6.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006394/1.719, allocations: 306.9 kB / 0.6025 GB, free: 6.438 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/1.72, allocations: 145.2 kB / 0.6026 GB, free: 6.293 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1591/1.879, allocations: 86.2 MB / 0.6868 GB, free: 6.473 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003668/1.879, allocations: 224 kB / 0.687 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 1.633e-06/1.879, allocations: 0 / 0.687 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001147/1.88, allocations: 0.5811 MB / 0.6876 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/1.88, allocations: 89 kB / 0.6877 GB, free: 5.52 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/1.88, allocations: 250.6 kB / 0.6879 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/1.88, allocations: 33.7 kB / 0.688 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.173e-05/1.881, allocations: 164.9 kB / 0.6881 GB, free: 5.07 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.219e-05/1.881, allocations: 153.7 kB / 0.6883 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.955e-05/1.881, allocations: 49.72 kB / 0.6883 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.621e-05/1.881, allocations: 342.8 kB / 0.6886 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/1.881, allocations: 109 kB / 0.6887 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/1.881, allocations: 168 kB / 0.6889 GB, free: 4.234 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003813/1.882, allocations: 295.2 kB / 0.6892 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.882, allocations: 3.938 kB / 0.6892 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007818/1.882, allocations: 442.4 kB / 0.6896 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/1.882, allocations: 8 kB / 0.6896 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/1.882, allocations: 3.984 kB / 0.6896 GB, free: 3.469 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000983/1.883, allocations: 213.7 kB / 0.6898 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/1.884, allocations: 31.91 kB / 0.6899 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/1.886, allocations: 2.268 MB / 0.6921 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001994/1.886, allocations: 47.61 kB / 0.6921 GB, free: 0.7461 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/1.886, allocations: 8 kB / 0.6921 GB, free: 0.7383 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.0001356/1.886, allocations: 151.7 kB / 0.6923 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.69e-05/1.886, allocations: 34.61 kB / 0.6923 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1462/2.032, allocations: 0.5642 MB / 0.6929 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006285/2.033, allocations: 369.1 kB / 0.6932 GB, free: 228.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/2.033, allocations: 0.8906 kB / 0.6932 GB, free: 228.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/2.033, allocations: 2.078 kB / 0.6932 GB, free: 228.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/2.034, allocations: 0.9953 MB / 0.6942 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/2.034, allocations: 0 / 0.6942 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/2.034, allocations: 53.52 kB / 0.6942 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005002/2.035, allocations: 126.5 kB / 0.6944 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/2.035, allocations: 7.953 kB / 0.6944 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003683/2.035, allocations: 0.6405 MB / 0.695 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/2.035, allocations: 0 / 0.695 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008598/2.036, allocations: 0.6617 MB / 0.6956 GB, free: 227.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/2.036, allocations: 146.4 kB / 0.6958 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.205e-05/2.036, allocations: 5.219 kB / 0.6958 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/2.037, allocations: 29.53 kB / 0.6958 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.287e-05/2.037, allocations: 40.33 kB / 0.6958 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.32e-05/2.037, allocations: 6.781 kB / 0.6958 GB, free: 227.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001848/2.037, allocations: 220.7 kB / 0.6961 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/2.037, allocations: 0 / 0.6961 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002735/2.04, allocations: 1.213 MB / 0.6972 GB, free: 227.1 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.005902/2.046, allocations: 2.874 MB / 0.7001 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008159/2.046, allocations: 494.7 kB / 0.7005 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/2.046, allocations: 1.938 kB / 0.7005 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003623/2.047, allocations: 199.9 kB / 0.7007 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007588/2.048, allocations: 127.7 kB / 0.7008 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004698/2.052, allocations: 4.048 MB / 0.7048 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001781/2.053, allocations: 0.8097 MB / 0.7056 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001459/2.053, allocations: 37.98 kB / 0.7056 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/2.053, allocations: 135.2 kB / 0.7057 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of SimCode: time 3.1e-07/2.053, allocations: 3.406 kB / 0.7057 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06093/2.114, allocations: 48.67 MB / 0.7533 GB, free: 193 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/2.114, allocations: 243.3 kB / 0.7535 GB, free: 192.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.741/5.855, allocations: 0 / 0.7535 GB, free: 192.8 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)