Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.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.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_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 1.032/1.032, allocations: 150.8 MB / 166.1 MB, free: 15.16 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.13e-05/2.133e-05, allocations: 7.938 kB / 204.9 MB, free: 9.582 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2645, allocations: 31.98 MB / 236.8 MB, free: 5.332 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.SimpleExamples.TestDiaphragm): time 2.102/2.366, allocations: 294.6 MB / 0.519 GB, free: 13.16 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.7701/3.137, allocations: 188.8 MB / 0.7034 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004195/3.137, allocations: 6.938 kB / 0.7034 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001184/3.137, allocations: 28.98 kB / 0.7034 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004154/3.138, allocations: 100.5 kB / 0.7035 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03985/3.177, allocations: 9.516 MB / 0.7128 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006985/3.178, allocations: 380.4 kB / 0.7132 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002677/3.178, allocations: 168.2 kB / 0.7134 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/3.179, allocations: 133.2 kB / 0.7135 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/3.179, allocations: 140.3 kB / 0.7136 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.138e-05/3.179, allocations: 16.06 kB / 0.7136 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04434/3.223, allocations: 21.12 MB / 0.7343 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001812/3.223, allocations: 48.16 kB / 0.7343 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003243/3.224, allocations: 180.1 kB / 0.7345 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03293/3.257, allocations: 10.42 MB / 0.7447 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/3.257, allocations: 0 / 0.7447 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.407e-06/3.257, allocations: 0.5312 kB / 0.7447 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.055e-06/3.257, allocations: 0.875 kB / 0.7447 GB, free: 15.52 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.006434/3.263, allocations: 1.792 MB / 0.7464 GB, free: 14.31 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/3.263, allocations: 12.98 kB / 0.7464 GB, free: 14.31 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.698e-05/3.263, allocations: 72.19 kB / 0.7465 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.752e-05/3.263, allocations: 43.53 kB / 0.7465 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003428/3.264, allocations: 289.3 kB / 0.7468 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.582e-05/3.264, allocations: 29.06 kB / 0.7468 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.834e-05/3.264, allocations: 42.12 kB / 0.7469 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005796/3.264, allocations: 378.5 kB / 0.7472 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/3.264, allocations: 2.906 kB / 0.7472 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.195e-05/3.264, allocations: 13.88 kB / 0.7473 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/3.265, allocations: 8.625 kB / 0.7473 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004137/3.265, allocations: 241.4 kB / 0.7475 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008474/3.273, allocations: 6.177 MB / 0.7535 GB, free: 8.539 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/3.274, allocations: 84.03 kB / 0.7536 GB, free: 8.504 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.378e-05/3.274, allocations: 27.67 kB / 0.7536 GB, free: 8.492 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3348/3.609, allocations: 156 MB / 0.906 GB, free: 6.402 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.627e-05/3.609, allocations: 38.19 kB / 0.906 GB, free: 6.359 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 3.226e-06/3.609, allocations: 0 / 0.906 GB, free: 6.359 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0009564/3.61, allocations: 256.5 kB / 0.9063 GB, free: 6.113 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.427e-05/3.61, allocations: 77.11 kB / 0.9064 GB, free: 6.02 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000398/3.61, allocations: 282.5 kB / 0.9066 GB, free: 5.789 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/3.61, allocations: 33.27 kB / 0.9067 GB, free: 5.754 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/3.61, allocations: 231.4 kB / 0.9069 GB, free: 5.555 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.668e-05/3.61, allocations: 30.11 kB / 0.9069 GB, free: 5.531 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.515e-05/3.61, allocations: 32.89 kB / 0.9069 GB, free: 5.504 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001263/3.611, allocations: 342.1 kB / 0.9073 GB, free: 5.168 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/3.611, allocations: 43.2 kB / 0.9073 GB, free: 5.141 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/3.611, allocations: 157.6 kB / 0.9075 GB, free: 4.957 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002725/3.611, allocations: 208 kB / 0.9077 GB, free: 4.766 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/3.611, allocations: 4 kB / 0.9077 GB, free: 4.762 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006455/3.612, allocations: 284.5 kB / 0.9079 GB, free: 4.551 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/3.612, allocations: 8 kB / 0.9079 GB, free: 4.543 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/3.612, allocations: 4 kB / 0.9079 GB, free: 4.539 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/3.613, allocations: 130.6 kB / 0.9081 GB, free: 4.414 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/3.613, allocations: 46.62 kB / 0.9081 GB, free: 4.375 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000488/3.614, allocations: 0.5653 MB / 0.9087 GB, free: 3.805 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/3.614, allocations: 35.27 kB / 0.9087 GB, free: 3.773 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.457e-05/3.614, allocations: 14.91 kB / 0.9087 GB, free: 3.762 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.0001852/3.614, allocations: 147.7 kB / 0.9089 GB, free: 3.629 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.036e-05/3.614, allocations: 23.72 kB / 0.9089 GB, free: 3.605 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006167/3.615, allocations: 174.8 kB / 0.909 GB, free: 3.457 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/3.615, allocations: 0 / 0.909 GB, free: 3.457 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/3.615, allocations: 0 / 0.909 GB, free: 3.457 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/3.615, allocations: 12.02 kB / 0.9091 GB, free: 3.445 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003676/3.615, allocations: 308 kB / 0.9094 GB, free: 3.145 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/3.615, allocations: 2.734 kB / 0.9094 GB, free: 3.145 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.825e-05/3.615, allocations: 8 kB / 0.9094 GB, free: 3.137 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007088/3.616, allocations: 104.1 kB / 0.9095 GB, free: 3.039 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/3.616, allocations: 0 / 0.9095 GB, free: 3.039 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004334/3.616, allocations: 0.565 MB / 0.91 GB, free: 2.473 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/3.616, allocations: 4 kB / 0.91 GB, free: 2.469 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005026/3.617, allocations: 176.9 kB / 0.9102 GB, free: 2.305 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/3.617, allocations: 108.2 kB / 0.9103 GB, free: 2.188 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.329e-05/3.617, allocations: 0 / 0.9103 GB, free: 2.188 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.022e-05/3.617, allocations: 4 kB / 0.9103 GB, free: 2.184 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/3.617, allocations: 3.984 kB / 0.9103 GB, free: 2.18 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/3.617, allocations: 4 kB / 0.9103 GB, free: 2.176 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002351/3.618, allocations: 214.4 kB / 0.9105 GB, free: 2.004 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.31e-07/3.618, allocations: 4 kB / 0.9105 GB, free: 2 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.005264/3.623, allocations: 1.603 MB / 0.9121 GB, free: 0.5078 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.01073/3.634, allocations: 3.124 MB / 0.9151 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006019/3.634, allocations: 133.3 kB / 0.9153 GB, free: 13.64 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/3.634, allocations: 0 / 0.9153 GB, free: 13.64 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001717/3.634, allocations: 38.12 kB / 0.9153 GB, free: 13.61 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006005/3.635, allocations: 72.78 kB / 0.9154 GB, free: 13.55 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00704/3.642, allocations: 3.228 MB / 0.9185 GB, free: 10.46 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/3.642, allocations: 0.7597 MB / 0.9192 GB, free: 9.68 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001902/3.643, allocations: 42.91 kB / 0.9193 GB, free: 9.637 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/3.643, allocations: 101.7 kB / 0.9194 GB, free: 9.602 MB / 0.7637 GB Notification: Performance of SimCode: time 6.52e-07/3.643, allocations: 0 / 0.9194 GB, free: 9.602 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09906/3.742, allocations: 53.26 MB / 0.9714 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000255/3.742, allocations: 290.8 kB / 0.9717 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.362/8.105, allocations: 0 / 0.9717 GB, free: 4.16 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)