Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 170.5 kB / 8.514 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 221.4 MB / 230.3 MB, free: 7.688 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 84.73 kB / 281.2 MB, free: 5.438 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2078/0.2078, allocations: 44.15 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.759e-06/9.779e-06, allocations: 224 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.186, allocations: 61.92 MB / 0.4941 GB, free: 1.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.999/5.185, allocations: 2.803 GB / 3.297 GB, free: 163.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/5.185, allocations: 84.44 kB / 3.297 GB, free: 163.9 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.389/6.574, allocations: 459.4 MB / 3.745 GB, free: 74.02 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001429/6.574, allocations: 36.91 kB / 3.745 GB, free: 74.02 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.01024/6.584, allocations: 2.324 MB / 3.748 GB, free: 72.84 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/6.584, allocations: 11.94 kB / 3.748 GB, free: 72.84 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003085/6.587, allocations: 458.8 kB / 3.748 GB, free: 72.76 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001821/6.589, allocations: 0.9824 MB / 3.749 GB, free: 72.43 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.83e-05/6.589, allocations: 48.72 kB / 3.749 GB, free: 72.43 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/6.589, allocations: 79.33 kB / 3.749 GB, free: 72.43 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001595/6.591, allocations: 0.9372 MB / 3.75 GB, free: 72.42 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/6.593, allocations: 1.212 MB / 3.751 GB, free: 72.13 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.918e-05/6.593, allocations: 11.16 kB / 3.751 GB, free: 72.13 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/6.593, allocations: 3.406 kB / 3.751 GB, free: 72.13 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.901e-05/6.593, allocations: 47.08 kB / 3.751 GB, free: 72.12 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.158/6.751, allocations: 86.84 MB / 3.836 GB, free: 16.66 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005375/6.752, allocations: 333.9 kB / 3.837 GB, free: 16.46 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003348/6.752, allocations: 258.3 kB / 3.837 GB, free: 16.31 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03269/6.785, allocations: 16.63 MB / 3.853 GB, free: 16.01 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.463e-05/6.785, allocations: 44.84 kB / 3.853 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=60): time 2.966e-06/6.785, allocations: 0 / 3.853 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of matching and sorting (n=63): time 0.00747/6.792, allocations: 2.055 MB / 3.855 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.757e-05/6.792, allocations: 141.1 kB / 3.855 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/6.794, allocations: 0.7465 MB / 3.856 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.302e-05/6.794, allocations: 25.7 kB / 3.856 GB, free: 13.85 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000359/6.794, allocations: 0.6071 MB / 3.857 GB, free: 13.38 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/6.794, allocations: 215.2 kB / 3.857 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.024e-05/6.794, allocations: 0 / 3.857 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001397/6.795, allocations: 352.1 kB / 3.857 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004452/6.795, allocations: 272 kB / 3.857 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006336/6.796, allocations: 0.7144 MB / 3.858 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/6.797, allocations: 485.8 kB / 3.859 GB, free: 11.75 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/6.797, allocations: 4 kB / 3.859 GB, free: 11.75 MB / 0.5417 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003671/6.801, allocations: 1.479 MB / 3.86 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002077/6.803, allocations: 5.739 MB / 3.866 GB, free: 4.816 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.128e-05/6.803, allocations: 16 kB / 3.866 GB, free: 4.801 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008078/6.804, allocations: 197 kB / 3.866 GB, free: 4.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008729/6.805, allocations: 278.2 kB / 3.866 GB, free: 4.473 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001391/6.806, allocations: 0.9299 MB / 3.867 GB, free: 3.723 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/6.807, allocations: 122.1 kB / 3.867 GB, free: 3.629 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/6.808, allocations: 65.48 kB / 3.867 GB, free: 3.578 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.807e-06/6.808, allocations: 4 kB / 3.867 GB, free: 3.574 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003135/6.811, allocations: 1.087 MB / 3.868 GB, free: 2.938 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.221e-05/6.811, allocations: 16.06 kB / 3.868 GB, free: 2.922 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008795/6.812, allocations: 191.2 kB / 3.868 GB, free: 2.801 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008412/6.812, allocations: 274 kB / 3.869 GB, free: 2.578 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/6.814, allocations: 0.8183 MB / 3.869 GB, free: 1.871 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/6.815, allocations: 96.91 kB / 3.87 GB, free: 1.801 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/6.815, allocations: 62.86 kB / 3.87 GB, free: 1.754 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.0002546/6.815, allocations: 149.9 kB / 3.87 GB, free: 1.605 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008656/6.816, allocations: 315.8 kB / 3.87 GB, free: 1.406 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003038/6.819, allocations: 2.057 MB / 3.872 GB, free: 216 kB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/6.819, allocations: 19.31 kB / 3.872 GB, free: 200 kB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/6.819, allocations: 0 / 3.872 GB, free: 200 kB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/6.819, allocations: 4.047 kB / 3.872 GB, free: 200 kB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005716/6.825, allocations: 3.298 MB / 3.875 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.738e-06/6.825, allocations: 4.406 kB / 3.875 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004474/6.825, allocations: 114.7 kB / 3.875 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001216/6.827, allocations: 0.6582 MB / 3.876 GB, free: 12.72 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.184e-05/6.827, allocations: 15.7 kB / 3.876 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001679/6.828, allocations: 1.285 MB / 3.877 GB, free: 11.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/6.829, allocations: 7.141 kB / 3.877 GB, free: 11.49 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004034/6.833, allocations: 2.282 MB / 3.88 GB, free: 9.293 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009653/6.834, allocations: 340.1 kB / 3.88 GB, free: 8.992 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003824/6.834, allocations: 5.406 kB / 3.88 GB, free: 8.988 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009941/6.835, allocations: 67.05 kB / 3.88 GB, free: 8.938 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/6.835, allocations: 51.48 kB / 3.88 GB, free: 8.906 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.343e-05/6.835, allocations: 31.5 kB / 3.88 GB, free: 8.879 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001173/6.836, allocations: 0.6846 MB / 3.881 GB, free: 8.242 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007688/6.844, allocations: 1.599 MB / 3.882 GB, free: 6.676 MB / 0.5573 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.009675/6.854, allocations: 1.983 MB / 3.884 GB, free: 5.051 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003312/6.857, allocations: 1.556 MB / 3.886 GB, free: 3.59 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/6.857, allocations: 4 kB / 3.886 GB, free: 3.586 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001008/6.858, allocations: 0.6903 MB / 3.886 GB, free: 2.941 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/6.86, allocations: 334.6 kB / 3.887 GB, free: 2.688 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005047/6.865, allocations: 2.198 MB / 3.889 GB, free: 0.6289 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2395/7.105, allocations: 1.357 MB / 3.89 GB, free: 140.4 MB / 0.5573 GB Notification: Performance of SimCode: time 1.273e-06/7.105, allocations: 7.094 kB / 3.89 GB, free: 140.4 MB / 0.5573 GB Notification: Performance of Templates: time 0.07064/7.176, allocations: 49.7 MB / 3.939 GB, free: 139.5 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches