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: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8497/0.8497, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.147e-05/2.173e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.1736, allocations: 31.97 MB / 236.8 MB, free: 5.434 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.651/1.825, allocations: 293.6 MB / 0.518 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.21/2.035, allocations: 186.2 MB / 0.6998 GB, free: 2.898 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002672/2.035, allocations: 7.938 kB / 0.6998 GB, free: 2.891 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 8.154e-05/2.035, allocations: 23.78 kB / 0.6998 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003026/2.036, allocations: 99.22 kB / 0.6999 GB, free: 2.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3792/2.415, allocations: 8.805 MB / 0.7085 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000577/2.416, allocations: 369 kB / 0.7088 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000287/2.416, allocations: 160.8 kB / 0.709 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002185/2.416, allocations: 120.4 kB / 0.7091 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/2.416, allocations: 138.7 kB / 0.7092 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.256e-05/2.416, allocations: 15.62 kB / 0.7092 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03721/2.454, allocations: 20 MB / 0.7288 GB, free: 5.266 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001347/2.454, allocations: 49.45 kB / 0.7288 GB, free: 5.266 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003168/2.454, allocations: 179.7 kB / 0.729 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02963/2.484, allocations: 9.751 MB / 0.7385 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/2.484, allocations: 0 / 0.7385 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.334e-06/2.484, allocations: 5.625 kB / 0.7385 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.235e-06/2.484, allocations: 1.906 kB / 0.7385 GB, free: 2.75 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.00536/2.489, allocations: 1.678 MB / 0.7402 GB, free: 1.621 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/2.489, allocations: 9.719 kB / 0.7402 GB, free: 1.621 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.077e-05/2.489, allocations: 46.75 kB / 0.7402 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/2.49, allocations: 286.2 kB / 0.7405 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.143e-05/2.49, allocations: 27.06 kB / 0.7405 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.456e-05/2.49, allocations: 34.16 kB / 0.7406 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005381/2.49, allocations: 361.6 kB / 0.7409 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/2.49, allocations: 2.906 kB / 0.7409 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/2.49, allocations: 16.38 kB / 0.7409 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/2.49, allocations: 13.34 kB / 0.7409 GB, free: 1.203 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004468/2.491, allocations: 228 kB / 0.7411 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07372/2.565, allocations: 32.2 MB / 0.7726 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/2.565, allocations: 75.16 kB / 0.7727 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.037e-05/2.565, allocations: 31.55 kB / 0.7727 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2427/2.808, allocations: 119.3 MB / 0.8891 GB, free: 8.414 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/2.808, allocations: 38.23 kB / 0.8892 GB, free: 8.371 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 2.295e-06/2.808, allocations: 4 kB / 0.8892 GB, free: 8.367 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0004701/2.808, allocations: 118.8 kB / 0.8893 GB, free: 8.262 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/2.808, allocations: 51.41 kB / 0.8894 GB, free: 8.199 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003421/2.809, allocations: 310 kB / 0.8896 GB, free: 7.949 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.666e-05/2.809, allocations: 25.7 kB / 0.8897 GB, free: 7.918 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000139/2.809, allocations: 234.2 kB / 0.8899 GB, free: 7.73 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/2.809, allocations: 19.38 kB / 0.8899 GB, free: 7.715 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.742e-05/2.809, allocations: 29.08 kB / 0.8899 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001158/2.809, allocations: 337.9 kB / 0.8903 GB, free: 7.359 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/2.809, allocations: 45.88 kB / 0.8903 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/2.809, allocations: 139.9 kB / 0.8904 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003013/2.81, allocations: 201.1 kB / 0.8906 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/2.81, allocations: 4 kB / 0.8906 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004251/2.81, allocations: 233.4 kB / 0.8909 GB, free: 6.789 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/2.81, allocations: 5.406 kB / 0.8909 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/2.81, allocations: 4 kB / 0.8909 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/2.81, allocations: 7.938 kB / 0.8909 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007545/2.811, allocations: 158.9 kB / 0.891 GB, free: 6.625 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/2.811, allocations: 6.906 kB / 0.891 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/2.811, allocations: 47.2 kB / 0.8911 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/2.811, allocations: 8 kB / 0.8911 GB, free: 6.57 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.0001554/2.811, allocations: 147.2 kB / 0.8912 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.805e-05/2.811, allocations: 23.72 kB / 0.8912 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002997/2.812, allocations: 121.2 kB / 0.8914 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/2.812, allocations: 0 / 0.8914 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/2.812, allocations: 256 / 0.8914 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/2.812, allocations: 0 / 0.8914 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4319/3.244, allocations: 115.5 MB / 1.004 GB, free: 438 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/3.244, allocations: 0 / 1.004 GB, free: 438 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.166e-05/3.244, allocations: 22.12 kB / 1.004 GB, free: 438 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.849e-06/3.244, allocations: 7.688 kB / 1.004 GB, free: 438 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/3.244, allocations: 0 / 1.004 GB, free: 438 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/3.244, allocations: 0 / 1.004 GB, free: 438 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/3.244, allocations: 4.578 kB / 1.004 GB, free: 438 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002812/3.244, allocations: 155.9 kB / 1.004 GB, free: 437.9 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 9.088e-05/3.244, allocations: 118.8 kB / 1.004 GB, free: 437.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.342e-05/3.244, allocations: 7.828 kB / 1.004 GB, free: 437.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/3.244, allocations: 9.516 kB / 1.004 GB, free: 437.8 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.516e-05/3.244, allocations: 5.016 kB / 1.004 GB, free: 437.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/3.244, allocations: 3.438 kB / 1.004 GB, free: 437.8 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001993/3.245, allocations: 219.8 kB / 1.005 GB, free: 437.7 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.51e-07/3.245, allocations: 0 / 1.005 GB, free: 437.7 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004074/3.249, allocations: 1.439 MB / 1.006 GB, free: 437.7 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.006572/3.255, allocations: 2.239 MB / 1.008 GB, free: 437.4 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005053/3.256, allocations: 135.8 kB / 1.008 GB, free: 437.4 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/3.256, allocations: 0 / 1.008 GB, free: 437.4 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.16e-05/3.256, allocations: 29.48 kB / 1.008 GB, free: 437.4 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004928/3.256, allocations: 69.94 kB / 1.009 GB, free: 437.4 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000784/3.257, allocations: 0.5565 MB / 1.009 GB, free: 437 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001683/3.257, allocations: 0.7599 MB / 1.01 GB, free: 436.3 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001628/3.258, allocations: 45.02 kB / 1.01 GB, free: 436.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.929e-05/3.258, allocations: 28.41 kB / 1.01 GB, free: 436.3 MB / 0.8106 GB Notification: Performance of SimCode: time 1.643e-06/3.258, allocations: 0 / 1.01 GB, free: 436.3 MB / 0.8106 GB Notification: Performance of Templates: time 0.04917/3.307, allocations: 44.71 MB / 1.054 GB, free: 400.4 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile Environment - environmentSimulation: (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 & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) Environment - environmentSimulation: