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.0008826/0.0008828, allocations: 100.2 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.00135/0.00135, allocations: 191.8 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.412/1.412, allocations: 227.4 MB / 246 MB, free: 11.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002082/0.0002084, allocations: 4 kB / 306.8 MB, free: 1.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1002, allocations: 51.5 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004583/0.1049, allocations: 4.237 MB / 362.5 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002351/0.1073, allocations: 1.317 MB / 363.9 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002469/0.1075, allocations: 11.94 kB / 363.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002925/0.1078, allocations: 99.23 kB / 364 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006004/0.1084, allocations: 305.9 kB / 364.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003775/0.1088, allocations: 159.8 kB / 364.4 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007964/0.1096, allocations: 0.9015 MB / 365.3 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003411/0.11, allocations: 261.4 kB / 365.6 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004223/0.1104, allocations: 354.8 kB / 365.9 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000423/0.1108, allocations: 406.3 kB / 366.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.124e-05/0.1109, allocations: 56 kB / 366.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.1111, allocations: 60 kB / 366.4 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.1112, allocations: 159.4 kB / 366.6 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.1114, allocations: 189.3 kB / 366.8 MB, free: 5.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006339/0.112, allocations: 0.7829 MB / 367.6 MB, free: 4.637 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.112, allocations: 4 kB / 367.6 MB, free: 4.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.112, allocations: 0 / 367.6 MB, free: 4.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.112, allocations: 0 / 367.6 MB, free: 4.633 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.001675/0.1137, allocations: 1.087 MB / 368.6 MB, free: 3.484 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1138, allocations: 8.031 kB / 368.7 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001474/0.1139, allocations: 107.7 kB / 368.8 MB, free: 3.363 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.1141, allocations: 102.9 kB / 368.9 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006587/0.1147, allocations: 495.8 kB / 369.3 MB, free: 2.738 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.1149, allocations: 112.7 kB / 369.5 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.644e-05/0.115, allocations: 56 kB / 369.5 MB, free: 2.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.1163, allocations: 0.8167 MB / 370.3 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.1163, allocations: 0 / 370.3 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.518e-05/0.1164, allocations: 28 kB / 370.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.1164, allocations: 16 kB / 370.4 MB, free: 1.594 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.1175, allocations: 0.5282 MB / 370.9 MB, free: 1.066 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.1961/0.3136, allocations: 2.188 MB / 373.1 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.315, allocations: 0.5618 MB / 373.6 MB, free: 18.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007112/0.3158, allocations: 280.2 kB / 373.9 MB, free: 18.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.57e-05/0.3158, allocations: 12.48 kB / 373.9 MB, free: 18.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001/0.3168, allocations: 340.8 kB / 374.3 MB, free: 18.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 3.316e-06/0.3168, allocations: 0 / 374.3 MB, free: 18.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.005524/0.3224, allocations: 1.592 MB / 375.9 MB, free: 18.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000243/0.3226, allocations: 0.8247 MB / 376.7 MB, free: 17.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008189/0.3235, allocations: 0.5851 MB / 377.3 MB, free: 16.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/0.3236, allocations: 40.55 kB / 377.3 MB, free: 16.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002944/0.3239, allocations: 346.8 kB / 377.6 MB, free: 16.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.3241, allocations: 188.3 kB / 377.8 MB, free: 16.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.934e-05/0.3241, allocations: 11.88 kB / 377.8 MB, free: 16.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.3243, allocations: 382.5 kB / 378.2 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005815/0.3249, allocations: 225.1 kB / 378.4 MB, free: 16.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007931/0.3257, allocations: 0.5361 MB / 379 MB, free: 15.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006925/0.3264, allocations: 322.4 kB / 379.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.3264, allocations: 1.5 kB / 379.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002103/0.3285, allocations: 0.8603 MB / 380.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.884e-05/0.3286, allocations: 63.66 kB / 380.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.3286, allocations: 6.672 kB / 380.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007781/0.3294, allocations: 228.5 kB / 380.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006178/0.33, allocations: 119.7 kB / 380.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005957/0.336, allocations: 4.292 MB / 384.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009623/0.337, allocations: 87.64 kB / 384.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.758e-05/0.337, allocations: 22.19 kB / 385 MB, free: 11.63 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.0003674/0.3374, allocations: 222.2 kB / 385.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.3375, allocations: 85.02 kB / 385.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001446/0.3377, allocations: 77.59 kB / 385.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3377, allocations: 9.75 kB / 385.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.3377, allocations: 0 / 385.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002035/0.3398, allocations: 1.102 MB / 386.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003096/0.3429, allocations: 1.573 MB / 388 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.3429, allocations: 1.344 kB / 388 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006112/0.3435, allocations: 112.6 kB / 388.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005853/0.3441, allocations: 177.6 kB / 388.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.126e-05/0.3442, allocations: 17.02 kB / 388.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004469/0.3486, allocations: 3.65 MB / 392 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3487, allocations: 6.734 kB / 392 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002523/0.3512, allocations: 1.075 MB / 393 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003744/0.3516, allocations: 215 kB / 393.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.3517, allocations: 15.08 kB / 393.3 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005433/0.3523, allocations: 54.62 kB / 393.3 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.3524, allocations: 55.03 kB / 393.4 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.389e-05/0.3525, allocations: 13.8 kB / 393.4 MB, free: 5.918 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004845/0.3529, allocations: 414 kB / 393.8 MB, free: 5.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.61e-07/0.353, allocations: 1.141 kB / 393.8 MB, free: 5.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001008/0.354, allocations: 258.1 kB / 394.1 MB, free: 5.688 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.002334/0.3563, allocations: 1.637 MB / 395.7 MB, free: 4.656 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002088/0.3584, allocations: 1.066 MB / 396.8 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.3584, allocations: 1.469 kB / 396.8 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009148/0.3594, allocations: 0.5542 MB / 397.3 MB, free: 3.566 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.3604, allocations: 203.7 kB / 397.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006786/0.3672, allocations: 4.337 MB / 401.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.3676, allocations: 0.9211 MB / 402.8 MB, free: 36 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004967/0.3681, allocations: 88.31 kB / 402.9 MB, free: 15.99 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003404/0.3685, allocations: 260.5 kB / 403.1 MB, free: 15.78 MB / 318.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3685, allocations: 0 / 403.1 MB, free: 15.78 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04166/0.4101, allocations: 20.45 MB / 423.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002018/0.4104, allocations: 211.2 kB / 423.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.525/2.935, allocations: 0 / 423.8 MB, free: 11.68 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