Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_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.7743/0.7743, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.735e-05/1.736e-05, allocations: 4 kB / 204.9 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1403, allocations: 31.98 MB / 236.8 MB, free: 5.391 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.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.467/1.608, allocations: 294.4 MB / 0.5188 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03772/1.645, allocations: 36.95 MB / 0.5549 GB, free: 8.586 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/1.646, allocations: 0 / 0.5549 GB, free: 8.586 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002364/1.646, allocations: 75.62 kB / 0.5549 GB, free: 8.512 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001201/1.646, allocations: 63.52 kB / 0.555 GB, free: 8.449 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01677/1.663, allocations: 7.303 MB / 0.5621 GB, free: 1.145 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003257/1.663, allocations: 262.8 kB / 0.5624 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001567/1.663, allocations: 85.64 kB / 0.5625 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/1.663, allocations: 107.4 kB / 0.5626 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.933e-05/1.663, allocations: 79.59 kB / 0.5626 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.534e-05/1.663, allocations: 4 kB / 0.5626 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02549/1.689, allocations: 17.8 MB / 0.58 GB, free: 14.79 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.744e-05/1.689, allocations: 27.84 kB / 0.5801 GB, free: 14.76 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001316/1.689, allocations: 125.1 kB / 0.5802 GB, free: 14.63 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01665/1.706, allocations: 8.308 MB / 0.5883 GB, free: 6.305 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/1.706, allocations: 0 / 0.5883 GB, free: 6.305 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.936e-06/1.706, allocations: 0 / 0.5883 GB, free: 6.305 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/1.706, allocations: 0 / 0.5883 GB, free: 6.305 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.003771/1.71, allocations: 1.353 MB / 0.5896 GB, free: 4.898 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/1.71, allocations: 20.02 kB / 0.5896 GB, free: 4.879 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.303e-05/1.71, allocations: 54.55 kB / 0.5897 GB, free: 4.816 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.567e-05/1.71, allocations: 27.56 kB / 0.5897 GB, free: 4.789 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/1.71, allocations: 219.3 kB / 0.5899 GB, free: 4.535 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/1.71, allocations: 20.36 kB / 0.5899 GB, free: 4.516 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.618e-05/1.71, allocations: 16 kB / 0.59 GB, free: 4.5 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004053/1.711, allocations: 264.1 kB / 0.5902 GB, free: 4.223 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/1.711, allocations: 0 / 0.5902 GB, free: 4.223 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/1.711, allocations: 8 kB / 0.5902 GB, free: 4.215 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/1.711, allocations: 15.88 kB / 0.5902 GB, free: 4.199 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002708/1.711, allocations: 148.8 kB / 0.5904 GB, free: 4.055 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01815/1.729, allocations: 9.554 MB / 0.5997 GB, free: 9.527 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/1.729, allocations: 89.31 kB / 0.5998 GB, free: 9.434 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/1.729, allocations: 64.83 kB / 0.5998 GB, free: 9.367 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1427/1.872, allocations: 77.93 MB / 0.676 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/1.872, allocations: 34.56 kB / 0.676 GB, free: 2.613 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.214e-06/1.872, allocations: 0 / 0.676 GB, free: 2.613 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0004909/1.873, allocations: 202.3 kB / 0.6762 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/1.873, allocations: 51.41 kB / 0.6762 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/1.873, allocations: 244.6 kB / 0.6765 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/1.873, allocations: 25.7 kB / 0.6765 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.755e-05/1.873, allocations: 140.2 kB / 0.6766 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.481e-05/1.873, allocations: 74.92 kB / 0.6767 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.189e-05/1.873, allocations: 21.7 kB / 0.6767 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.938e-05/1.873, allocations: 334.8 kB / 0.677 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/1.873, allocations: 51.97 kB / 0.6771 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/1.873, allocations: 97.27 kB / 0.6772 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002482/1.874, allocations: 165.9 kB / 0.6773 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/1.874, allocations: 0 / 0.6773 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003094/1.874, allocations: 196.8 kB / 0.6775 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/1.874, allocations: 9.031 kB / 0.6775 GB, free: 0.9492 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/1.874, allocations: 4 kB / 0.6775 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/1.874, allocations: 0 / 0.6775 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006905/1.875, allocations: 132 kB / 0.6777 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/1.875, allocations: 0 / 0.6777 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/1.875, allocations: 35.67 kB / 0.6777 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/1.875, allocations: 4 kB / 0.6777 GB, free: 0.7773 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 9.818e-05/1.875, allocations: 141.7 kB / 0.6778 GB, free: 0.6289 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.725e-05/1.875, allocations: 19.72 kB / 0.6779 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004046/1.875, allocations: 328.7 kB / 0.6782 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002201/1.876, allocations: 163.8 kB / 0.6783 GB, free: 92 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/1.876, allocations: 3.938 kB / 0.6783 GB, free: 88 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/1.876, allocations: 0 / 0.6783 GB, free: 88 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007396/1.876, allocations: 0.6179 MB / 0.6789 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/1.876, allocations: 0 / 0.6789 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005531/1.877, allocations: 127.9 kB / 0.6791 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/1.877, allocations: 3.984 kB / 0.6791 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/1.877, allocations: 7.938 kB / 0.6791 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/1.877, allocations: 4 kB / 0.6791 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/1.877, allocations: 0 / 0.6791 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000347/1.877, allocations: 298.4 kB / 0.6794 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.625e-05/1.877, allocations: 128.7 kB / 0.6795 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/1.878, allocations: 0 / 0.6795 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/1.878, allocations: 11.92 kB / 0.6795 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.278e-05/1.878, allocations: 12 kB / 0.6795 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-06/1.878, allocations: 3.938 kB / 0.6795 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001665/1.878, allocations: 210 kB / 0.6797 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/1.878, allocations: 0 / 0.6797 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002575/1.88, allocations: 1.171 MB / 0.6808 GB, free: 13.42 MB / 0.5762 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.004905/1.885, allocations: 2.482 MB / 0.6833 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004172/1.886, allocations: 198.2 kB / 0.6835 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/1.886, allocations: 3.938 kB / 0.6835 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001429/1.886, allocations: 76.22 kB / 0.6835 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006742/1.887, allocations: 97.62 kB / 0.6836 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003592/1.89, allocations: 2.916 MB / 0.6865 GB, free: 7.516 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002681/1.891, allocations: 0.748 MB / 0.6872 GB, free: 6.742 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001099/1.891, allocations: 29.92 kB / 0.6872 GB, free: 6.715 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.934e-05/1.891, allocations: 91.34 kB / 0.6873 GB, free: 6.625 MB / 0.5762 GB Notification: Performance of SimCode: time 3.3e-07/1.891, allocations: 0 / 0.6873 GB, free: 6.625 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.224/2.115, allocations: 45.13 MB / 0.7314 GB, free: 210.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001288/2.115, allocations: 217.8 kB / 0.7316 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.733/5.847, allocations: 0 / 0.7316 GB, free: 209.9 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)