Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0009169/0.0009169, allocations: 191.5 kB / 7.807 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.062/1.062, allocations: 205.2 MB / 213.4 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009397/0.0009398, allocations: 85.59 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1565/0.1565, allocations: 43.49 MB / 352.9 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.069e-06/5.089e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2319, allocations: 58.83 MB / 476.6 MB, free: 5.23 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.787/4.019, allocations: 2.797 GB / 3.262 GB, free: 58.23 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/4.019, allocations: 91.94 kB / 3.262 GB, free: 58.14 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.119/5.138, allocations: 454.8 MB / 3.706 GB, free: 6.707 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.891e-05/5.138, allocations: 35.83 kB / 3.706 GB, free: 6.676 MB / 0.5105 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.007115/5.145, allocations: 2.323 MB / 3.709 GB, free: 4.312 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/5.146, allocations: 12.03 kB / 3.709 GB, free: 4.301 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002871/5.148, allocations: 473.5 kB / 3.709 GB, free: 3.836 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001848/5.15, allocations: 0.9723 MB / 3.71 GB, free: 2.84 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.942e-05/5.15, allocations: 48 kB / 3.71 GB, free: 2.793 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001433/5.15, allocations: 76 kB / 3.71 GB, free: 2.719 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001665/5.152, allocations: 0.9346 MB / 3.711 GB, free: 1.781 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001852/5.154, allocations: 1.224 MB / 3.712 GB, free: 464 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.69e-05/5.154, allocations: 3.938 kB / 3.712 GB, free: 460 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.345e-05/5.154, allocations: 4 kB / 3.712 GB, free: 456 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.228e-05/5.154, allocations: 46.31 kB / 3.712 GB, free: 408 kB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2936/5.448, allocations: 86.82 MB / 3.797 GB, free: 43.05 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004653/5.448, allocations: 336.1 kB / 3.797 GB, free: 43.03 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003141/5.449, allocations: 250.6 kB / 3.798 GB, free: 43.02 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02852/5.477, allocations: 16.64 MB / 3.814 GB, free: 32.12 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.852e-05/5.477, allocations: 40.5 kB / 3.814 GB, free: 32.08 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=60): time 2.284e-06/5.477, allocations: 0 / 3.814 GB, free: 32.08 MB / 0.5105 GB Notification: Performance of matching and sorting (n=63): time 0.005756/5.483, allocations: 2.056 MB / 3.816 GB, free: 31.58 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/5.483, allocations: 142.5 kB / 3.816 GB, free: 31.42 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008892/5.484, allocations: 0.7439 MB / 3.817 GB, free: 31.27 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.212e-05/5.484, allocations: 25.7 kB / 3.817 GB, free: 31.24 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002243/5.484, allocations: 0.6091 MB / 3.817 GB, free: 30.94 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/5.484, allocations: 217.6 kB / 3.818 GB, free: 30.83 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.137e-05/5.484, allocations: 4 kB / 3.818 GB, free: 30.82 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.348e-05/5.484, allocations: 351.7 kB / 3.818 GB, free: 30.52 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003735/5.485, allocations: 270.9 kB / 3.818 GB, free: 30.52 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005154/5.485, allocations: 0.7086 MB / 3.819 GB, free: 29.95 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/5.487, allocations: 488.1 kB / 3.819 GB, free: 29.92 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/5.487, allocations: 3.969 kB / 3.819 GB, free: 29.92 MB / 0.5105 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003208/5.49, allocations: 1.478 MB / 3.821 GB, free: 29.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001172/5.491, allocations: 5.733 MB / 3.826 GB, free: 39.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/5.491, allocations: 16.88 kB / 3.826 GB, free: 39.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007736/5.492, allocations: 207.5 kB / 3.827 GB, free: 39.76 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008117/5.493, allocations: 272.1 kB / 3.827 GB, free: 39.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001264/5.494, allocations: 0.9272 MB / 3.828 GB, free: 39.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/5.495, allocations: 123.8 kB / 3.828 GB, free: 39.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.73e-05/5.495, allocations: 63.94 kB / 3.828 GB, free: 39.21 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.794e-06/5.495, allocations: 6.75 kB / 3.828 GB, free: 39.21 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002757/5.498, allocations: 1.085 MB / 3.829 GB, free: 39.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/5.498, allocations: 15.34 kB / 3.829 GB, free: 39.17 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008082/5.499, allocations: 184.7 kB / 3.829 GB, free: 39.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007974/5.5, allocations: 286.3 kB / 3.829 GB, free: 39.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/5.501, allocations: 0.8177 MB / 3.83 GB, free: 38.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009868/5.502, allocations: 93.73 kB / 3.83 GB, free: 38.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.907e-05/5.502, allocations: 61.39 kB / 3.83 GB, free: 38.62 MB / 0.5261 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.0002424/5.502, allocations: 148.1 kB / 3.831 GB, free: 38.51 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007377/5.503, allocations: 319.7 kB / 3.831 GB, free: 38.46 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002623/5.505, allocations: 2.054 MB / 3.833 GB, free: 38.27 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/5.506, allocations: 18.5 kB / 3.833 GB, free: 38.27 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/5.506, allocations: 0 / 3.833 GB, free: 38.27 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/5.506, allocations: 3.75 kB / 3.833 GB, free: 38.27 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00362/5.509, allocations: 3.299 MB / 3.836 GB, free: 37.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/5.509, allocations: 3.906 kB / 3.836 GB, free: 37.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003951/5.51, allocations: 103.4 kB / 3.836 GB, free: 37.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009477/5.511, allocations: 0.6671 MB / 3.837 GB, free: 37.76 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/5.511, allocations: 9.875 kB / 3.837 GB, free: 37.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001312/5.512, allocations: 1.284 MB / 3.838 GB, free: 37.22 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/5.512, allocations: 8.531 kB / 3.838 GB, free: 37.22 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002707/5.515, allocations: 2.291 MB / 3.84 GB, free: 36.62 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004907/5.515, allocations: 344.4 kB / 3.841 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/5.515, allocations: 3.5 kB / 3.841 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006795/5.516, allocations: 63.34 kB / 3.841 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.495e-05/5.516, allocations: 55.09 kB / 3.841 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.814e-05/5.516, allocations: 24.72 kB / 3.841 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0008866/5.517, allocations: 0.6885 MB / 3.841 GB, free: 36.34 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005675/5.523, allocations: 1.598 MB / 3.843 GB, free: 36.34 MB / 0.5261 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.006269/5.529, allocations: 1.974 MB / 3.845 GB, free: 36.11 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002457/5.532, allocations: 1.556 MB / 3.846 GB, free: 36.07 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/5.532, allocations: 0 / 3.846 GB, free: 36.07 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007094/5.532, allocations: 0.693 MB / 3.847 GB, free: 36.06 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001638/5.534, allocations: 328.8 kB / 3.847 GB, free: 36.04 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003402/5.537, allocations: 2.189 MB / 3.85 GB, free: 35.32 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008301/5.538, allocations: 1.361 MB / 3.851 GB, free: 34.58 MB / 0.5261 GB Notification: Performance of SimCode: time 4.3e-07/5.538, allocations: 4 kB / 3.851 GB, free: 34.57 MB / 0.5261 GB Notification: Performance of Templates: time 0.06019/5.598, allocations: 49.62 MB / 3.899 GB, free: 27.57 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpDCMotor/TestWaterPumpDCMotor.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches