Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|housing.T|motor.inertiaRotor.phi|motor.inertiaRotor.w|motor.la.i",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|housing.T|motor.inertiaRotor.phi|motor.inertiaRotor.w|motor.la.i",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002446/0.002446, allocations: 172.2 kB / 8.149 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.782/1.782, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001293/0.001292, allocations: 94.67 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2713/0.2713, allocations: 43.49 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.326e-06/8.636e-06, allocations: 0 / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3051, allocations: 58.84 MB / 476.6 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.115/6.42, allocations: 2.797 GB / 3.262 GB, free: 97.07 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/6.421, allocations: 92.64 kB / 3.262 GB, free: 97.07 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.885/8.306, allocations: 455.5 MB / 3.707 GB, free: 54.74 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001416/8.306, allocations: 35.39 kB / 3.707 GB, free: 54.73 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.0103/8.316, allocations: 2.348 MB / 3.71 GB, free: 53.55 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/8.316, allocations: 13.16 kB / 3.71 GB, free: 53.55 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004728/8.321, allocations: 464.1 kB / 3.71 GB, free: 53.47 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003259/8.324, allocations: 0.99 MB / 3.711 GB, free: 53.13 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/8.324, allocations: 48.12 kB / 3.711 GB, free: 53.13 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003869/8.325, allocations: 83.83 kB / 3.711 GB, free: 53.13 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00331/8.328, allocations: 0.9591 MB / 3.712 GB, free: 53.12 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003373/8.332, allocations: 1.242 MB / 3.713 GB, free: 52.83 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.415e-05/8.332, allocations: 8.594 kB / 3.713 GB, free: 52.83 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001853/8.332, allocations: 0 / 3.713 GB, free: 52.83 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.247e-05/8.332, allocations: 50.23 kB / 3.713 GB, free: 52.82 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3158/8.648, allocations: 86.79 MB / 3.798 GB, free: 23.91 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008864/8.649, allocations: 345.8 kB / 3.799 GB, free: 23.58 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000609/8.649, allocations: 273.7 kB / 3.799 GB, free: 23.32 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05609/8.706, allocations: 16.64 MB / 3.815 GB, free: 6.656 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.741e-05/8.706, allocations: 39.22 kB / 3.815 GB, free: 6.609 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=63): time 3.346e-06/8.706, allocations: 0 / 3.815 GB, free: 6.609 MB / 0.5261 GB Notification: Performance of matching and sorting (n=66): time 0.009448/8.715, allocations: 2.085 MB / 3.817 GB, free: 4.762 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.518e-05/8.715, allocations: 138.2 kB / 3.817 GB, free: 4.598 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001598/8.717, allocations: 0.749 MB / 3.818 GB, free: 3.895 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001424/8.717, allocations: 25.7 kB / 3.818 GB, free: 3.863 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003488/8.717, allocations: 0.6139 MB / 3.819 GB, free: 3.297 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002348/8.718, allocations: 235.4 kB / 3.819 GB, free: 3.086 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.512e-05/8.718, allocations: 0 / 3.819 GB, free: 3.086 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.2293/8.947, allocations: 361.8 kB / 3.819 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001452/8.948, allocations: 276 kB / 3.819 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/8.95, allocations: 0.7085 MB / 3.82 GB, free: 133.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002385/8.952, allocations: 486.8 kB / 3.821 GB, free: 133.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.365e-05/8.952, allocations: 3.719 kB / 3.821 GB, free: 133.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.005835/8.958, allocations: 1.432 MB / 3.822 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001212/8.959, allocations: 5.662 MB / 3.828 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.544e-05/8.959, allocations: 13.38 kB / 3.828 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009772/8.96, allocations: 152.6 kB / 3.828 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002112/8.962, allocations: 293.8 kB / 3.828 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001838/8.964, allocations: 0.8428 MB / 3.829 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/8.966, allocations: 97.98 kB / 3.829 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001664/8.966, allocations: 74.39 kB / 3.829 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/8.966, allocations: 3.938 kB / 3.829 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005545/8.972, allocations: 1.082 MB / 3.83 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-05/8.972, allocations: 15.72 kB / 3.83 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001255/8.973, allocations: 148.9 kB / 3.83 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001992/8.975, allocations: 297.7 kB / 3.83 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/8.976, allocations: 0.7484 MB / 3.831 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/8.978, allocations: 98.91 kB / 3.831 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001598/8.978, allocations: 65.05 kB / 3.831 GB, free: 126.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (134): * Single equations (assignments): 133 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003872/8.979, allocations: 78 kB / 3.831 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001328/8.98, allocations: 315 kB / 3.832 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005219/8.985, allocations: 2.114 MB / 3.834 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.818e-05/8.985, allocations: 16.64 kB / 3.834 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/8.985, allocations: 1.203 kB / 3.834 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.9e-05/8.986, allocations: 6.703 kB / 3.834 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007365/8.993, allocations: 3.363 MB / 3.837 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/8.993, allocations: 3.625 kB / 3.837 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/8.994, allocations: 125.2 kB / 3.837 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001618/8.996, allocations: 0.7007 MB / 3.838 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/8.996, allocations: 14.97 kB / 3.838 GB, free: 126 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002135/8.998, allocations: 1.262 MB / 3.839 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.006e-05/8.998, allocations: 3.812 kB / 3.839 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005342/9.003, allocations: 2.337 MB / 3.841 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009953/9.004, allocations: 342.6 kB / 3.842 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003607/9.005, allocations: 3.719 kB / 3.842 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001425/9.006, allocations: 78.02 kB / 3.842 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/9.006, allocations: 56.34 kB / 3.842 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.425e-05/9.006, allocations: 33.77 kB / 3.842 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001457/9.008, allocations: 0.682 MB / 3.843 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008482/9.016, allocations: 1.611 MB / 3.844 GB, free: 124.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (motor.inertiaRotor.phi,motor.inertiaRotor.w,motor.la.i,housing.T) * Number of discrete variables: 9 ($cse3.phase,$cse3.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 57 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.01168/9.028, allocations: 1.987 MB / 3.846 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004098/9.032, allocations: 1.544 MB / 3.848 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.248e-05/9.032, allocations: 0 / 3.848 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001387/9.034, allocations: 0.6977 MB / 3.848 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003417/9.037, allocations: 340.6 kB / 3.849 GB, free: 124.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006638/9.044, allocations: 2.299 MB / 3.851 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001502/9.045, allocations: 1.373 MB / 3.852 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.253e-06/9.045, allocations: 3.562 kB / 3.852 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.08872/9.134, allocations: 46.03 MB / 3.897 GB, free: 120.7 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpDCMotorHeatTransfer/TestWaterPumpDCMotorHeatTransfer.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotorHeatTransfer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches