Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.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.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSingularPressureLoss",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.7451/0.7451, allocations: 150.9 MB / 166 MB, free: 14.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003056/0.0003055, allocations: 15.98 kB / 204.1 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1475, allocations: 31.33 MB / 235.4 MB, free: 5.445 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.TestSingularPressureLoss): time 1.476/1.624, allocations: 293.6 MB / 0.5167 GB, free: 13.69 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1765/1.801, allocations: 188.3 MB / 0.7006 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001857/1.801, allocations: 7.938 kB / 0.7006 GB, free: 0.9766 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59: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/SingularPressureLoss.mo:27:3-28: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/SingularPressureLoss.mo:29:3-30: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.0001128/1.801, allocations: 28.48 kB / 0.7006 GB, free: 0.9492 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002457/1.801, allocations: 99.22 kB / 0.7007 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3104/2.111, allocations: 8.626 MB / 0.7091 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003705/2.112, allocations: 356.3 kB / 0.7095 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002108/2.112, allocations: 176.2 kB / 0.7096 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/2.112, allocations: 135.3 kB / 0.7098 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/2.112, allocations: 153.4 kB / 0.7099 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.817e-05/2.112, allocations: 23.84 kB / 0.7099 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02607/2.138, allocations: 19.91 MB / 0.7294 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001241/2.139, allocations: 65.44 kB / 0.7295 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002364/2.139, allocations: 163.2 kB / 0.7296 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01701/2.156, allocations: 9.854 MB / 0.7392 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/2.156, allocations: 0 / 0.7392 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of FrontEnd: time 7.71e-07/2.156, allocations: 0 / 0.7392 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.711e-06/2.156, allocations: 0 / 0.7392 GB, free: 1.809 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.003122/2.159, allocations: 1.732 MB / 0.7409 GB, free: 0.6836 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/2.159, allocations: 11.06 kB / 0.7409 GB, free: 0.6836 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.753e-05/2.159, allocations: 73.91 kB / 0.741 GB, free: 0.6328 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.589e-05/2.159, allocations: 37.94 kB / 0.741 GB, free: 0.6133 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/2.159, allocations: 285.6 kB / 0.7413 GB, free: 376 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/2.159, allocations: 28.72 kB / 0.7413 GB, free: 376 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.075e-05/2.16, allocations: 33.58 kB / 0.7414 GB, free: 376 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003965/2.16, allocations: 344.4 kB / 0.7417 GB, free: 236 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/2.16, allocations: 0.9375 kB / 0.7417 GB, free: 236 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/2.16, allocations: 19.59 kB / 0.7417 GB, free: 232 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/2.16, allocations: 8.375 kB / 0.7417 GB, free: 232 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003076/2.16, allocations: 214.8 kB / 0.7419 GB, free: 204 kB / 0.5762 GB 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.00673/2.167, allocations: 6.091 MB / 0.7479 GB, free: 11 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001132/2.167, allocations: 61.91 kB / 0.7479 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.595e-05/2.167, allocations: 17.17 kB / 0.748 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1243/2.292, allocations: 70.92 MB / 0.8172 GB, free: 6.703 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/2.292, allocations: 30.56 kB / 0.8172 GB, free: 6.664 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 1.743e-06/2.292, allocations: 0 / 0.8172 GB, free: 6.664 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0006178/2.292, allocations: 237.2 kB / 0.8175 GB, free: 6.43 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.895e-05/2.292, allocations: 51.41 kB / 0.8175 GB, free: 6.367 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/2.293, allocations: 271.3 kB / 0.8178 GB, free: 6.141 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/2.293, allocations: 29.33 kB / 0.8178 GB, free: 6.109 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000118/2.293, allocations: 228.1 kB / 0.818 GB, free: 5.918 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/2.293, allocations: 20.7 kB / 0.818 GB, free: 5.902 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.001e-05/2.293, allocations: 55.53 kB / 0.8181 GB, free: 5.855 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.836e-05/2.293, allocations: 336.9 kB / 0.8184 GB, free: 5.527 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.183e-05/2.293, allocations: 38.78 kB / 0.8185 GB, free: 5.5 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/2.293, allocations: 138.8 kB / 0.8186 GB, free: 5.336 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/2.293, allocations: 185.1 kB / 0.8188 GB, free: 5.152 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/2.293, allocations: 0 / 0.8188 GB, free: 5.152 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004157/2.294, allocations: 243.6 kB / 0.819 GB, free: 4.969 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/2.294, allocations: 12.03 kB / 0.819 GB, free: 4.957 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/2.294, allocations: 5.594 kB / 0.819 GB, free: 4.953 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007741/2.295, allocations: 120 kB / 0.8191 GB, free: 4.84 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/2.295, allocations: 36.08 kB / 0.8192 GB, free: 4.809 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003731/2.295, allocations: 0.5588 MB / 0.8197 GB, free: 4.246 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001766/2.295, allocations: 38.83 kB / 0.8197 GB, free: 4.211 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/2.295, allocations: 8 kB / 0.8197 GB, free: 4.203 MB / 0.6544 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 (singularPressureLoss.fluid,SourceP1.C.ftype,PuitsP1.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,singularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001277/2.295, allocations: 151.7 kB / 0.8199 GB, free: 4.07 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.404e-05/2.295, allocations: 23.81 kB / 0.8199 GB, free: 4.047 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003011/2.296, allocations: 128 kB / 0.82 GB, free: 3.934 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/2.296, allocations: 4 kB / 0.82 GB, free: 3.93 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/2.296, allocations: 4 kB / 0.82 GB, free: 3.926 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/2.296, allocations: 3.984 kB / 0.82 GB, free: 3.922 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002417/2.296, allocations: 287.9 kB / 0.8203 GB, free: 3.637 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/2.296, allocations: 0 / 0.8203 GB, free: 3.637 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.39e-05/2.296, allocations: 4 kB / 0.8203 GB, free: 3.633 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004115/2.296, allocations: 76.44 kB / 0.8204 GB, free: 3.559 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/2.297, allocations: 3.125 kB / 0.8204 GB, free: 3.559 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003171/2.297, allocations: 0.5685 MB / 0.821 GB, free: 2.988 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/2.297, allocations: 0 / 0.821 GB, free: 2.988 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002313/2.297, allocations: 138 kB / 0.8211 GB, free: 2.852 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 6.506e-05/2.297, allocations: 104.2 kB / 0.8212 GB, free: 2.734 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/2.297, allocations: 3.984 kB / 0.8212 GB, free: 2.73 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.583e-05/2.297, allocations: 0 / 0.8212 GB, free: 2.73 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.594e-05/2.297, allocations: 9.031 kB / 0.8212 GB, free: 2.723 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/2.297, allocations: 3.625 kB / 0.8212 GB, free: 2.723 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001725/2.297, allocations: 201 kB / 0.8214 GB, free: 2.562 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.6e-07/2.297, allocations: 0 / 0.8214 GB, free: 2.562 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.002915/2.3, allocations: 1.441 MB / 0.8228 GB, free: 1.223 MB / 0.6544 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006566/2.307, allocations: 2.837 MB / 0.8256 GB, free: 14.72 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0002824/2.307, allocations: 101.6 kB / 0.8257 GB, free: 14.65 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/2.307, allocations: 0 / 0.8257 GB, free: 14.65 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 8.925e-05/2.307, allocations: 30.48 kB / 0.8257 GB, free: 14.63 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/2.308, allocations: 82.03 kB / 0.8258 GB, free: 14.57 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004055/2.312, allocations: 2.966 MB / 0.8287 GB, free: 11.71 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/2.312, allocations: 0.7558 MB / 0.8294 GB, free: 10.93 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0001173/2.312, allocations: 42.2 kB / 0.8295 GB, free: 10.89 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.54e-05/2.312, allocations: 86.84 kB / 0.8295 GB, free: 10.86 MB / 0.67 GB Notification: Performance of SimCode: time 2.1e-07/2.312, allocations: 0 / 0.8295 GB, free: 10.86 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.362/4.675, allocations: 50.72 MB / 0.8791 GB, free: 8.395 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002897/4.675, allocations: 300.5 kB / 0.8794 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.967/8.643, allocations: 0 / 0.8794 GB, free: 8.008 MB / 0.7169 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)