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.7917/0.7917, allocations: 150.9 MB / 166 MB, free: 14.58 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000325/0.0003248, allocations: 15.97 kB / 204.1 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1659, allocations: 31.33 MB / 235.4 MB, free: 5.426 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.473/1.639, allocations: 293.7 MB / 0.5167 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1644/1.803, allocations: 188.3 MB / 0.7006 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/1.803, allocations: 7.938 kB / 0.7006 GB, free: 0.9258 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/InvSingularPressureLoss.mo:30:3-31:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/InvSingularPressureLoss.mo:32:3-33:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001024/1.803, allocations: 24.62 kB / 0.7007 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002252/1.804, allocations: 103.2 kB / 0.7008 GB, free: 0.8008 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2458/2.049, allocations: 8.633 MB / 0.7092 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003395/2.05, allocations: 366.8 kB / 0.7095 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001995/2.05, allocations: 189.5 kB / 0.7097 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/2.05, allocations: 141.5 kB / 0.7099 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/2.05, allocations: 158.5 kB / 0.71 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.089e-05/2.05, allocations: 25.56 kB / 0.71 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02501/2.075, allocations: 19.92 MB / 0.7295 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.56e-05/2.076, allocations: 65.09 kB / 0.7295 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000229/2.076, allocations: 173.3 kB / 0.7297 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01627/2.092, allocations: 9.861 MB / 0.7393 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/2.092, allocations: 0 / 0.7393 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.523e-06/2.092, allocations: 0 / 0.7393 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.071e-06/2.092, allocations: 5.406 kB / 0.7393 GB, free: 1.664 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.003247/2.095, allocations: 1.742 MB / 0.741 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/2.095, allocations: 8.281 kB / 0.7411 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.928e-05/2.095, allocations: 69.88 kB / 0.7411 GB, free: 496 kB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.916e-05/2.096, allocations: 43.19 kB / 0.7412 GB, free: 476 kB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002126/2.096, allocations: 292 kB / 0.7414 GB, free: 220 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/2.096, allocations: 28.03 kB / 0.7415 GB, free: 220 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.108e-05/2.096, allocations: 31.91 kB / 0.7415 GB, free: 220 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004553/2.096, allocations: 356.2 kB / 0.7418 GB, free: 76 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/2.096, allocations: 3.656 kB / 0.7418 GB, free: 76 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/2.096, allocations: 20.09 kB / 0.7419 GB, free: 72 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/2.096, allocations: 7.719 kB / 0.7419 GB, free: 72 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003963/2.097, allocations: 232.1 kB / 0.7421 GB, free: 36 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06137/2.158, allocations: 31.91 MB / 0.7733 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/2.158, allocations: 68.48 kB / 0.7733 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.441e-05/2.158, allocations: 31.55 kB / 0.7733 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1976/2.356, allocations: 118.3 MB / 0.8888 GB, free: 6.5 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/2.356, allocations: 35.81 kB / 0.8889 GB, free: 6.457 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.864e-06/2.356, allocations: 0 / 0.8889 GB, free: 6.457 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0003982/2.357, allocations: 119.9 kB / 0.889 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.618e-05/2.357, allocations: 55.39 kB / 0.889 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000308/2.357, allocations: 299 kB / 0.8893 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/2.357, allocations: 33.69 kB / 0.8894 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/2.357, allocations: 229.4 kB / 0.8896 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.841e-05/2.357, allocations: 19.47 kB / 0.8896 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.916e-05/2.357, allocations: 51.62 kB / 0.8896 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.865e-05/2.357, allocations: 332.9 kB / 0.89 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/2.357, allocations: 45.64 kB / 0.89 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/2.357, allocations: 143.3 kB / 0.8901 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/2.358, allocations: 197.8 kB / 0.8903 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/2.358, allocations: 0 / 0.8903 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003831/2.358, allocations: 227 kB / 0.8905 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/2.358, allocations: 8.469 kB / 0.8906 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/2.358, allocations: 13.34 kB / 0.8906 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/2.358, allocations: 5.203 kB / 0.8906 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006123/2.359, allocations: 110.9 kB / 0.8907 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/2.359, allocations: 10.89 kB / 0.8907 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001825/2.359, allocations: 43.22 kB / 0.8907 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/2.359, allocations: 19.3 kB / 0.8907 GB, free: 4.688 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.0001131/2.359, allocations: 142.4 kB / 0.8909 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.474e-05/2.359, allocations: 23.72 kB / 0.8909 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002555/2.359, allocations: 116.2 kB / 0.891 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/2.359, allocations: 0 / 0.891 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/2.36, allocations: 4 kB / 0.891 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/2.36, allocations: 0 / 0.891 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3301/2.69, allocations: 114.5 MB / 1.003 GB, free: 460.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/2.69, allocations: 0 / 1.003 GB, free: 460.5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.235e-05/2.69, allocations: 18.75 kB / 1.003 GB, free: 460.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/2.69, allocations: 0.5625 kB / 1.003 GB, free: 460.5 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/2.69, allocations: 2.719 kB / 1.003 GB, free: 460.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/2.69, allocations: 3.75 kB / 1.003 GB, free: 460.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/2.69, allocations: 0 / 1.003 GB, free: 460.5 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000241/2.69, allocations: 149.9 kB / 1.003 GB, free: 460.4 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.875e-05/2.69, allocations: 109.2 kB / 1.003 GB, free: 460.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.681e-05/2.69, allocations: 4.062 kB / 1.003 GB, free: 460.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.574e-05/2.69, allocations: 4.656 kB / 1.003 GB, free: 460.3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.963e-05/2.69, allocations: 5.875 kB / 1.003 GB, free: 460.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/2.69, allocations: 8.797 kB / 1.003 GB, free: 460.3 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001756/2.69, allocations: 224.1 kB / 1.003 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/2.69, allocations: 0 / 1.003 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.00285/2.693, allocations: 1.434 MB / 1.005 GB, free: 460.2 MB / 0.8262 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.006244/2.7, allocations: 2.864 MB / 1.008 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003367/2.7, allocations: 118.7 kB / 1.008 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/2.7, allocations: 0 / 1.008 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.655e-05/2.7, allocations: 26.41 kB / 1.008 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/2.7, allocations: 83.19 kB / 1.008 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00358/2.704, allocations: 3.139 MB / 1.011 GB, free: 457.6 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/2.704, allocations: 0.7571 MB / 1.012 GB, free: 456.9 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001628/2.704, allocations: 50.52 kB / 1.012 GB, free: 456.9 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.75e-05/2.704, allocations: 99.5 kB / 1.012 GB, free: 456.9 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/2.704, allocations: 0 / 1.012 GB, free: 456.9 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.99/4.695, allocations: 50.65 MB / 1.061 GB, free: 421 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/4.695, allocations: 268 kB / 1.061 GB, free: 420.6 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.205/8.9, allocations: 1.875 kB / 1.061 GB, free: 420.6 MB / 0.8262 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)