Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008523/0.0008525, allocations: 101.7 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009988/0.0009991, allocations: 192.6 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246 MB, free: 10.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000223/0.0002232, allocations: 12 kB / 306.8 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1171, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.004431/0.1216, allocations: 3.806 MB / 362.1 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00231/0.124, allocations: 1.126 MB / 363.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000294/0.1243, allocations: 15.94 kB / 363.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002727/0.1246, allocations: 91.3 kB / 363.3 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004747/0.125, allocations: 230.2 kB / 363.6 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005367/0.1256, allocations: 151.8 kB / 363.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008383/0.1264, allocations: 0.8127 MB / 364.5 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003567/0.1268, allocations: 204.7 kB / 364.7 MB, free: 7.301 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006165/0.1274, allocations: 322.8 kB / 365 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005069/0.1279, allocations: 358.5 kB / 365.4 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001972/0.1282, allocations: 48 kB / 365.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.1283, allocations: 60 kB / 365.5 MB, free: 6.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.1285, allocations: 139.4 kB / 365.6 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002091/0.1287, allocations: 169.4 kB / 365.8 MB, free: 6.215 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006456/0.1294, allocations: 0.6621 MB / 366.5 MB, free: 5.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.1294, allocations: 7.938 kB / 366.5 MB, free: 5.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.1294, allocations: 0 / 366.5 MB, free: 5.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.1294, allocations: 3.938 kB / 366.5 MB, free: 5.539 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001924/0.1313, allocations: 1.003 MB / 367.5 MB, free: 4.477 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.1314, allocations: 12.03 kB / 367.5 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001456/0.1315, allocations: 95.42 kB / 367.6 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002358/0.1318, allocations: 91.06 kB / 367.7 MB, free: 4.273 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006442/0.1324, allocations: 471.7 kB / 368.1 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.1326, allocations: 104.4 kB / 368.2 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.845e-05/0.1327, allocations: 47.98 kB / 368.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.1339, allocations: 0.66 MB / 368.9 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.1339, allocations: 3.984 kB / 368.9 MB, free: 2.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.99e-05/0.134, allocations: 24 kB / 369 MB, free: 2.852 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.134, allocations: 12 kB / 369 MB, free: 2.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009888/0.135, allocations: 479.6 kB / 369.4 MB, free: 2.371 MB / 302.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.003106/0.1381, allocations: 1.987 MB / 371.4 MB, free: 268 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2105/0.3486, allocations: 0.7098 MB / 372.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007323/0.3493, allocations: 277 kB / 372.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.787e-05/0.3494, allocations: 8.594 kB / 372.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.3494, allocations: 43.55 kB / 372.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.335e-06/0.3495, allocations: 0 / 372.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.005076/0.3545, allocations: 1.589 MB / 374 MB, free: 14.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.3547, allocations: 0.5668 MB / 374.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008807/0.3556, allocations: 0.5337 MB / 375.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.304e-05/0.3557, allocations: 40.2 kB / 375.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003981/0.3561, allocations: 287.1 kB / 375.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.3563, allocations: 198.5 kB / 375.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.703e-05/0.3563, allocations: 10.09 kB / 375.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.3564, allocations: 372.5 kB / 376 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005193/0.357, allocations: 206.2 kB / 376.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006859/0.3576, allocations: 425.4 kB / 376.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006512/0.3583, allocations: 277.4 kB / 376.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3583, allocations: 0 / 376.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002307/0.3606, allocations: 0.8495 MB / 377.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.761e-05/0.3607, allocations: 32.33 kB / 377.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.3607, allocations: 2.281 kB / 377.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009544/0.3617, allocations: 236.1 kB / 378 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006927/0.3624, allocations: 127.2 kB / 378.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006891/0.3693, allocations: 5.229 MB / 383.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007259/0.37, allocations: 93.88 kB / 383.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.707e-05/0.3701, allocations: 23.06 kB / 383.5 MB, free: 8.488 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 initialization (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003619/0.3704, allocations: 193.2 kB / 383.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.587e-05/0.3705, allocations: 77.23 kB / 383.8 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002242/0.3728, allocations: 0.8189 MB / 384.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.3728, allocations: 6.406 kB / 384.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3728, allocations: 3.938 kB / 384.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002169/0.375, allocations: 1.086 MB / 385.7 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003431/0.3784, allocations: 1.547 MB / 387.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.3785, allocations: 1.188 kB / 387.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007437/0.3792, allocations: 138.9 kB / 387.4 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008556/0.3801, allocations: 179.7 kB / 387.5 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.154e-05/0.3801, allocations: 17.33 kB / 387.6 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005149/0.3853, allocations: 3.536 MB / 391.1 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.3853, allocations: 0 / 391.1 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003516/0.3888, allocations: 1.125 MB / 392.2 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003839/0.3892, allocations: 207.5 kB / 392.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.626e-05/0.3893, allocations: 12.66 kB / 392.4 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004811/0.3898, allocations: 50.86 kB / 392.5 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.39, allocations: 49.05 kB / 392.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.558e-05/0.39, allocations: 14.98 kB / 392.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006536/0.3907, allocations: 381 kB / 392.9 MB, free: 3.105 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.3907, allocations: 0 / 392.9 MB, free: 3.105 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001177/0.3919, allocations: 223.5 kB / 393.1 MB, free: 3.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * 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 (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.003222/0.3951, allocations: 1.694 MB / 394.8 MB, free: 2.043 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002489/0.3976, allocations: 1.069 MB / 395.9 MB, free: 1.449 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.3976, allocations: 1.375 kB / 395.9 MB, free: 1.449 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000956/0.3986, allocations: 0.5505 MB / 396.5 MB, free: 1.121 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.3998, allocations: 172 kB / 396.6 MB, free: 1.059 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008507/0.4083, allocations: 4.22 MB / 400.8 MB, free: 14.85 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004732/0.4088, allocations: 0.8855 MB / 401.7 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004599/0.4093, allocations: 80.44 kB / 401.8 MB, free: 14.03 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003195/0.4096, allocations: 235 kB / 402 MB, free: 13.84 MB / 318.1 MB Notification: Performance of SimCode: time 2.104e-06/0.4096, allocations: 0 / 402 MB, free: 13.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0362/0.4458, allocations: 18.06 MB / 420.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/0.446, allocations: 217.7 kB / 420.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.522/2.968, allocations: 0 / 420.3 MB, free: 12.81 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat