Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.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.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",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.7374/0.7374, allocations: 150.8 MB / 166.1 MB, free: 15.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.664e-05/1.665e-05, allocations: 4 kB / 204.9 MB, free: 10.09 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1375, allocations: 31.99 MB / 236.8 MB, free: 5.375 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.TestInvSingularPressureLoss): time 1.392/1.53, allocations: 294.6 MB / 0.519 GB, free: 13.29 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1731/1.703, allocations: 186.1 MB / 0.7008 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000186/1.703, allocations: 7.938 kB / 0.7008 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 6.269e-05/1.703, allocations: 27.77 kB / 0.7008 GB, free: 2.738 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002655/1.703, allocations: 99.22 kB / 0.7009 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2762/1.979, allocations: 8.805 MB / 0.7095 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000386/1.98, allocations: 369.1 kB / 0.7099 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002157/1.98, allocations: 166.3 kB / 0.71 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/1.98, allocations: 117.3 kB / 0.7101 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/1.98, allocations: 142.6 kB / 0.7103 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/1.98, allocations: 13.5 kB / 0.7103 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02691/2.007, allocations: 20 MB / 0.7298 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.129e-05/2.007, allocations: 52.34 kB / 0.7299 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002205/2.008, allocations: 181.1 kB / 0.73 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01816/2.026, allocations: 9.758 MB / 0.7396 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/2.026, allocations: 0 / 0.7396 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.493e-06/2.026, allocations: 2.25 kB / 0.7396 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.582e-06/2.026, allocations: 0 / 0.7396 GB, free: 2.789 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.003294/2.029, allocations: 1.677 MB / 0.7412 GB, free: 1.66 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/2.029, allocations: 11.67 kB / 0.7412 GB, free: 1.66 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.293e-05/2.029, allocations: 71.97 kB / 0.7413 GB, free: 1.613 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.193e-05/2.029, allocations: 43.03 kB / 0.7413 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/2.03, allocations: 285.6 kB / 0.7416 GB, free: 1.344 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/2.03, allocations: 34.12 kB / 0.7416 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.297e-05/2.03, allocations: 30.28 kB / 0.7417 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004465/2.03, allocations: 362.4 kB / 0.742 GB, free: 1.199 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/2.03, allocations: 0 / 0.742 GB, free: 1.199 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/2.03, allocations: 17.94 kB / 0.742 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/2.03, allocations: 9.531 kB / 0.742 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000379/2.031, allocations: 237.6 kB / 0.7423 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06491/2.096, allocations: 32.19 MB / 0.7737 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/2.096, allocations: 76.52 kB / 0.7738 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.818e-05/2.096, allocations: 32.3 kB / 0.7738 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2097/2.306, allocations: 119.3 MB / 0.8903 GB, free: 8.375 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/2.306, allocations: 41.47 kB / 0.8903 GB, free: 8.328 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.743e-06/2.306, allocations: 0 / 0.8903 GB, free: 8.328 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0003847/2.306, allocations: 123.7 kB / 0.8904 GB, free: 8.219 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/2.306, allocations: 51.41 kB / 0.8905 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/2.306, allocations: 310.1 kB / 0.8908 GB, free: 7.906 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/2.306, allocations: 27.45 kB / 0.8908 GB, free: 7.875 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/2.306, allocations: 230.8 kB / 0.891 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/2.306, allocations: 22.61 kB / 0.891 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.483e-05/2.307, allocations: 29.08 kB / 0.891 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.082e-05/2.307, allocations: 326.2 kB / 0.8914 GB, free: 7.324 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/2.307, allocations: 50.72 kB / 0.8914 GB, free: 7.289 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/2.307, allocations: 150.8 kB / 0.8916 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/2.307, allocations: 203.8 kB / 0.8917 GB, free: 6.918 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/2.307, allocations: 0 / 0.8917 GB, free: 6.918 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000375/2.308, allocations: 226.6 kB / 0.892 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/2.308, allocations: 8 kB / 0.892 GB, free: 6.738 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/2.308, allocations: 8.406 kB / 0.892 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/2.308, allocations: 10.91 kB / 0.892 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006707/2.308, allocations: 146.5 kB / 0.8921 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/2.308, allocations: 9.969 kB / 0.8921 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/2.309, allocations: 35.36 kB / 0.8922 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/2.309, allocations: 12.25 kB / 0.8922 GB, free: 6.535 MB / 0.7325 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 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000122/2.309, allocations: 150.1 kB / 0.8923 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.867e-05/2.309, allocations: 23.7 kB / 0.8923 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002632/2.309, allocations: 122.2 kB / 0.8925 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/2.309, allocations: 7.984 kB / 0.8925 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/2.309, allocations: 2.906 kB / 0.8925 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/2.309, allocations: 0 / 0.8925 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3499/2.659, allocations: 115.5 MB / 1.005 GB, free: 437.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/2.659, allocations: 0 / 1.005 GB, free: 437.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.58e-05/2.659, allocations: 18.61 kB / 1.005 GB, free: 437.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/2.659, allocations: 1.906 kB / 1.005 GB, free: 437.7 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/2.659, allocations: 4.453 kB / 1.005 GB, free: 437.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/2.659, allocations: 3.188 kB / 1.005 GB, free: 437.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/2.659, allocations: 2.5 kB / 1.005 GB, free: 437.7 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002522/2.659, allocations: 155.7 kB / 1.005 GB, free: 437.6 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.28e-05/2.659, allocations: 116.1 kB / 1.006 GB, free: 437.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.229e-05/2.659, allocations: 0 / 1.006 GB, free: 437.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.783e-05/2.66, allocations: 13.23 kB / 1.006 GB, free: 437.5 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/2.66, allocations: 3.625 kB / 1.006 GB, free: 437.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/2.66, allocations: 5.562 kB / 1.006 GB, free: 437.5 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001743/2.66, allocations: 219.5 kB / 1.006 GB, free: 437.4 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/2.66, allocations: 0 / 1.006 GB, free: 437.4 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00275/2.663, allocations: 1.439 MB / 1.007 GB, free: 437.4 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005602/2.668, allocations: 2.843 MB / 1.01 GB, free: 436.6 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003373/2.668, allocations: 125.7 kB / 1.01 GB, free: 436.6 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/2.668, allocations: 0 / 1.01 GB, free: 436.6 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.633e-05/2.669, allocations: 32.61 kB / 1.01 GB, free: 436.6 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/2.669, allocations: 66.09 kB / 1.01 GB, free: 436.6 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003128/2.672, allocations: 3.177 MB / 1.013 GB, free: 434.7 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/2.672, allocations: 0.7602 MB / 1.014 GB, free: 434 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001527/2.672, allocations: 45.41 kB / 1.014 GB, free: 434 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.013e-05/2.673, allocations: 98.84 kB / 1.014 GB, free: 434 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/2.673, allocations: 0 / 1.014 GB, free: 434 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.785/5.458, allocations: 49.55 MB / 1.063 GB, free: 392.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001697/5.458, allocations: 267.3 kB / 1.063 GB, free: 392.3 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.678/9.136, allocations: 5.031 kB / 1.063 GB, free: 392.3 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)