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: "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_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.842/0.842, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.524e-05/1.514e-05, allocations: 0 / 204.9 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1875, allocations: 31.98 MB / 236.8 MB, free: 5.41 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.589/1.777, allocations: 294.7 MB / 0.5191 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04118/1.818, allocations: 37.44 MB / 0.5557 GB, free: 7.93 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002619/1.818, allocations: 4 kB / 0.5557 GB, free: 7.926 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003784/1.819, allocations: 91.53 kB / 0.5558 GB, free: 7.836 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003048/1.819, allocations: 107.2 kB / 0.5559 GB, free: 7.73 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02047/1.839, allocations: 7.449 MB / 0.5631 GB, free: 284 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006367/1.84, allocations: 426.7 kB / 0.5636 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/1.84, allocations: 144.5 kB / 0.5637 GB, free: 15.71 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/1.841, allocations: 155.2 kB / 0.5638 GB, free: 15.56 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/1.841, allocations: 147.2 kB / 0.564 GB, free: 15.42 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/1.841, allocations: 8 kB / 0.564 GB, free: 15.41 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0283/1.869, allocations: 17.82 MB / 0.5814 GB, free: 13.57 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/1.869, allocations: 47.77 kB / 0.5814 GB, free: 13.52 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002162/1.869, allocations: 188.7 kB / 0.5816 GB, free: 13.33 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01842/1.888, allocations: 8.409 MB / 0.5898 GB, free: 4.902 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/1.888, allocations: 0 / 0.5898 GB, free: 4.902 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.725e-06/1.888, allocations: 7.938 kB / 0.5898 GB, free: 4.895 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/1.888, allocations: 0 / 0.5898 GB, free: 4.895 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.004238/1.892, allocations: 1.497 MB / 0.5913 GB, free: 3.348 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/1.892, allocations: 8.031 kB / 0.5913 GB, free: 3.34 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.365e-05/1.892, allocations: 70.53 kB / 0.5914 GB, free: 3.262 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.292e-05/1.892, allocations: 43.47 kB / 0.5914 GB, free: 3.219 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/1.893, allocations: 262.3 kB / 0.5917 GB, free: 2.922 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.525e-05/1.893, allocations: 46.27 kB / 0.5917 GB, free: 2.871 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.973e-05/1.893, allocations: 24 kB / 0.5917 GB, free: 2.848 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005848/1.894, allocations: 350.7 kB / 0.5921 GB, free: 2.477 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/1.894, allocations: 4 kB / 0.5921 GB, free: 2.473 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/1.894, allocations: 8 kB / 0.5921 GB, free: 2.465 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/1.894, allocations: 19.92 kB / 0.5921 GB, free: 2.445 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004083/1.894, allocations: 233.7 kB / 0.5923 GB, free: 2.219 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.01992/1.914, allocations: 10.05 MB / 0.6021 GB, free: 7.129 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007071/1.915, allocations: 298.9 kB / 0.6024 GB, free: 6.824 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002105/1.915, allocations: 149.2 kB / 0.6026 GB, free: 6.676 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1707/2.086, allocations: 86.2 MB / 0.6867 GB, free: 6.852 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004016/2.086, allocations: 224.1 kB / 0.687 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 1.733e-06/2.086, allocations: 0 / 0.687 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001215/2.087, allocations: 0.5849 MB / 0.6875 GB, free: 6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/2.087, allocations: 92.94 kB / 0.6876 GB, free: 5.891 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/2.088, allocations: 250.6 kB / 0.6879 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/2.088, allocations: 29.7 kB / 0.6879 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.908e-05/2.088, allocations: 160.9 kB / 0.688 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/2.088, allocations: 157.6 kB / 0.6882 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.029e-05/2.088, allocations: 45.73 kB / 0.6882 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001104/2.088, allocations: 338.8 kB / 0.6885 GB, free: 4.902 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/2.088, allocations: 112.8 kB / 0.6887 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/2.088, allocations: 160.1 kB / 0.6888 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004064/2.089, allocations: 299.2 kB / 0.6891 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/2.089, allocations: 0 / 0.6891 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007838/2.09, allocations: 442.4 kB / 0.6895 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/2.09, allocations: 8 kB / 0.6895 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/2.09, allocations: 0 / 0.6895 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/2.091, allocations: 227.5 kB / 0.6897 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/2.091, allocations: 23.98 kB / 0.6898 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002078/2.093, allocations: 2.269 MB / 0.692 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002135/2.093, allocations: 47.8 kB / 0.692 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/2.093, allocations: 11.98 kB / 0.692 GB, free: 1.117 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.0001551/2.093, allocations: 153.8 kB / 0.6922 GB, free: 0.957 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.08e-05/2.093, allocations: 31.62 kB / 0.6922 GB, free: 0.9258 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007664/2.094, allocations: 0.5678 MB / 0.6928 GB, free: 328 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1652/2.259, allocations: 365.8 kB / 0.6931 GB, free: 228 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/2.259, allocations: 0 / 0.6931 GB, free: 228 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/2.259, allocations: 1.172 kB / 0.6931 GB, free: 228 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/2.261, allocations: 0.9845 MB / 0.6941 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/2.261, allocations: 3.891 kB / 0.6941 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002878/2.261, allocations: 61.23 kB / 0.6941 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005132/2.262, allocations: 133.1 kB / 0.6943 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/2.262, allocations: 7.297 kB / 0.6943 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004034/2.262, allocations: 0.6332 MB / 0.6949 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/2.262, allocations: 0 / 0.6949 GB, free: 227.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009162/2.263, allocations: 0.6636 MB / 0.6955 GB, free: 227 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/2.263, allocations: 143.3 kB / 0.6957 GB, free: 226.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.677e-05/2.263, allocations: 5.125 kB / 0.6957 GB, free: 226.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/2.263, allocations: 32.36 kB / 0.6957 GB, free: 226.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.709e-05/2.263, allocations: 33.11 kB / 0.6957 GB, free: 226.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/2.264, allocations: 9.203 kB / 0.6958 GB, free: 226.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001849/2.264, allocations: 222.5 kB / 0.696 GB, free: 226.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/2.264, allocations: 1.531 kB / 0.696 GB, free: 226.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003137/2.267, allocations: 1.216 MB / 0.6972 GB, free: 226.8 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.006227/2.273, allocations: 2.874 MB / 0.7 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009519/2.274, allocations: 492.2 kB / 0.7004 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/2.274, allocations: 0 / 0.7004 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004126/2.275, allocations: 194.7 kB / 0.7006 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008553/2.275, allocations: 135.8 kB / 0.7007 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005293/2.281, allocations: 4.056 MB / 0.7047 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/2.281, allocations: 0.8094 MB / 0.7055 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001746/2.281, allocations: 33.8 kB / 0.7055 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/2.281, allocations: 134.4 kB / 0.7057 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of SimCode: time 6.71e-07/2.281, allocations: 0.75 kB / 0.7057 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06371/2.345, allocations: 48.69 MB / 0.7532 GB, free: 193.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001503/2.345, allocations: 263.9 kB / 0.7535 GB, free: 192.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.366/6.711, allocations: 3.125 kB / 0.7535 GB, free: 192.7 MB / 0.5762 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)