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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001152/0.001152, allocations: 198.8 kB / 8.538 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 225.5 MB / 234.4 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 90.38 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2476/0.2476, allocations: 45.14 MB / 383.3 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.298e-06/9.428e-06, allocations: 4 kB / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1435, allocations: 63.24 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.924/7.067, allocations: 2.804 GB / 3.307 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/7.068, allocations: 83.95 kB / 3.308 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.453/8.521, allocations: 459.5 MB / 3.756 GB, free: 49.43 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002372/8.521, allocations: 36.38 kB / 3.756 GB, free: 49.42 MB / 0.5261 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.0105/8.531, allocations: 2.332 MB / 3.759 GB, free: 47.54 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/8.531, allocations: 8.031 kB / 3.759 GB, free: 47.53 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004003/8.536, allocations: 461.9 kB / 3.759 GB, free: 47.17 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00325/8.539, allocations: 0.9806 MB / 3.76 GB, free: 46.31 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/8.539, allocations: 48 kB / 3.76 GB, free: 46.27 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004843/8.539, allocations: 76.75 kB / 3.76 GB, free: 46.19 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002686/8.542, allocations: 0.937 MB / 3.761 GB, free: 45.3 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003219/8.545, allocations: 1.222 MB / 3.762 GB, free: 44.14 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.286e-05/8.545, allocations: 7.938 kB / 3.762 GB, free: 44.13 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002267/8.546, allocations: 4.75 kB / 3.762 GB, free: 44.12 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.752e-05/8.546, allocations: 47.16 kB / 3.762 GB, free: 44.08 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4058/8.952, allocations: 97.79 MB / 3.858 GB, free: 85.3 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005975/8.952, allocations: 343.1 kB / 3.858 GB, free: 85.27 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003527/8.953, allocations: 250.1 kB / 3.858 GB, free: 85.27 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03323/8.986, allocations: 19.03 MB / 3.877 GB, free: 72.8 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.768e-05/8.986, allocations: 41.44 kB / 3.877 GB, free: 72.76 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=60): time 2.935e-06/8.986, allocations: 1.969 kB / 3.877 GB, free: 72.76 MB / 0.5417 GB Notification: Performance of matching and sorting (n=63): time 0.006962/8.993, allocations: 2.055 MB / 3.879 GB, free: 72.33 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/8.993, allocations: 137.1 kB / 3.879 GB, free: 72.17 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/8.994, allocations: 0.7415 MB / 3.88 GB, free: 72.02 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.164e-05/8.994, allocations: 29.67 kB / 3.88 GB, free: 71.99 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003311/8.995, allocations: 0.6104 MB / 3.88 GB, free: 71.69 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/8.995, allocations: 216.8 kB / 3.881 GB, free: 71.58 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.231e-05/8.995, allocations: 4 kB / 3.881 GB, free: 71.57 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.429e-05/8.995, allocations: 349.5 kB / 3.881 GB, free: 71.27 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004467/8.995, allocations: 271.1 kB / 3.881 GB, free: 71.27 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006708/8.996, allocations: 0.7081 MB / 3.882 GB, free: 70.71 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/8.997, allocations: 489 kB / 3.882 GB, free: 70.68 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/8.997, allocations: 6.406 kB / 3.882 GB, free: 70.68 MB / 0.5417 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003566/9.001, allocations: 1.483 MB / 3.884 GB, free: 70.56 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001057/9.002, allocations: 5.726 MB / 3.889 GB, free: 64.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/9.002, allocations: 11.75 kB / 3.889 GB, free: 64.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008188/9.003, allocations: 208.7 kB / 3.89 GB, free: 64.53 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009646/9.004, allocations: 280.7 kB / 3.89 GB, free: 64.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/9.005, allocations: 0.9182 MB / 3.891 GB, free: 64 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/9.007, allocations: 121.8 kB / 3.891 GB, free: 63.98 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/9.007, allocations: 66.89 kB / 3.891 GB, free: 63.98 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/9.007, allocations: 6.062 kB / 3.891 GB, free: 63.98 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003218/9.01, allocations: 1.09 MB / 3.892 GB, free: 63.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/9.01, allocations: 11.59 kB / 3.892 GB, free: 63.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008965/9.011, allocations: 190.6 kB / 3.892 GB, free: 63.93 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008411/9.012, allocations: 280 kB / 3.893 GB, free: 63.92 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/9.013, allocations: 0.813 MB / 3.893 GB, free: 63.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001294/9.014, allocations: 100.3 kB / 3.893 GB, free: 63.38 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.474e-05/9.015, allocations: 66.12 kB / 3.893 GB, free: 63.38 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 (pump.heatTransfer.states[1].phase,Source.medium.phase,Sink.medium.phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete 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.0003782/9.015, allocations: 145.1 kB / 3.894 GB, free: 63.28 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/9.016, allocations: 315 kB / 3.894 GB, free: 63.22 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003317/9.019, allocations: 2.055 MB / 3.896 GB, free: 63.03 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.418e-05/9.019, allocations: 21.83 kB / 3.896 GB, free: 63.03 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/9.019, allocations: 0 / 3.896 GB, free: 63.03 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/9.019, allocations: 3.469 kB / 3.896 GB, free: 63.03 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00468/9.024, allocations: 3.288 MB / 3.899 GB, free: 62.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/9.024, allocations: 3.188 kB / 3.899 GB, free: 62.58 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004392/9.025, allocations: 110.3 kB / 3.899 GB, free: 62.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00102/9.026, allocations: 0.6663 MB / 3.9 GB, free: 62.53 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.397e-05/9.026, allocations: 17.38 kB / 3.9 GB, free: 62.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/9.027, allocations: 1.291 MB / 3.901 GB, free: 61.99 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.802e-06/9.027, allocations: 6.438 kB / 3.901 GB, free: 61.99 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003156/9.03, allocations: 2.278 MB / 3.903 GB, free: 61.39 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006524/9.031, allocations: 345.9 kB / 3.904 GB, free: 61.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001993/9.031, allocations: 7.062 kB / 3.904 GB, free: 61.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007136/9.032, allocations: 64.03 kB / 3.904 GB, free: 61.22 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.578e-05/9.032, allocations: 58.08 kB / 3.904 GB, free: 61.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.101e-05/9.032, allocations: 28.86 kB / 3.904 GB, free: 61.21 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0009281/9.033, allocations: 0.6872 MB / 3.905 GB, free: 61.11 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006767/9.04, allocations: 1.603 MB / 3.906 GB, free: 61.11 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 3 (motor.inertiaRotor.phi,motor.inertiaRotor.w,motor.la.i) * Number of discrete variables: 9 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.009055/9.049, allocations: 1.996 MB / 3.908 GB, free: 60.87 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003087/9.052, allocations: 1.55 MB / 3.91 GB, free: 60.84 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/9.052, allocations: 0 / 3.91 GB, free: 60.84 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0008953/9.053, allocations: 0.6962 MB / 3.91 GB, free: 60.83 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002189/9.055, allocations: 337.7 kB / 3.911 GB, free: 60.81 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004095/9.059, allocations: 2.184 MB / 3.913 GB, free: 60.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008192/9.06, allocations: 1.353 MB / 3.914 GB, free: 59.35 MB / 0.5417 GB Notification: Performance of SimCode: time 8.72e-07/9.06, allocations: 0 / 3.914 GB, free: 59.35 MB / 0.5417 GB Notification: Performance of Templates: time 0.06913/9.129, allocations: 49.75 MB / 3.963 GB, free: 56.26 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/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