Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.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.TestDiffusion_DynamicTwoPhaseFlowPipe,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiffusion_DynamicTwoPhaseFlowPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiffusion_DynamicTwoPhaseFlowPipe",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.8786/0.8786, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.248e-05/1.251e-05, allocations: 4 kB / 204.9 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.261, 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.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe): time 2.019/2.28, allocations: 300 MB / 0.5243 GB, free: 7.836 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.7802/3.061, allocations: 194.5 MB / 0.7143 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001674/3.062, allocations: 26.09 kB / 0.7143 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001048/3.063, allocations: 383.3 kB / 0.7147 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003461/3.067, allocations: 1.239 MB / 0.7159 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.04214/3.109, allocations: 10.84 MB / 0.7265 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.02113/3.13, allocations: 20.43 MB / 0.7464 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01538/3.145, allocations: 6.092 MB / 0.7524 GB, free: 468 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01816/3.164, allocations: 6.028 MB / 0.7582 GB, free: 0 / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0249/3.189, allocations: 8.317 MB / 0.7664 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.008013/3.197, allocations: 0.6452 MB / 0.767 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05526/3.252, allocations: 22.35 MB / 0.7888 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.01101/3.263, allocations: 4.34 MB / 0.7931 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.02044/3.283, allocations: 5.806 MB / 0.7987 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.07459/3.358, allocations: 25.2 MB / 0.8233 GB, free: 12.43 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/3.358, allocations: 0 / 0.8233 GB, free: 12.43 MB / 0.6387 GB Notification: Performance of FrontEnd: time 3.045e-06/3.358, allocations: 0 / 0.8233 GB, free: 12.43 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0006048/3.359, allocations: 0 / 0.8233 GB, free: 12.43 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3006 * Number of variables: 3006 Notification: Performance of Generate backend data structure: time 0.06363/3.422, allocations: 15.29 MB / 0.8383 GB, free: 13.06 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/3.422, allocations: 8.031 kB / 0.8383 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007064/3.43, allocations: 1.503 MB / 0.8397 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007168/3.437, allocations: 1.066 MB / 0.8408 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01249/3.449, allocations: 4.112 MB / 0.8448 GB, free: 6.582 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.006866/3.456, allocations: 4.501 MB / 0.8492 GB, free: 1.418 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005924/3.462, allocations: 0.75 MB / 0.8499 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0717/3.534, allocations: 22.72 MB / 0.8721 GB, free: 9.887 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004701/3.534, allocations: 2.531 kB / 0.8721 GB, free: 9.887 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006764/3.541, allocations: 324 kB / 0.8724 GB, free: 9.57 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003863/3.542, allocations: 307.8 kB / 0.8727 GB, free: 9.27 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09645/3.638, allocations: 33.85 MB / 0.9058 GB, free: 7.387 MB / 0.7169 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.6028/4.241, allocations: 74.23 MB / 0.9783 GB, free: 388.7 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06594/4.307, allocations: 25.58 MB / 1.003 GB, free: 387.5 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03748/4.344, allocations: 17.75 MB / 1.021 GB, free: 382.9 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2778/4.622, allocations: 173.2 MB / 1.19 GB, free: 204.8 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002903/4.623, allocations: 173.1 kB / 1.19 GB, free: 204.6 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2307): time 3.486e-05/4.623, allocations: 1.406 kB / 1.19 GB, free: 204.6 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2307): time 0.1456/4.768, allocations: 60.77 MB / 1.249 GB, free: 143.4 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/4.768, allocations: 267.1 kB / 1.25 GB, free: 143.1 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002273/4.771, allocations: 1.973 MB / 1.251 GB, free: 141.1 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.003631/4.774, allocations: 237.7 kB / 1.252 GB, free: 140.9 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008337/4.775, allocations: 1.344 MB / 1.253 GB, free: 139.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.007416/4.783, allocations: 7.538 MB / 1.26 GB, free: 132 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004714/4.787, allocations: 1.318 MB / 1.262 GB, free: 130.7 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 4.415e-05/4.787, allocations: 305.1 kB / 1.262 GB, free: 130.4 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03818/4.825, allocations: 15.29 MB / 1.277 GB, free: 115.1 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03758/4.863, allocations: 16.96 MB / 1.293 GB, free: 97.85 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07285/4.936, allocations: 32.3 MB / 1.325 GB, free: 65.08 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.515e-05/4.936, allocations: 8 kB / 1.325 GB, free: 65.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2410) (initialization): time 0.1071/5.043, allocations: 43.26 MB / 1.367 GB, free: 21.55 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.934e-05/5.043, allocations: 67.41 kB / 1.367 GB, free: 21.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002114/5.044, allocations: 71.91 kB / 1.367 GB, free: 21.4 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3573/5.401, allocations: 62.44 MB / 1.428 GB, free: 386.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01858/5.42, allocations: 3.504 MB / 1.432 GB, free: 383.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07663/5.496, allocations: 59.97 MB / 1.49 GB, free: 335.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02006/5.516, allocations: 3.805 MB / 1.494 GB, free: 332.7 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004598/5.521, allocations: 0.6347 MB / 1.495 GB, free: 332.3 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * Number of states: 0 () * Number of discrete variables: 17 (sourceP1.C.ftype,dynamicTwoPhaseFlowPipe1.fluid,sinkP1.fluid,sourceP1.fluid1,sourceP.C.ftype,switchValve.C2.diff_on_1,dynamicTwoPhaseFlowPipe.fluid,sinkP.fluid,switchValve.fluid,nONL.yL.signal,echelon.yL.signal,sourceP.fluid1,dynamicTwoPhaseFlowPipe1.C1.diff_on_2,dynamicTwoPhaseFlowPipe1.C2.diff_on_1,dynamicTwoPhaseFlowPipe.C1.diff_on_2,sourceP.C.diff_on_2,dynamicTwoPhaseFlowPipe.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (717): * Single equations (assignments): 671 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 22 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 22 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 20 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(32,313), (33,317)} Notification: Performance of prepare postOptimizeDAE: time 0.01097/5.532, allocations: 2.594 MB / 1.497 GB, free: 330.1 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005025/5.537, allocations: 0.806 MB / 1.498 GB, free: 329.3 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1194/5.656, allocations: 52.05 MB / 1.549 GB, free: 277.9 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0999/5.756, allocations: 44.78 MB / 1.593 GB, free: 232.9 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-05/5.756, allocations: 8.656 kB / 1.593 GB, free: 232.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000413/5.757, allocations: 87.66 kB / 1.593 GB, free: 232.8 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1782/5.935, allocations: 82.1 MB / 1.673 GB, free: 150.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002559/5.935, allocations: 47.97 kB / 1.673 GB, free: 150.1 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01778/5.953, allocations: 3.976 MB / 1.677 GB, free: 146.1 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1409/6.094, allocations: 55.32 MB / 1.731 GB, free: 90.66 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005552/6.1, allocations: 0.5442 MB / 1.731 GB, free: 90.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2708/6.37, allocations: 57.65 MB / 1.788 GB, free: 351.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/6.371, allocations: 4.375 kB / 1.788 GB, free: 351.7 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1148/6.485, allocations: 45.27 MB / 1.832 GB, free: 342 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009556/6.495, allocations: 3.668 MB / 1.835 GB, free: 339.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004806/6.5, allocations: 295.2 kB / 1.836 GB, free: 339.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02009/6.52, allocations: 2.949 MB / 1.839 GB, free: 337.5 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005706/6.526, allocations: 1.136 MB / 1.84 GB, free: 336.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004299/6.53, allocations: 0.6544 MB / 1.84 GB, free: 336.4 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001723/6.532, allocations: 1.443 MB / 1.842 GB, free: 335.1 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.2e-07/6.532, allocations: 0 / 1.842 GB, free: 335.1 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.01883/6.551, allocations: 5.68 MB / 1.847 GB, free: 329.7 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 2 (echelon.yL.signal,nONL.yL.signal) * Number of discrete states: 2 (echelon.yL.signal,nONL.yL.signal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1091): * Single equations (assignments): 1047 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 22 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 20 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(32,315), (33,318)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1227/6.673, allocations: 48.84 MB / 1.895 GB, free: 281.6 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.08956/6.763, allocations: 45.36 MB / 1.939 GB, free: 234.6 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/6.763, allocations: 2.984 kB / 1.939 GB, free: 234.6 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.05122/6.814, allocations: 24.35 MB / 1.963 GB, free: 209.8 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02478/6.839, allocations: 3.694 MB / 1.967 GB, free: 206.2 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6307/7.47, allocations: 198.6 MB / 2.161 GB, free: 356.9 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006264/7.476, allocations: 6.499 MB / 2.167 GB, free: 355.8 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.01495/7.491, allocations: 3.355 MB / 2.17 GB, free: 355.7 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01063/7.502, allocations: 4.643 MB / 2.175 GB, free: 352.2 MB / 0.7794 GB Notification: Performance of SimCode: time 6.42e-07/7.502, allocations: 0 / 2.175 GB, free: 352.2 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.606/13.11, allocations: 0.4981 GB / 2.673 GB, free: 178.4 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002656/13.11, allocations: 319.3 kB / 2.673 GB, free: 178 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.87/32.97, allocations: 4 kB / 2.673 GB, free: 178 MB / 0.7794 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiffusion_DynamicTwoPhaseFlowPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiffusion_DynamicTwoPhaseFlowPipe.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiffusion_DynamicTwoPhaseFlowPipe.pipe 2>&1)