Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.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.TestRefP1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestRefP1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestRefP1",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.8195/0.8195, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.704e-05/1.697e-05, allocations: 4 kB / 204.9 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1472, allocations: 31.98 MB / 236.8 MB, free: 5.176 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.TestRefP1): time 1.583/1.73, allocations: 295.9 MB / 0.5203 GB, free: 11.97 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5348/2.265, allocations: 192.7 MB / 0.7085 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004671/2.266, allocations: 9.938 kB / 0.7085 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001513/2.266, allocations: 61.27 kB / 0.7085 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000551/2.266, allocations: 201.2 kB / 0.7087 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03109/2.297, allocations: 10.44 MB / 0.7189 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001223/2.299, allocations: 0.7977 MB / 0.7197 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004635/2.299, allocations: 418 kB / 0.7201 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003123/2.299, allocations: 264.3 kB / 0.7203 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002927/2.3, allocations: 320.9 kB / 0.7207 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.154e-05/2.3, allocations: 31.75 kB / 0.7207 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03299/2.333, allocations: 19.17 MB / 0.7394 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002571/2.333, allocations: 121.4 kB / 0.7395 GB, free: 3.262 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000483/2.334, allocations: 370.2 kB / 0.7399 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02567/2.359, allocations: 10.49 MB / 0.7501 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/2.359, allocations: 6.906 kB / 0.7501 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.094e-06/2.359, allocations: 0 / 0.7501 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.067e-05/2.359, allocations: 0 / 0.7501 GB, free: 15.3 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.005765/2.365, allocations: 2.073 MB / 0.7521 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/2.365, allocations: 8.625 kB / 0.7522 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001321/2.365, allocations: 128.4 kB / 0.7523 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/2.365, allocations: 89.91 kB / 0.7524 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004864/2.366, allocations: 421 kB / 0.7528 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.116e-05/2.366, allocations: 59.97 kB / 0.7528 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.713e-05/2.366, allocations: 78.06 kB / 0.7529 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/2.367, allocations: 0.7371 MB / 0.7536 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/2.367, allocations: 2.906 kB / 0.7536 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.955e-05/2.367, allocations: 34.38 kB / 0.7537 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/2.367, allocations: 17.78 kB / 0.7537 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008797/2.368, allocations: 0.5504 MB / 0.7542 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07611/2.444, allocations: 33.44 MB / 0.7869 GB, free: 1.758 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007299/2.445, allocations: 304.8 kB / 0.7872 GB, free: 1.547 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/2.445, allocations: 106.2 kB / 0.7873 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.684/3.129, allocations: 252.4 MB / 1.034 GB, free: 424.8 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/3.129, allocations: 45.77 kB / 1.034 GB, free: 424.7 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=27): time 1.903e-06/3.129, allocations: 3.719 kB / 1.034 GB, free: 424.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=27): time 0.004968/3.134, allocations: 1.252 MB / 1.035 GB, free: 423.6 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.361e-05/3.134, allocations: 53.47 kB / 1.035 GB, free: 423.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004517/3.135, allocations: 492.6 kB / 1.036 GB, free: 423.1 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/3.135, allocations: 29.64 kB / 1.036 GB, free: 423.1 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/3.135, allocations: 361.3 kB / 1.036 GB, free: 422.9 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.115e-05/3.135, allocations: 101.9 kB / 1.036 GB, free: 422.8 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.903e-05/3.135, allocations: 49.44 kB / 1.036 GB, free: 422.8 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 6.596e-05/3.135, allocations: 354.5 kB / 1.036 GB, free: 422.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/3.135, allocations: 99.52 kB / 1.036 GB, free: 422.4 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/3.136, allocations: 224.1 kB / 1.037 GB, free: 422.2 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004146/3.136, allocations: 332.2 kB / 1.037 GB, free: 421.9 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/3.136, allocations: 4 kB / 1.037 GB, free: 421.9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.002063/3.138, allocations: 0.712 MB / 1.038 GB, free: 421.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/3.138, allocations: 8 kB / 1.038 GB, free: 421.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/3.138, allocations: 4 kB / 1.038 GB, free: 421.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008855/3.139, allocations: 208.8 kB / 1.038 GB, free: 421.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/3.139, allocations: 59.22 kB / 1.038 GB, free: 421 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007245/3.14, allocations: 1.255 MB / 1.039 GB, free: 419.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/3.14, allocations: 62.3 kB / 1.039 GB, free: 419.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/3.14, allocations: 23.62 kB / 1.039 GB, free: 419.7 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 7 (source.C.ftype,pump.fluid,lumpedStraightPipe.fluid,sink.fluid,source.fluid1,refQ.C1.diff_on_2,lumpedStraightPipe.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,4), (2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001913/3.14, allocations: 183.2 kB / 1.039 GB, free: 419.6 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.083e-05/3.141, allocations: 54.34 kB / 1.04 GB, free: 419.5 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002048/3.143, allocations: 0.6339 MB / 1.04 GB, free: 419 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/3.143, allocations: 7.938 kB / 1.04 GB, free: 419 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/3.143, allocations: 0 / 1.04 GB, free: 419 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/3.143, allocations: 0 / 1.04 GB, free: 419 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004918/3.143, allocations: 0.533 MB / 1.041 GB, free: 418.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/3.143, allocations: 0 / 1.041 GB, free: 418.6 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-05/3.143, allocations: 23.98 kB / 1.041 GB, free: 418.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007753/3.144, allocations: 209 kB / 1.041 GB, free: 418.4 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/3.144, allocations: 7.5 kB / 1.041 GB, free: 418.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00066/3.145, allocations: 1.246 MB / 1.042 GB, free: 417.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/3.145, allocations: 4.031 kB / 1.042 GB, free: 417.1 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/3.147, allocations: 0.6701 MB / 1.043 GB, free: 416.5 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/3.147, allocations: 154.7 kB / 1.043 GB, free: 416.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.305e-05/3.147, allocations: 14.48 kB / 1.043 GB, free: 416.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/3.147, allocations: 7.938 kB / 1.043 GB, free: 416.4 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/3.147, allocations: 23.89 kB / 1.043 GB, free: 416.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/3.147, allocations: 7.938 kB / 1.043 GB, free: 416.3 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000275/3.147, allocations: 333.5 kB / 1.043 GB, free: 416.1 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/3.147, allocations: 0 / 1.043 GB, free: 416.1 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003828/3.151, allocations: 1.681 MB / 1.045 GB, free: 414.7 MB / 0.8106 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,4), (2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008449/3.16, allocations: 3.637 MB / 1.048 GB, free: 411.6 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007163/3.16, allocations: 302 kB / 1.049 GB, free: 411.4 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/3.16, allocations: 0 / 1.049 GB, free: 411.4 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002923/3.161, allocations: 151.7 kB / 1.049 GB, free: 411.3 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005997/3.161, allocations: 99.91 kB / 1.049 GB, free: 411.2 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009252/3.171, allocations: 5.561 MB / 1.054 GB, free: 406.1 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/3.171, allocations: 0.8798 MB / 1.055 GB, free: 405.2 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002405/3.171, allocations: 69.75 kB / 1.055 GB, free: 405.1 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/3.171, allocations: 214.9 kB / 1.056 GB, free: 405.1 MB / 0.8106 GB Notification: Performance of SimCode: time 6.42e-07/3.171, allocations: 0 / 1.056 GB, free: 405.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0753/3.247, allocations: 57.12 MB / 1.111 GB, free: 348.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001494/3.247, allocations: 285.3 kB / 1.112 GB, free: 348.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.553/7.8, allocations: 0 / 1.112 GB, free: 348.5 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestRefP1_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestRefP1.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestRefP1.pipe 2>&1)