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 0.8857/0.8857, allocations: 150.9 MB / 166 MB, free: 14.66 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004448/0.0004452, allocations: 19.97 kB / 204.1 MB, free: 10.03 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2677, allocations: 31.32 MB / 235.4 MB, free: 5.422 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm): time 2.015/2.282, allocations: 293.7 MB / 0.5167 GB, free: 13.67 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.8109/3.093, allocations: 191.1 MB / 0.7033 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005196/3.094, allocations: 7.844 kB / 0.7033 GB, free: 3.762 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Diaphragm.mo:34:3-35:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Diaphragm.mo:36:3-37:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001895/3.094, allocations: 27.52 kB / 0.7034 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004284/3.095, allocations: 103.5 kB / 0.7035 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.04016/3.135, allocations: 9.327 MB / 0.7126 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009209/3.136, allocations: 378.2 kB / 0.7129 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003361/3.136, allocations: 196 kB / 0.7131 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002822/3.136, allocations: 143.5 kB / 0.7132 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002608/3.137, allocations: 173.1 kB / 0.7134 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.257e-05/3.137, allocations: 29.22 kB / 0.7134 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05101/3.188, allocations: 21.01 MB / 0.734 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002507/3.188, allocations: 71.55 kB / 0.734 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004491/3.188, allocations: 174.1 kB / 0.7342 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03845/3.227, allocations: 10.51 MB / 0.7445 GB, free: 112 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/3.227, allocations: 4.094 kB / 0.7445 GB, free: 112 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.873e-06/3.227, allocations: 1.688 kB / 0.7445 GB, free: 112 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.247e-05/3.227, allocations: 0 / 0.7445 GB, free: 112 kB / 0.5762 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.007313/3.234, allocations: 1.866 MB / 0.7463 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/3.234, allocations: 8.844 kB / 0.7463 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.929e-05/3.234, allocations: 72.5 kB / 0.7464 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/3.235, allocations: 45.7 kB / 0.7464 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/3.235, allocations: 295.5 kB / 0.7467 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.473e-05/3.235, allocations: 28.75 kB / 0.7467 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.595e-05/3.235, allocations: 33.66 kB / 0.7467 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000594/3.236, allocations: 377 kB / 0.7471 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/3.236, allocations: 3.188 kB / 0.7471 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/3.236, allocations: 14.47 kB / 0.7471 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/3.236, allocations: 8.219 kB / 0.7471 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000423/3.236, allocations: 246.7 kB / 0.7474 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008774/3.245, allocations: 6.174 MB / 0.7534 GB, free: 9.117 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/3.245, allocations: 74.78 kB / 0.7535 GB, free: 9.09 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.812e-05/3.245, allocations: 37.61 kB / 0.7535 GB, free: 9.074 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2908/3.536, allocations: 154.7 MB / 0.9046 GB, free: 6.578 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/3.536, allocations: 30.56 kB / 0.9046 GB, free: 6.539 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.954e-06/3.536, allocations: 0 / 0.9046 GB, free: 6.539 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0008071/3.537, allocations: 251 kB / 0.9049 GB, free: 6.297 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/3.537, allocations: 81.73 kB / 0.9049 GB, free: 6.199 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/3.537, allocations: 294.9 kB / 0.9052 GB, free: 5.961 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/3.537, allocations: 25.7 kB / 0.9052 GB, free: 5.93 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/3.538, allocations: 226.6 kB / 0.9055 GB, free: 5.738 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.659e-05/3.538, allocations: 34.67 kB / 0.9055 GB, free: 5.707 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.394e-05/3.538, allocations: 55.61 kB / 0.9055 GB, free: 5.664 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001126/3.538, allocations: 343.9 kB / 0.9059 GB, free: 5.332 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/3.538, allocations: 46.44 kB / 0.9059 GB, free: 5.301 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/3.538, allocations: 164.5 kB / 0.9061 GB, free: 5.113 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002841/3.538, allocations: 209.4 kB / 0.9063 GB, free: 4.914 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/3.538, allocations: 4 kB / 0.9063 GB, free: 4.91 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005052/3.539, allocations: 270.5 kB / 0.9065 GB, free: 4.715 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/3.539, allocations: 13.27 kB / 0.9065 GB, free: 4.703 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/3.539, allocations: 4 kB / 0.9065 GB, free: 4.699 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009702/3.54, allocations: 106.7 kB / 0.9067 GB, free: 4.598 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/3.54, allocations: 40.14 kB / 0.9067 GB, free: 4.562 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004523/3.541, allocations: 0.5734 MB / 0.9072 GB, free: 3.984 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002005/3.541, allocations: 35.42 kB / 0.9073 GB, free: 3.953 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/3.541, allocations: 13.53 kB / 0.9073 GB, free: 3.945 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.0001641/3.541, allocations: 150 kB / 0.9074 GB, free: 3.812 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.08e-05/3.541, allocations: 31.72 kB / 0.9075 GB, free: 3.781 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005964/3.542, allocations: 170.4 kB / 0.9076 GB, free: 3.637 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/3.542, allocations: 1.203 kB / 0.9076 GB, free: 3.637 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/3.542, allocations: 0 / 0.9076 GB, free: 3.637 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/3.542, allocations: 8 kB / 0.9076 GB, free: 3.629 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002867/3.542, allocations: 306.9 kB / 0.9079 GB, free: 3.332 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/3.542, allocations: 0 / 0.9079 GB, free: 3.332 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.342e-05/3.542, allocations: 8 kB / 0.9079 GB, free: 3.324 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006688/3.543, allocations: 99.27 kB / 0.908 GB, free: 3.23 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/3.543, allocations: 4.609 kB / 0.908 GB, free: 3.227 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004037/3.543, allocations: 0.5609 MB / 0.9086 GB, free: 2.664 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/3.543, allocations: 4.031 kB / 0.9086 GB, free: 2.66 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005198/3.544, allocations: 171.7 kB / 0.9088 GB, free: 2.496 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 8.746e-05/3.544, allocations: 109.5 kB / 0.9089 GB, free: 2.375 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/3.544, allocations: 5.031 kB / 0.9089 GB, free: 2.375 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.064e-05/3.544, allocations: 0.625 kB / 0.9089 GB, free: 2.375 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.002e-05/3.544, allocations: 12.55 kB / 0.9089 GB, free: 2.363 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/3.544, allocations: 8.625 kB / 0.9089 GB, free: 2.355 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002142/3.544, allocations: 207.4 kB / 0.9091 GB, free: 2.188 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.6e-07/3.544, allocations: 0 / 0.9091 GB, free: 2.188 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.006652/3.551, allocations: 1.605 MB / 0.9106 GB, free: 0.6992 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.00982/3.561, allocations: 3.158 MB / 0.9137 GB, free: 13.91 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0004511/3.561, allocations: 131.5 kB / 0.9139 GB, free: 13.83 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/3.561, allocations: 4.938 kB / 0.9139 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001466/3.561, allocations: 40.5 kB / 0.9139 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/3.562, allocations: 72.06 kB / 0.914 GB, free: 13.74 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005267/3.567, allocations: 3.199 MB / 0.9171 GB, free: 10.68 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/3.567, allocations: 0.7597 MB / 0.9178 GB, free: 9.895 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001896/3.568, allocations: 44.11 kB / 0.9179 GB, free: 9.855 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/3.568, allocations: 100.2 kB / 0.918 GB, free: 9.82 MB / 0.7637 GB Notification: Performance of SimCode: time 6.91e-07/3.568, allocations: 0 / 0.918 GB, free: 9.82 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09593/3.664, allocations: 54.51 MB / 0.9712 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002279/3.664, allocations: 286.8 kB / 0.9715 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.474/8.138, allocations: 0 / 0.9715 GB, free: 3.105 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)