Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008835/0.0008837, allocations: 100.7 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009347/0.0009349, allocations: 199.2 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.429/1.429, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2182/0.2182, allocations: 45.92 MB / 344 MB, free: 12.08 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002912/0.0002913, allocations: 8 kB / 418.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1339, allocations: 63.46 MB / 481.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor): time 0.3307/0.4646, allocations: 39.62 MB / 0.5089 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02682/0.4915, allocations: 18.77 MB / 0.5273 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002067/0.4936, allocations: 44.72 kB / 0.5273 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002501/0.4961, allocations: 0.6435 MB / 0.5279 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01693/0.5131, allocations: 4.458 MB / 0.5323 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01269/0.5258, allocations: 3.048 MB / 0.5353 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004084/0.5299, allocations: 1.743 MB / 0.537 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001384/0.5313, allocations: 0.8779 MB / 0.5378 GB, free: 9.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002119/0.5334, allocations: 0.9439 MB / 0.5387 GB, free: 8.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009797/0.5432, allocations: 6.152 MB / 0.5447 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003218/0.5436, allocations: 72.31 kB / 0.5448 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01606/0.5596, allocations: 7.63 MB / 0.5523 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004551/0.5601, allocations: 271 kB / 0.5525 GB, free: 0.918 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009218/0.5611, allocations: 344.9 kB / 0.5529 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01056/0.5716, allocations: 4.534 MB / 0.5573 GB, free: 12.03 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.5717, allocations: 0 / 0.5573 GB, free: 12.03 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5717, allocations: 0 / 0.5573 GB, free: 12.03 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.216e-05/0.5717, allocations: 0 / 0.5573 GB, free: 12.03 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 0.00649/0.5782, allocations: 2.188 MB / 0.5594 GB, free: 9.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.5783, allocations: 12.56 kB / 0.5594 GB, free: 9.777 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003035/0.5786, allocations: 194.3 kB / 0.5596 GB, free: 9.578 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002529/0.5811, allocations: 406.8 kB / 0.56 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001795/0.5829, allocations: 0.895 MB / 0.5609 GB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.5831, allocations: 102.6 kB / 0.561 GB, free: 8.145 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000186/0.5833, allocations: 127.9 kB / 0.5611 GB, free: 8.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003723/0.587, allocations: 1.653 MB / 0.5627 GB, free: 6.266 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.206e-05/0.587, allocations: 15.92 kB / 0.5627 GB, free: 6.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.5872, allocations: 56 kB / 0.5628 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.773e-05/0.5872, allocations: 50.3 kB / 0.5628 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003301/0.5905, allocations: 1.352 MB / 0.5641 GB, free: 4.785 MB / 398.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.01076/0.6013, allocations: 7.722 MB / 0.5717 GB, free: 12.53 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002755/0.6041, allocations: 0.9778 MB / 0.5726 GB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05195/0.6561, allocations: 27.09 MB / 0.5991 GB, free: 13.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.789e-05/0.6562, allocations: 47.11 kB / 0.5991 GB, free: 12.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=68): time 2.475e-06/0.6562, allocations: 0 / 0.5991 GB, free: 12.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=71): time 0.0119/0.6681, allocations: 3.228 MB / 0.6023 GB, free: 9.676 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.6682, allocations: 111.5 kB / 0.6024 GB, free: 9.543 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/0.67, allocations: 0.9761 MB / 0.6034 GB, free: 8.551 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.275e-05/0.6701, allocations: 41.7 kB / 0.6034 GB, free: 8.504 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006579/0.6708, allocations: 0.6888 MB / 0.6041 GB, free: 7.805 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002791/0.6711, allocations: 252.4 kB / 0.6043 GB, free: 7.555 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.746e-05/0.6712, allocations: 24 kB / 0.6043 GB, free: 7.531 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.6714, allocations: 345.9 kB / 0.6047 GB, free: 7.188 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.6725, allocations: 350.4 kB / 0.605 GB, free: 6.848 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.6739, allocations: 0.7872 MB / 0.6058 GB, free: 5.855 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.6752, allocations: 462.9 kB / 0.6062 GB, free: 5.406 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.6753, allocations: 4 kB / 0.6062 GB, free: 5.402 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003775/0.679, allocations: 1.344 MB / 0.6075 GB, free: 4.047 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002419/0.6815, allocations: 5.743 MB / 0.6131 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.638e-05/0.6815, allocations: 12 kB / 0.6131 GB, free: 13.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002575/0.6841, allocations: 376.4 kB / 0.6135 GB, free: 13.47 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/0.6855, allocations: 263.6 kB / 0.6137 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001819/0.6873, allocations: 0.8608 MB / 0.6146 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/0.689, allocations: 95.91 kB / 0.6147 GB, free: 12.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/0.6892, allocations: 67.98 kB / 0.6147 GB, free: 12.17 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.6892, allocations: 4 kB / 0.6147 GB, free: 12.16 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004023/0.6933, allocations: 1.242 MB / 0.616 GB, free: 10.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.609e-05/0.6933, allocations: 16 kB / 0.616 GB, free: 10.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/0.6947, allocations: 245.5 kB / 0.6162 GB, free: 10.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.6959, allocations: 267.6 kB / 0.6165 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001099/0.697, allocations: 0.8098 MB / 0.6173 GB, free: 9.562 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.6981, allocations: 99.84 kB / 0.6174 GB, free: 9.465 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.6982, allocations: 60 kB / 0.6174 GB, free: 9.406 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 126 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0007505/0.6989, allocations: 396.7 kB / 0.6178 GB, free: 9.008 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.6991, allocations: 130.4 kB / 0.6179 GB, free: 8.879 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004382/0.7035, allocations: 3.177 MB / 0.621 GB, free: 5.676 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.76e-05/0.7036, allocations: 35.94 kB / 0.621 GB, free: 5.641 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.7036, allocations: 0 / 0.621 GB, free: 5.641 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.7036, allocations: 11.98 kB / 0.6211 GB, free: 5.629 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006421/0.7101, allocations: 4.681 MB / 0.6256 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.7101, allocations: 4.219 kB / 0.6256 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005783/0.7107, allocations: 155.8 kB / 0.6258 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/0.7128, allocations: 1.065 MB / 0.6268 GB, free: 15.63 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.303e-05/0.7129, allocations: 23.92 kB / 0.6268 GB, free: 15.61 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001626/0.7145, allocations: 1.489 MB / 0.6283 GB, free: 14.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.7145, allocations: 0 / 0.6283 GB, free: 14.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004441/0.719, allocations: 3.132 MB / 0.6314 GB, free: 10.87 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007293/0.7197, allocations: 438 kB / 0.6318 GB, free: 10.42 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001648/0.7199, allocations: 16 kB / 0.6318 GB, free: 10.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000722/0.7206, allocations: 87.8 kB / 0.6319 GB, free: 10.32 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.7208, allocations: 68.55 kB / 0.6319 GB, free: 10.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.659e-05/0.7209, allocations: 24 kB / 0.632 GB, free: 10.23 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001191/0.7221, allocations: 0.8516 MB / 0.6328 GB, free: 9.375 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7221, allocations: 4 kB / 0.6328 GB, free: 9.371 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00447/0.7266, allocations: 1.581 MB / 0.6343 GB, free: 7.789 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (motor.inertiaRotor.phi,motor.inertiaRotor.w,motor.la.i) * Number of discrete variables: 21 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.009451/0.736, allocations: 5.125 MB / 0.6393 GB, free: 2.594 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004035/0.7401, allocations: 1.799 MB / 0.6411 GB, free: 0.8008 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/0.7401, allocations: 4.25 kB / 0.6411 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.7415, allocations: 0.8479 MB / 0.6419 GB, free: 15.95 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002579/0.7441, allocations: 462.2 kB / 0.6424 GB, free: 15.51 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01527/0.7593, allocations: 15.78 MB / 0.6578 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/0.7605, allocations: 1.397 MB / 0.6592 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001788/0.7623, allocations: 0.785 MB / 0.6599 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008792/0.7632, allocations: 0.6945 MB / 0.6606 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of SimCode: time 1.613e-06/0.7632, allocations: 0 / 0.6606 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3357/1.099, allocations: 69.49 MB / 0.7285 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/1.099, allocations: 268.1 kB / 0.7287 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.823/5.922, allocations: 0 / 0.7287 GB, free: 180.1 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor_res.mat does not exist to compare? outputFormat=mat