Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001162/0.001162, allocations: 94.73 kB / 16.98 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001626/0.001626, allocations: 203.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002356/0.0002356, allocations: 8 kB / 306.7 MB, free: 1.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.09975, allocations: 51.49 MB / 358.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00447/0.1043, allocations: 3.875 MB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002619/0.1069, allocations: 1.36 MB / 363.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002595/0.1072, allocations: 15.88 kB / 363.4 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002455/0.1075, allocations: 95.33 kB / 363.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007738/0.1082, allocations: 358.9 kB / 363.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003659/0.1086, allocations: 163.7 kB / 364 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008232/0.1095, allocations: 0.7001 MB / 364.7 MB, free: 7.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004585/0.1099, allocations: 241.4 kB / 365 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004262/0.1104, allocations: 346.9 kB / 365.3 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000413/0.1108, allocations: 378.4 kB / 365.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.426e-05/0.1109, allocations: 52 kB / 365.7 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.111, allocations: 48 kB / 365.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001356/0.1111, allocations: 143.4 kB / 365.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001561/0.1113, allocations: 189.3 kB / 366.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005998/0.1119, allocations: 0.7401 MB / 366.9 MB, free: 5.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1119, allocations: 0 / 366.9 MB, free: 5.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1119, allocations: 0 / 366.9 MB, free: 5.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.1119, allocations: 0 / 366.9 MB, free: 5.301 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001991/0.1139, allocations: 1.072 MB / 367.9 MB, free: 4.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.114, allocations: 12.03 kB / 367.9 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001656/0.1142, allocations: 107.7 kB / 368 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002666/0.1144, allocations: 102.9 kB / 368.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006272/0.1151, allocations: 451.9 kB / 368.6 MB, free: 3.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.1152, allocations: 104.7 kB / 368.7 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.084e-05/0.1153, allocations: 63.92 kB / 368.8 MB, free: 3.277 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.1168, allocations: 0.8127 MB / 369.6 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.1168, allocations: 0 / 369.6 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.64e-05/0.1169, allocations: 28 kB / 369.6 MB, free: 2.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.1169, allocations: 20 kB / 369.6 MB, free: 2.312 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.1181, allocations: 0.5282 MB / 370.1 MB, free: 1.785 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.1704/0.2885, allocations: 2.134 MB / 372.3 MB, free: 18.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001607/0.2902, allocations: 0.611 MB / 372.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.627e-05/0.2902, allocations: 13.2 kB / 372.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000723/0.291, allocations: 337.9 kB / 373.2 MB, free: 18.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.424e-06/0.291, allocations: 0 / 373.2 MB, free: 18.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.005366/0.2963, allocations: 1.584 MB / 374.8 MB, free: 18.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001915/0.2965, allocations: 0.8219 MB / 375.6 MB, free: 17.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007068/0.2973, allocations: 0.5324 MB / 376.2 MB, free: 17.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.49e-05/0.2973, allocations: 42.95 kB / 376.2 MB, free: 17.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002207/0.2976, allocations: 343.3 kB / 376.5 MB, free: 17.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/0.2977, allocations: 190.3 kB / 376.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.706e-05/0.2978, allocations: 12.47 kB / 376.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.2979, allocations: 379.1 kB / 377.1 MB, free: 16.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006173/0.2986, allocations: 226.5 kB / 377.3 MB, free: 16.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007092/0.2993, allocations: 0.5362 MB / 377.9 MB, free: 16.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005608/0.2999, allocations: 324.4 kB / 378.2 MB, free: 16.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.2999, allocations: 1.5 kB / 378.2 MB, free: 16.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001762/0.3017, allocations: 0.8659 MB / 379.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.45e-05/0.3017, allocations: 60.55 kB / 379.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.3017, allocations: 2.812 kB / 379.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007797/0.3025, allocations: 226.7 kB / 379.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006059/0.3031, allocations: 128 kB / 379.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005832/0.309, allocations: 4.372 MB / 383.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007497/0.3097, allocations: 96.66 kB / 383.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/0.3098, allocations: 21.94 kB / 383.9 MB, free: 12.2 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * 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: 2 * 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 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.000292/0.3101, allocations: 219.9 kB / 384.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.924e-05/0.3102, allocations: 80.86 kB / 384.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001275/0.3103, allocations: 81.66 kB / 384.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3104, allocations: 6.625 kB / 384.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3104, allocations: 0.8125 kB / 384.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001963/0.3123, allocations: 1.102 MB / 385.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002653/0.315, allocations: 1.586 MB / 387 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.315, allocations: 0 / 387 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005941/0.3156, allocations: 117.3 kB / 387.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004973/0.3162, allocations: 181.9 kB / 387.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.524e-05/0.3162, allocations: 14.59 kB / 387.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004406/0.3206, allocations: 3.71 MB / 391 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3206, allocations: 6.453 kB / 391 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.323, allocations: 1.077 MB / 392.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002717/0.3233, allocations: 204.2 kB / 392.3 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.176e-05/0.3234, allocations: 14.8 kB / 392.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006034/0.324, allocations: 50.75 kB / 392.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.3242, allocations: 59.5 kB / 392.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.775e-05/0.3242, allocations: 16.36 kB / 392.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004594/0.3247, allocations: 373.3 kB / 392.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3247, allocations: 0 / 392.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009402/0.3256, allocations: 250.9 kB / 393.1 MB, free: 6.215 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.002431/0.3281, allocations: 1.644 MB / 394.7 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001993/0.3301, allocations: 1.054 MB / 395.8 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.3301, allocations: 1.344 kB / 395.8 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009138/0.331, allocations: 0.5592 MB / 396.3 MB, free: 4.246 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007026/0.3317, allocations: 184.4 kB / 396.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002856/0.3346, allocations: 3.339 MB / 399.8 MB, free: 1.402 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004391/0.335, allocations: 0.9364 MB / 400.8 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003386/0.3354, allocations: 72.17 kB / 400.8 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002488/0.3356, allocations: 261 kB / 401.1 MB, free: 340 kB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3357, allocations: 3.938 kB / 401.1 MB, free: 336 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04148/0.3771, allocations: 19.39 MB / 420.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001956/0.3774, allocations: 206.9 kB / 420.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.441/2.818, allocations: 0 / 420.7 MB, free: 14.72 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat