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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.002371/0.002371, allocations: 201.5 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.59/1.59, allocations: 226.5 MB / 245.4 MB, free: 8.246 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001026/0.001026, allocations: 104.5 kB / 297.5 MB, free: 6.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4196/0.4196, allocations: 44.82 MB / 394.3 MB, free: 35.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002997/0.0002997, allocations: 8 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4533/0.4536, allocations: 62.95 MB / 0.5184 GB, free: 37.39 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.984/8.438, allocations: 2.805 GB / 3.323 GB, free: 168.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/8.438, allocations: 93.27 kB / 3.323 GB, free: 168.1 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.81/10.25, allocations: 444.2 MB / 3.757 GB, free: 66.81 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.016e-06/10.25, allocations: 0 / 3.757 GB, free: 66.81 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002503/10.25, allocations: 37.78 kB / 3.757 GB, free: 66.8 MB / 0.5417 GB 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.01189/10.26, allocations: 2.454 MB / 3.76 GB, free: 65.59 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/10.26, allocations: 8.75 kB / 3.76 GB, free: 65.59 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003574/10.26, allocations: 437.5 kB / 3.76 GB, free: 65.5 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003084/10.27, allocations: 1.009 MB / 3.761 GB, free: 65.14 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001521/10.27, allocations: 100.9 kB / 3.761 GB, free: 65.14 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004844/10.27, allocations: 130.9 kB / 3.761 GB, free: 65.14 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0052/10.27, allocations: 1.689 MB / 3.763 GB, free: 64.84 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001148/10.27, allocations: 4.375 kB / 3.763 GB, free: 64.84 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002568/10.27, allocations: 56.28 kB / 3.763 GB, free: 64.84 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.872e-05/10.27, allocations: 48.66 kB / 3.763 GB, free: 64.84 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003955/10.28, allocations: 1.35 MB / 3.764 GB, free: 64.82 MB / 0.5417 GB 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.01125/10.29, allocations: 7.86 MB / 3.772 GB, free: 60.24 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002528/10.29, allocations: 0.939 MB / 3.773 GB, free: 60.21 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006925/10.29, allocations: 379.1 kB / 3.773 GB, free: 60.2 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04275/10.33, allocations: 26.72 MB / 3.799 GB, free: 42.82 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.499e-05/10.33, allocations: 48.5 kB / 3.799 GB, free: 42.78 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=68): time 2.826e-06/10.33, allocations: 0 / 3.799 GB, free: 42.78 MB / 0.5417 GB Notification: Performance of matching and sorting (n=71): time 0.01098/10.35, allocations: 3.149 MB / 3.802 GB, free: 42.14 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.196e-05/10.35, allocations: 145.6 kB / 3.803 GB, free: 41.97 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001795/10.35, allocations: 0.983 MB / 3.803 GB, free: 41.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.118e-05/10.35, allocations: 38.8 kB / 3.804 GB, free: 41.77 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004755/10.35, allocations: 0.7021 MB / 3.804 GB, free: 41.43 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/10.35, allocations: 245.1 kB / 3.804 GB, free: 41.27 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.945e-05/10.35, allocations: 22.38 kB / 3.804 GB, free: 41.27 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001032/10.35, allocations: 348.7 kB / 3.805 GB, free: 40.97 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007403/10.35, allocations: 337.2 kB / 3.805 GB, free: 40.96 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009281/10.35, allocations: 0.7855 MB / 3.806 GB, free: 40.41 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001638/10.35, allocations: 1.158 MB / 3.807 GB, free: 39.88 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.592e-05/10.35, allocations: 2.875 kB / 3.807 GB, free: 39.88 MB / 0.5417 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00268/10.35, allocations: 1.311 MB / 3.808 GB, free: 39.76 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002902/10.35, allocations: 0.5228 MB / 3.809 GB, free: 39.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/10.35, allocations: 17.03 kB / 3.809 GB, free: 39.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00177/10.36, allocations: 351.1 kB / 3.809 GB, free: 39.15 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007919/10.36, allocations: 266 kB / 3.809 GB, free: 39.15 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001135/10.36, allocations: 0.817 MB / 3.81 GB, free: 38.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001248/10.36, allocations: 98.41 kB / 3.81 GB, free: 38.62 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/10.36, allocations: 61.86 kB / 3.81 GB, free: 38.62 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/10.36, allocations: 7.438 kB / 3.81 GB, free: 38.62 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00257/10.36, allocations: 1.192 MB / 3.812 GB, free: 38.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.134e-05/10.36, allocations: 14.81 kB / 3.812 GB, free: 38.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009816/10.36, allocations: 221.2 kB / 3.812 GB, free: 38.59 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007881/10.36, allocations: 271.8 kB / 3.812 GB, free: 38.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/10.37, allocations: 0.7795 MB / 3.813 GB, free: 38.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001192/10.37, allocations: 105 kB / 3.813 GB, free: 38.05 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/10.37, allocations: 62.92 kB / 3.813 GB, free: 38.05 MB / 0.5417 GB 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 (128): * Single equations (assignments): 127 * 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.0008649/10.37, allocations: 399.5 kB / 3.813 GB, free: 37.85 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003063/10.37, allocations: 122.4 kB / 3.813 GB, free: 37.79 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004099/10.37, allocations: 3.12 MB / 3.816 GB, free: 37.42 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.791e-05/10.37, allocations: 34.69 kB / 3.817 GB, free: 37.42 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/10.37, allocations: 0 / 3.817 GB, free: 37.42 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/10.37, allocations: 3.375 kB / 3.817 GB, free: 37.42 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006396/10.38, allocations: 4.659 MB / 3.821 GB, free: 36.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/10.38, allocations: 3.406 kB / 3.821 GB, free: 36.87 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000534/10.38, allocations: 152.4 kB / 3.821 GB, free: 36.86 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002094/10.38, allocations: 1.079 MB / 3.822 GB, free: 36.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.686e-05/10.38, allocations: 18.34 kB / 3.822 GB, free: 36.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001383/10.38, allocations: 1.445 MB / 3.824 GB, free: 36.24 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/10.38, allocations: 3.844 kB / 3.824 GB, free: 36.24 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003868/10.39, allocations: 2.895 MB / 3.827 GB, free: 35.82 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009485/10.39, allocations: 434.7 kB / 3.827 GB, free: 35.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004347/10.39, allocations: 22.34 kB / 3.827 GB, free: 35.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/10.39, allocations: 83.31 kB / 3.827 GB, free: 35.59 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/10.39, allocations: 69.22 kB / 3.827 GB, free: 35.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.647e-05/10.39, allocations: 25.09 kB / 3.827 GB, free: 35.59 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001501/10.39, allocations: 0.8619 MB / 3.828 GB, free: 35.47 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.21e-07/10.39, allocations: 0 / 3.828 GB, free: 35.47 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007815/10.4, allocations: 1.672 MB / 3.83 GB, free: 35.27 MB / 0.5417 GB 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.009696/10.41, allocations: 1.837 MB / 3.831 GB, free: 34.83 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004561/10.41, allocations: 1.765 MB / 3.833 GB, free: 34.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/10.41, allocations: 3.844 kB / 3.833 GB, free: 34.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001384/10.41, allocations: 0.8202 MB / 3.834 GB, free: 34.65 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003771/10.42, allocations: 471.2 kB / 3.834 GB, free: 34.61 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007346/10.43, allocations: 4.279 MB / 3.839 GB, free: 32.29 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001339/10.43, allocations: 1.358 MB / 3.84 GB, free: 31.53 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001977/10.43, allocations: 0.7368 MB / 3.841 GB, free: 31.47 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/10.43, allocations: 89.95 kB / 3.841 GB, free: 31.46 MB / 0.5417 GB Notification: Performance of SimCode: time 1.412e-06/10.43, allocations: 0 / 3.841 GB, free: 31.46 MB / 0.5417 GB Notification: Performance of Templates: time 0.09131/10.52, allocations: 52.15 MB / 3.892 GB, free: 14.88 MB / 0.5417 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/jenkins1/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