Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",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.9036/0.9036, allocations: 150.8 MB / 166.1 MB, free: 15.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.485e-05/1.526e-05, allocations: 0 / 204.9 MB, free: 10.09 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2199, allocations: 31.99 MB / 236.9 MB, free: 5.383 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm): time 1.722/1.942, allocations: 294.5 MB / 0.519 GB, free: 13.34 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.6052/2.547, allocations: 188.8 MB / 0.7034 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003505/2.548, allocations: 6.812 kB / 0.7034 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001354/2.548, allocations: 29.61 kB / 0.7034 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004777/2.548, allocations: 97.19 kB / 0.7035 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03407/2.583, allocations: 9.518 MB / 0.7128 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005069/2.583, allocations: 382.3 kB / 0.7131 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002662/2.583, allocations: 165.5 kB / 0.7133 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002186/2.584, allocations: 132.8 kB / 0.7134 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/2.584, allocations: 145 kB / 0.7136 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.707e-05/2.584, allocations: 14.44 kB / 0.7136 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03936/2.623, allocations: 21.12 MB / 0.7342 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000133/2.623, allocations: 54.53 kB / 0.7342 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00025/2.624, allocations: 182.3 kB / 0.7344 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02672/2.65, allocations: 10.4 MB / 0.7446 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/2.65, allocations: 0 / 0.7446 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.106e-06/2.65, allocations: 0 / 0.7446 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.987e-05/2.65, allocations: 0 / 0.7446 GB, free: 15.56 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.005335/2.656, allocations: 1.793 MB / 0.7463 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/2.656, allocations: 8.25 kB / 0.7463 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001062/2.656, allocations: 79.77 kB / 0.7464 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.09e-05/2.656, allocations: 43.78 kB / 0.7465 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003666/2.656, allocations: 288.8 kB / 0.7467 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.1e-05/2.656, allocations: 29.56 kB / 0.7468 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.804e-05/2.656, allocations: 37 kB / 0.7468 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006526/2.657, allocations: 383.3 kB / 0.7472 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/2.657, allocations: 0 / 0.7472 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/2.657, allocations: 14.53 kB / 0.7472 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/2.657, allocations: 8.344 kB / 0.7472 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004312/2.658, allocations: 251 kB / 0.7474 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008594/2.666, allocations: 6.166 MB / 0.7534 GB, free: 8.578 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/2.666, allocations: 91.94 kB / 0.7535 GB, free: 8.539 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.852e-05/2.667, allocations: 26.64 kB / 0.7536 GB, free: 8.531 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3166/2.983, allocations: 156 MB / 0.9059 GB, free: 6.441 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/2.983, allocations: 34.44 kB / 0.906 GB, free: 6.402 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 2.023e-06/2.983, allocations: 0 / 0.906 GB, free: 6.402 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0007743/2.984, allocations: 252.6 kB / 0.9062 GB, free: 6.156 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/2.984, allocations: 83.73 kB / 0.9063 GB, free: 6.059 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003041/2.984, allocations: 290.2 kB / 0.9066 GB, free: 5.824 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/2.984, allocations: 25.7 kB / 0.9066 GB, free: 5.793 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/2.984, allocations: 230.3 kB / 0.9068 GB, free: 5.602 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.225e-05/2.985, allocations: 31.33 kB / 0.9068 GB, free: 5.574 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.869e-05/2.985, allocations: 32.77 kB / 0.9069 GB, free: 5.547 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001048/2.985, allocations: 338.1 kB / 0.9072 GB, free: 5.215 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/2.985, allocations: 43.2 kB / 0.9072 GB, free: 5.188 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/2.985, allocations: 160.5 kB / 0.9074 GB, free: 5.004 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002491/2.985, allocations: 209.7 kB / 0.9076 GB, free: 4.809 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/2.985, allocations: 0 / 0.9076 GB, free: 4.809 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004781/2.986, allocations: 275.4 kB / 0.9078 GB, free: 4.605 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/2.986, allocations: 12.09 kB / 0.9079 GB, free: 4.594 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/2.986, allocations: 8 kB / 0.9079 GB, free: 4.586 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009613/2.987, allocations: 128.4 kB / 0.908 GB, free: 4.461 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/2.987, allocations: 45.48 kB / 0.908 GB, free: 4.426 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004158/2.987, allocations: 0.5654 MB / 0.9086 GB, free: 3.855 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001947/2.988, allocations: 39.34 kB / 0.9086 GB, free: 3.82 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/2.988, allocations: 8 kB / 0.9086 GB, free: 3.812 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,Diaphragm.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Diaphragm.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001419/2.988, allocations: 151.1 kB / 0.9088 GB, free: 3.676 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.217e-05/2.988, allocations: 23.72 kB / 0.9088 GB, free: 3.652 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005794/2.988, allocations: 183.2 kB / 0.909 GB, free: 3.504 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/2.988, allocations: 8.031 kB / 0.909 GB, free: 3.496 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/2.988, allocations: 0 / 0.909 GB, free: 3.496 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/2.988, allocations: 0 / 0.909 GB, free: 3.496 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002662/2.989, allocations: 309.3 kB / 0.9093 GB, free: 3.191 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/2.989, allocations: 0 / 0.9093 GB, free: 3.191 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.309e-05/2.989, allocations: 4 kB / 0.9093 GB, free: 3.188 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006971/2.989, allocations: 107 kB / 0.9094 GB, free: 3.09 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/2.989, allocations: 7.984 kB / 0.9094 GB, free: 3.082 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003725/2.99, allocations: 0.5584 MB / 0.9099 GB, free: 2.52 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/2.99, allocations: 0 / 0.9099 GB, free: 2.52 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004791/2.99, allocations: 173.9 kB / 0.9101 GB, free: 2.355 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.068e-05/2.99, allocations: 111 kB / 0.9102 GB, free: 2.238 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.392e-05/2.99, allocations: 4 kB / 0.9102 GB, free: 2.234 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.027e-05/2.991, allocations: 3.984 kB / 0.9102 GB, free: 2.23 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.255e-05/2.991, allocations: 4 kB / 0.9102 GB, free: 2.227 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/2.991, allocations: 0 / 0.9102 GB, free: 2.227 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000205/2.991, allocations: 218.6 kB / 0.9104 GB, free: 2.051 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/2.991, allocations: 0 / 0.9104 GB, free: 2.051 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.00444/2.995, allocations: 1.607 MB / 0.912 GB, free: 0.5508 MB / 0.7481 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 (4): * Single equations (assignments): 3 * 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.007244/3.002, allocations: 3.123 MB / 0.915 GB, free: 13.77 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0004004/3.003, allocations: 132.2 kB / 0.9152 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/3.003, allocations: 0 / 0.9152 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001314/3.003, allocations: 39.14 kB / 0.9152 GB, free: 13.65 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004074/3.003, allocations: 73.81 kB / 0.9153 GB, free: 13.6 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004306/3.008, allocations: 3.232 MB / 0.9184 GB, free: 10.51 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/3.008, allocations: 0.7635 MB / 0.9192 GB, free: 9.723 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001685/3.008, allocations: 42.64 kB / 0.9192 GB, free: 9.688 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/3.008, allocations: 98.09 kB / 0.9193 GB, free: 9.652 MB / 0.7637 GB Notification: Performance of SimCode: time 4.71e-07/3.008, allocations: 0 / 0.9193 GB, free: 9.652 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3612/3.37, allocations: 53.27 MB / 0.9713 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002636/3.37, allocations: 305.2 kB / 0.9716 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.328/7.698, allocations: 4 kB / 0.9716 GB, free: 4.238 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)