Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.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.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm",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.7903/0.7903, allocations: 150.9 MB / 166.5 MB, free: 14.16 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003322/0.0003323, allocations: 15.34 kB / 236.6 MB, free: 2.07 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05513/0.05548, allocations: 31.35 MB / 267.9 MB, free: 7.512 MB / 222.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.TestDiaphragm): time 1.538/1.593, allocations: 294.8 MB / 0.5495 GB, free: 12.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4799/2.073, allocations: 190.1 MB / 0.7351 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002843/2.073, allocations: 8.312 kB / 0.7351 GB, free: 1.809 MB / 0.5919 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/Diaphragm.mo:34:3-35: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/Diaphragm.mo:36:3-37: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.0001313/2.073, allocations: 41.88 kB / 0.7352 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002998/2.074, allocations: 108.6 kB / 0.7353 GB, free: 1.809 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0288/2.103, allocations: 12.11 MB / 0.7471 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004829/2.103, allocations: 395.2 kB / 0.7475 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002446/2.103, allocations: 201.9 kB / 0.7477 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001978/2.104, allocations: 170 kB / 0.7478 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/2.104, allocations: 171.5 kB / 0.748 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.829e-05/2.104, allocations: 36.09 kB / 0.748 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03269/2.136, allocations: 21 MB / 0.7685 GB, free: 408 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001224/2.137, allocations: 80.97 kB / 0.7686 GB, free: 396 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002459/2.137, allocations: 189.1 kB / 0.7688 GB, free: 384 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02392/2.161, allocations: 10.37 MB / 0.7789 GB, free: 12.66 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/2.161, allocations: 0 / 0.7789 GB, free: 12.66 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.593e-06/2.161, allocations: 3.438 kB / 0.7789 GB, free: 12.66 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.395e-06/2.161, allocations: 0 / 0.7789 GB, free: 12.66 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.004685/2.166, allocations: 1.862 MB / 0.7807 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/2.166, allocations: 11.84 kB / 0.7808 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.739e-05/2.166, allocations: 69.59 kB / 0.7808 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.242e-05/2.166, allocations: 44.22 kB / 0.7809 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003657/2.166, allocations: 304 kB / 0.7812 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.381e-05/2.166, allocations: 25.12 kB / 0.7812 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/2.166, allocations: 38.75 kB / 0.7812 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005025/2.167, allocations: 384.6 kB / 0.7816 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/2.167, allocations: 3.188 kB / 0.7816 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/2.167, allocations: 15.09 kB / 0.7816 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/2.167, allocations: 9.094 kB / 0.7816 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003679/2.167, allocations: 245.9 kB / 0.7818 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007942/2.175, allocations: 6.164 MB / 0.7879 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/2.175, allocations: 83.06 kB / 0.7879 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.776e-05/2.175, allocations: 22.3 kB / 0.788 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3134/2.489, allocations: 155.6 MB / 0.94 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.656e-05/2.489, allocations: 30.56 kB / 0.94 GB, free: 14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 3.507e-06/2.489, allocations: 3.844 kB / 0.94 GB, free: 14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0008234/2.49, allocations: 255.4 kB / 0.9402 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.856e-05/2.49, allocations: 81.11 kB / 0.9403 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/2.49, allocations: 286.9 kB / 0.9406 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/2.49, allocations: 25.7 kB / 0.9406 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000157/2.49, allocations: 235.3 kB / 0.9408 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.584e-05/2.49, allocations: 27.64 kB / 0.9409 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.944e-05/2.491, allocations: 61.84 kB / 0.9409 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001181/2.491, allocations: 338.8 kB / 0.9412 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/2.491, allocations: 52.44 kB / 0.9413 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/2.491, allocations: 152.5 kB / 0.9414 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002648/2.491, allocations: 206.8 kB / 0.9416 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/2.491, allocations: 8 kB / 0.9416 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005205/2.492, allocations: 275.4 kB / 0.9419 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/2.492, allocations: 9.25 kB / 0.9419 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/2.492, allocations: 4.469 kB / 0.9419 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008798/2.493, allocations: 111.8 kB / 0.942 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/2.493, allocations: 39.08 kB / 0.9421 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004518/2.493, allocations: 0.5756 MB / 0.9426 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002245/2.494, allocations: 29.25 kB / 0.9427 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/2.494, allocations: 16 kB / 0.9427 GB, free: 11.1 MB / 0.7794 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 (SourceP1.C.ftype,PuitsP1.fluid,Diaphragm.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Diaphragm.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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.0001456/2.494, allocations: 152.7 kB / 0.9428 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.755e-05/2.494, allocations: 27.66 kB / 0.9428 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005539/2.494, allocations: 172 kB / 0.943 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/2.494, allocations: 0 / 0.943 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/2.494, allocations: 4.844 kB / 0.943 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/2.494, allocations: 2.688 kB / 0.943 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003169/2.495, allocations: 301.4 kB / 0.9433 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/2.495, allocations: 0 / 0.9433 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.086e-05/2.495, allocations: 11.94 kB / 0.9433 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004864/2.495, allocations: 87.97 kB / 0.9434 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/2.495, allocations: 0 / 0.9434 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004216/2.496, allocations: 0.5663 MB / 0.944 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/2.496, allocations: 0 / 0.944 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004625/2.496, allocations: 169.8 kB / 0.9441 GB, free: 9.535 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/2.496, allocations: 108.8 kB / 0.9442 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/2.496, allocations: 4 kB / 0.9442 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.794e-05/2.496, allocations: 3.984 kB / 0.9442 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.958e-05/2.497, allocations: 6.016 kB / 0.9442 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.505e-06/2.497, allocations: 5.203 kB / 0.9442 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002257/2.497, allocations: 213.9 kB / 0.9444 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/2.497, allocations: 3.938 kB / 0.9444 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004274/2.501, allocations: 1.596 MB / 0.946 GB, free: 7.582 MB / 0.7794 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 (4): * Single equations (assignments): 3 * 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.008733/2.51, allocations: 3.075 MB / 0.949 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005045/2.51, allocations: 136.6 kB / 0.9491 GB, free: 4.668 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/2.51, allocations: 1.203 kB / 0.9491 GB, free: 4.668 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001461/2.511, allocations: 39.92 kB / 0.9492 GB, free: 4.629 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/2.511, allocations: 76.02 kB / 0.9492 GB, free: 4.559 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005466/2.516, allocations: 3.088 MB / 0.9523 GB, free: 1.336 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/2.517, allocations: 0.7635 MB / 0.953 GB, free: 0.5469 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001555/2.517, allocations: 46.89 kB / 0.9531 GB, free: 0.5 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/2.517, allocations: 99.41 kB / 0.9531 GB, free: 412 kB / 0.7794 GB Notification: Performance of SimCode: time 4.51e-07/2.517, allocations: 0 / 0.9531 GB, free: 412 kB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08622/2.603, allocations: 54.66 MB / 1.007 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.66/16.26, allocations: 1.203 kB / 1.007 GB, free: 9.895 MB / 0.8419 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)