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: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|motor.inertiaRotor.phi|motor.inertiaRotor.w|motor.la.i",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|motor.inertiaRotor.phi|motor.inertiaRotor.w|motor.la.i",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001112/0.001111, allocations: 95.77 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001577/0.001577, allocations: 206.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2282/0.2282, allocations: 45.91 MB / 344 MB, free: 12.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003085/0.0003086, allocations: 8 kB / 417.9 MB, free: 20.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1487, allocations: 63.46 MB / 481.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor): time 0.3406/0.4894, allocations: 39.61 MB / 0.5088 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02691/0.5164, allocations: 18.78 MB / 0.5271 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002396/0.5188, allocations: 44.62 kB / 0.5272 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002919/0.5218, allocations: 0.6454 MB / 0.5278 GB, free: 12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01888/0.5407, allocations: 4.453 MB / 0.5321 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01405/0.5547, allocations: 3.057 MB / 0.5351 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005157/0.5599, allocations: 1.735 MB / 0.5368 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002281/0.5622, allocations: 0.877 MB / 0.5377 GB, free: 9.391 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004071/0.5663, allocations: 0.9396 MB / 0.5386 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01128/0.5776, allocations: 6.157 MB / 0.5446 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004596/0.5781, allocations: 74.16 kB / 0.5447 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01958/0.5977, allocations: 7.622 MB / 0.5521 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006892/0.5985, allocations: 278.9 kB / 0.5524 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001003/0.5995, allocations: 344.9 kB / 0.5527 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01182/0.6113, allocations: 4.537 MB / 0.5572 GB, free: 12.24 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.6114, allocations: 0 / 0.5572 GB, free: 12.24 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.6114, allocations: 0 / 0.5572 GB, free: 12.24 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.476e-05/0.6115, allocations: 0 / 0.5572 GB, free: 12.24 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.00653/0.618, allocations: 2.188 MB / 0.5593 GB, free: 9.996 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.6181, allocations: 8.562 kB / 0.5593 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002631/0.6207, allocations: 406.8 kB / 0.5597 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001867/0.6226, allocations: 0.8911 MB / 0.5606 GB, free: 8.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.387e-05/0.6227, allocations: 106.6 kB / 0.5607 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001957/0.6229, allocations: 131.9 kB / 0.5608 GB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003783/0.6267, allocations: 1.656 MB / 0.5624 GB, free: 6.668 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.816e-05/0.6268, allocations: 8 kB / 0.5624 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/0.6269, allocations: 56 kB / 0.5625 GB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.361e-05/0.6269, allocations: 46.31 kB / 0.5625 GB, free: 6.559 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00349/0.6304, allocations: 1.355 MB / 0.5638 GB, free: 5.195 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.01144/0.6419, allocations: 7.718 MB / 0.5714 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002745/0.6447, allocations: 0.9933 MB / 0.5723 GB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05304/0.6977, allocations: 27.07 MB / 0.5988 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.222e-05/0.6978, allocations: 43.12 kB / 0.5988 GB, free: 13.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=68): time 2.715e-06/0.6978, allocations: 0 / 0.5988 GB, free: 13.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=71): time 0.01008/0.7079, allocations: 3.224 MB / 0.602 GB, free: 10.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.843e-05/0.708, allocations: 115.5 kB / 0.6021 GB, free: 9.957 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001339/0.7094, allocations: 0.98 MB / 0.603 GB, free: 8.961 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.478e-05/0.7095, allocations: 37.7 kB / 0.6031 GB, free: 8.918 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004459/0.7099, allocations: 0.6888 MB / 0.6037 GB, free: 8.219 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.7101, allocations: 248.5 kB / 0.604 GB, free: 7.973 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.789e-05/0.7102, allocations: 20 kB / 0.604 GB, free: 7.953 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.7103, allocations: 345.9 kB / 0.6043 GB, free: 7.609 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007471/0.7111, allocations: 354.4 kB / 0.6047 GB, free: 7.266 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.7121, allocations: 0.7911 MB / 0.6054 GB, free: 6.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008843/0.713, allocations: 454.9 kB / 0.6059 GB, free: 5.828 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.713, allocations: 4 kB / 0.6059 GB, free: 5.824 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002566/0.7156, allocations: 1.348 MB / 0.6072 GB, free: 4.465 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002136/0.7177, allocations: 5.751 MB / 0.6128 GB, free: 14.26 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.672e-05/0.7178, allocations: 20 kB / 0.6128 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001917/0.7197, allocations: 371.2 kB / 0.6132 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008812/0.7206, allocations: 271.5 kB / 0.6134 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.7219, allocations: 0.8514 MB / 0.6143 GB, free: 12.74 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.723, allocations: 103.9 kB / 0.6144 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.198e-05/0.7231, allocations: 63.98 kB / 0.6144 GB, free: 12.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.7231, allocations: 4 kB / 0.6144 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002741/0.7259, allocations: 1.242 MB / 0.6156 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/0.7259, allocations: 16.88 kB / 0.6157 GB, free: 11.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009588/0.7269, allocations: 240.7 kB / 0.6159 GB, free: 11.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008299/0.7277, allocations: 271.5 kB / 0.6162 GB, free: 10.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/0.7287, allocations: 0.8176 MB / 0.6169 GB, free: 9.961 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/0.7299, allocations: 95.86 kB / 0.617 GB, free: 9.867 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.833e-05/0.73, allocations: 59.98 kB / 0.6171 GB, free: 9.809 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.0008129/0.7309, allocations: 392.7 kB / 0.6175 GB, free: 9.414 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/0.7311, allocations: 126.5 kB / 0.6176 GB, free: 9.289 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004905/0.736, allocations: 3.181 MB / 0.6207 GB, free: 6.094 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-05/0.7361, allocations: 35.95 kB / 0.6207 GB, free: 6.059 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.7361, allocations: 4 kB / 0.6207 GB, free: 6.055 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.7361, allocations: 7.984 kB / 0.6207 GB, free: 6.047 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007195/0.7433, allocations: 4.685 MB / 0.6253 GB, free: 1.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.387e-06/0.7434, allocations: 8.031 kB / 0.6253 GB, free: 1.262 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005951/0.744, allocations: 143.8 kB / 0.6255 GB, free: 1.121 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00224/0.7462, allocations: 1.073 MB / 0.6265 GB, free: 48 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.715e-05/0.7463, allocations: 20 kB / 0.6265 GB, free: 28 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001934/0.7482, allocations: 1.485 MB / 0.628 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.7483, allocations: 0 / 0.628 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004914/0.7532, allocations: 3.147 MB / 0.6311 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/0.7542, allocations: 430 kB / 0.6315 GB, free: 10.83 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.7544, allocations: 20.08 kB / 0.6315 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007411/0.7551, allocations: 83.8 kB / 0.6316 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.7553, allocations: 68.55 kB / 0.6316 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.765e-05/0.7554, allocations: 31.98 kB / 0.6317 GB, free: 10.63 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001247/0.7566, allocations: 0.8477 MB / 0.6325 GB, free: 9.781 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7566, allocations: 0 / 0.6325 GB, free: 9.781 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005524/0.7622, allocations: 1.585 MB / 0.634 GB, free: 8.195 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.00558/0.7678, allocations: 1.379 MB / 0.6354 GB, free: 6.816 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004459/0.7723, allocations: 1.793 MB / 0.6371 GB, free: 5.027 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.238e-06/0.7723, allocations: 5.812 kB / 0.6371 GB, free: 5.023 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00138/0.7737, allocations: 0.8439 MB / 0.638 GB, free: 4.188 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/0.7761, allocations: 460.7 kB / 0.6384 GB, free: 3.742 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006113/0.7822, allocations: 4.312 MB / 0.6426 GB, free: 15.37 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009485/0.7832, allocations: 1.393 MB / 0.644 GB, free: 13.95 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001657/0.7849, allocations: 0.7808 MB / 0.6447 GB, free: 13.17 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/0.7851, allocations: 91.42 kB / 0.6448 GB, free: 13.08 MB / 494.1 MB Notification: Performance of SimCode: time 6.61e-07/0.7851, allocations: 0 / 0.6448 GB, free: 13.08 MB / 494.1 MB Notification: Performance of Templates: time 0.09126/0.8764, allocations: 54.43 MB / 0.698 GB, free: 6.789 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpDCMotor/TestWaterPumpDCMotor.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches