Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.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.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend",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.949/0.949, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.109e-05/2.113e-05, allocations: 4 kB / 204.9 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2313, allocations: 31.98 MB / 236.8 MB, free: 5.426 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.TestBend): time 1.987/2.218, allocations: 294.8 MB / 0.5192 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.8016/3.02, allocations: 189.3 MB / 0.704 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004364/3.02, allocations: 7.938 kB / 0.704 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005118/3.021, allocations: 189.1 kB / 0.7042 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006032/3.021, allocations: 262.4 kB / 0.7044 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03743/3.059, allocations: 9.663 MB / 0.7138 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001107/3.06, allocations: 0.5065 MB / 0.7143 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003807/3.06, allocations: 238.1 kB / 0.7146 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003236/3.061, allocations: 212.1 kB / 0.7148 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003655/3.061, allocations: 318.2 kB / 0.7151 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.101e-05/3.061, allocations: 18.94 kB / 0.7151 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04957/3.111, allocations: 21.19 MB / 0.7358 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003905/3.111, allocations: 178.1 kB / 0.736 GB, free: 3.113 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004784/3.112, allocations: 317.2 kB / 0.7363 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.04035/3.152, allocations: 10.86 MB / 0.7469 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.872e-06/3.152, allocations: 0 / 0.7469 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.847e-06/3.152, allocations: 0 / 0.7469 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.103e-05/3.152, allocations: 0 / 0.7469 GB, free: 15.22 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.008352/3.16, allocations: 2.107 MB / 0.7489 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.08e-05/3.16, allocations: 12.22 kB / 0.7489 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/3.161, allocations: 77.97 kB / 0.749 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/3.161, allocations: 80.16 kB / 0.7491 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006912/3.161, allocations: 0.5399 MB / 0.7496 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/3.161, allocations: 32.59 kB / 0.7496 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.237e-05/3.162, allocations: 37.59 kB / 0.7497 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007327/3.162, allocations: 497 kB / 0.7502 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/3.162, allocations: 0 / 0.7502 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.761e-05/3.162, allocations: 18.31 kB / 0.7502 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/3.162, allocations: 8.656 kB / 0.7502 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005766/3.163, allocations: 420.4 kB / 0.7506 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01011/3.173, allocations: 6.701 MB / 0.7571 GB, free: 7.758 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005556/3.174, allocations: 132 kB / 0.7572 GB, free: 7.711 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.568e-05/3.174, allocations: 43.28 kB / 0.7573 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3309/3.505, allocations: 156 MB / 0.9097 GB, free: 4.117 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/3.505, allocations: 38.56 kB / 0.9097 GB, free: 4.07 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 3.637e-06/3.505, allocations: 4 kB / 0.9097 GB, free: 4.066 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002363/3.507, allocations: 481.6 kB / 0.9102 GB, free: 3.621 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/3.507, allocations: 102.8 kB / 0.9103 GB, free: 3.496 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001659/3.509, allocations: 1.072 MB / 0.9113 GB, free: 2.68 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/3.509, allocations: 31.12 kB / 0.9113 GB, free: 2.648 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003117/3.509, allocations: 383.5 kB / 0.9117 GB, free: 2.402 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.147e-05/3.509, allocations: 49.89 kB / 0.9117 GB, free: 2.363 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-05/3.509, allocations: 32.7 kB / 0.9118 GB, free: 2.336 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001563/3.509, allocations: 380.6 kB / 0.9121 GB, free: 1.98 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000185/3.51, allocations: 136.7 kB / 0.9123 GB, free: 1.883 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002706/3.51, allocations: 260.3 kB / 0.9125 GB, free: 1.613 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003763/3.51, allocations: 315.6 kB / 0.9128 GB, free: 1.336 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/3.51, allocations: 4 kB / 0.9128 GB, free: 1.332 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001483/3.512, allocations: 0.5506 MB / 0.9134 GB, free: 0.8984 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/3.512, allocations: 8 kB / 0.9134 GB, free: 0.8906 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/3.512, allocations: 9.734 kB / 0.9134 GB, free: 0.8828 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001615/3.514, allocations: 222.8 kB / 0.9136 GB, free: 0.6875 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/3.514, allocations: 45.8 kB / 0.9136 GB, free: 0.6484 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005875/3.514, allocations: 0.6295 MB / 0.9143 GB, free: 40 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003524/3.515, allocations: 43.08 kB / 0.9143 GB, free: 0 / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.675e-05/3.515, allocations: 12.25 kB / 0.9143 GB, free: 15.98 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,SinkP1.fluid,Bend.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Bend.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000309/3.515, allocations: 274.8 kB / 0.9146 GB, free: 15.77 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/3.515, allocations: 63.16 kB / 0.9146 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006926/3.516, allocations: 264.7 kB / 0.9149 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/3.516, allocations: 0 / 0.9149 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/3.516, allocations: 3.938 kB / 0.9149 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.361e-06/3.516, allocations: 3.75 kB / 0.9149 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001914/3.518, allocations: 0.8423 MB / 0.9157 GB, free: 14.75 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/3.518, allocations: 1.969 kB / 0.9157 GB, free: 14.75 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.169e-05/3.518, allocations: 4 kB / 0.9157 GB, free: 14.74 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001269/3.519, allocations: 198.5 kB / 0.9159 GB, free: 14.57 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.581e-05/3.519, allocations: 7.938 kB / 0.9159 GB, free: 14.56 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005111/3.52, allocations: 0.6256 MB / 0.9165 GB, free: 13.95 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/3.52, allocations: 2.906 kB / 0.9165 GB, free: 13.95 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/3.521, allocations: 405.8 kB / 0.9169 GB, free: 13.58 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002285/3.521, allocations: 169.9 kB / 0.9171 GB, free: 13.41 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.032e-05/3.521, allocations: 9.234 kB / 0.9171 GB, free: 13.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/3.522, allocations: 9.875 kB / 0.9171 GB, free: 13.39 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/3.522, allocations: 9.234 kB / 0.9171 GB, free: 13.39 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/3.522, allocations: 4.625 kB / 0.9171 GB, free: 13.38 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001109/3.523, allocations: 0.7836 MB / 0.9179 GB, free: 12.81 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.6e-07/3.523, allocations: 0 / 0.9179 GB, free: 12.81 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.005636/3.528, allocations: 1.642 MB / 0.9195 GB, free: 11.28 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 2 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01098/3.539, allocations: 3.317 MB / 0.9227 GB, free: 8.328 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006466/3.54, allocations: 244.6 kB / 0.9229 GB, free: 8.16 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/3.54, allocations: 0 / 0.9229 GB, free: 8.16 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001836/3.54, allocations: 53.94 kB / 0.923 GB, free: 8.121 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007637/3.541, allocations: 95.41 kB / 0.9231 GB, free: 8.062 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01315/3.554, allocations: 6.64 MB / 0.9296 GB, free: 2.191 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005936/3.555, allocations: 0.9309 MB / 0.9305 GB, free: 1.266 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002462/3.555, allocations: 72.2 kB / 0.9306 GB, free: 1.191 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/3.555, allocations: 218.4 kB / 0.9308 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of SimCode: time 7.72e-07/3.556, allocations: 0 / 0.9308 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3412/3.897, allocations: 59.08 MB / 0.9885 GB, free: 458.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002247/3.897, allocations: 271.7 kB / 0.9887 GB, free: 458.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.457/8.354, allocations: 3.062 kB / 0.9887 GB, free: 458.2 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe 2>&1)