Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [: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.001494/0.001494, allocations: 181.6 kB / 8.52 MB, free: 1.824 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.216/1.216, allocations: 221.4 MB / 230.3 MB, free: 7.637 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.0009107/0.0009107, allocations: 90.53 kB / 281.2 MB, free: 5.453 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.2297/0.2297, allocations: 44.15 MB / 376.1 MB, free: 3.203 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.101e-06/6.131e-06, allocations: 3.938 kB / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1324, allocations: 61.91 MB / 0.4941 GB, free: 1.605 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3543/0.4868, allocations: 86.66 MB / 0.5787 GB, free: 10.06 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003279/0.4872, allocations: 67.34 kB / 0.5788 GB, free: 10.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.007098/0.4943, allocations: 2.266 MB / 0.581 GB, free: 7.812 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.4944, allocations: 4 kB / 0.581 GB, free: 7.809 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004667/0.4948, allocations: 406.1 kB / 0.5814 GB, free: 7.367 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.4949, allocations: 17.45 kB / 0.5814 GB, free: 7.352 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.736e-05/0.4949, allocations: 15.81 kB / 0.5814 GB, free: 7.336 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.4952, allocations: 190.8 kB / 0.5816 GB, free: 7.109 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.4952, allocations: 4 kB / 0.5816 GB, free: 7.105 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.055e-05/0.4953, allocations: 8 kB / 0.5816 GB, free: 7.098 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001731/0.4955, allocations: 71.98 kB / 0.5817 GB, free: 7.027 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001829/0.4956, allocations: 101.6 kB / 0.5818 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.4957, allocations: 0 / 0.5818 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.4957, allocations: 0 / 0.5818 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.4957, allocations: 4 kB / 0.5818 GB, free: 6.918 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006566/0.4964, allocations: 424.7 kB / 0.5822 GB, free: 6.465 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001355/0.4965, allocations: 73.7 kB / 0.5823 GB, free: 6.387 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.517e-05/0.4966, allocations: 44.86 kB / 0.5823 GB, free: 6.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.4966, allocations: 4 kB / 0.5823 GB, free: 6.336 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.4967, allocations: 44.88 kB / 0.5823 GB, free: 6.285 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.273e-06/0.4967, allocations: 0 / 0.5823 GB, free: 6.285 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.001291/0.498, allocations: 0.7092 MB / 0.583 GB, free: 5.488 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.498, allocations: 59.39 kB / 0.5831 GB, free: 5.418 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.522e-05/0.4981, allocations: 111.7 kB / 0.5832 GB, free: 5.305 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.4981, allocations: 25.7 kB / 0.5832 GB, free: 5.273 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.924e-05/0.4982, allocations: 112.3 kB / 0.5833 GB, free: 5.16 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.513e-05/0.4983, allocations: 59.11 kB / 0.5834 GB, free: 5.102 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-06/0.4983, allocations: 0 / 0.5834 GB, free: 5.102 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.4984, allocations: 326.7 kB / 0.5837 GB, free: 4.773 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.319e-05/0.4985, allocations: 36.38 kB / 0.5837 GB, free: 4.734 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.041e-05/0.4986, allocations: 68.73 kB / 0.5838 GB, free: 4.656 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.108e-05/0.4987, allocations: 39.98 kB / 0.5838 GB, free: 4.617 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.4987, allocations: 0 / 0.5838 GB, free: 4.617 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003094/0.499, allocations: 178.1 kB / 0.584 GB, free: 4.434 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.499, allocations: 8 kB / 0.584 GB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.499, allocations: 0 / 0.584 GB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001616/0.4992, allocations: 40.86 kB / 0.5841 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001804/0.4994, allocations: 39.98 kB / 0.5841 GB, free: 4.344 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/0.5009, allocations: 1.478 MB / 0.5855 GB, free: 2.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.483e-05/0.501, allocations: 4 kB / 0.5855 GB, free: 2.746 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.501, allocations: 4 kB / 0.5855 GB, free: 2.742 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.631e-05/0.5011, allocations: 108.9 kB / 0.5856 GB, free: 2.629 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.701e-05/0.5011, allocations: 16.03 kB / 0.5857 GB, free: 2.613 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.551e-05/0.5012, allocations: 8.562 kB / 0.5857 GB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.5012, allocations: 4 kB / 0.5857 GB, free: 2.594 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.5012, allocations: 3.938 kB / 0.5857 GB, free: 2.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.5012, allocations: 7.891 kB / 0.5857 GB, free: 2.582 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006845/0.5019, allocations: 0.4887 MB / 0.5862 GB, free: 2.043 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.5019, allocations: 0 / 0.5862 GB, free: 2.043 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.5021, allocations: 35.97 kB / 0.5862 GB, free: 2.008 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001063/0.5022, allocations: 40.72 kB / 0.5862 GB, free: 1.965 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.5022, allocations: 0 / 0.5862 GB, free: 1.965 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/0.5033, allocations: 1.307 MB / 0.5875 GB, free: 0.543 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.5033, allocations: 0 / 0.5875 GB, free: 0.543 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000434/0.5037, allocations: 329.4 kB / 0.5878 GB, free: 200 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.887e-05/0.5038, allocations: 89.02 kB / 0.5879 GB, free: 92 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.5038, allocations: 3.984 kB / 0.5879 GB, free: 88 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.5039, allocations: 5.062 kB / 0.5879 GB, free: 84 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.614e-05/0.504, allocations: 11.89 kB / 0.5879 GB, free: 72 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.504, allocations: 4 kB / 0.5879 GB, free: 68 kB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001156/0.5041, allocations: 105.1 kB / 0.588 GB, free: 15.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003216/0.5044, allocations: 35.94 kB / 0.5881 GB, free: 15.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001341/0.5046, allocations: 91.25 kB / 0.5882 GB, free: 15.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000383/0.505, allocations: 209.6 kB / 0.5884 GB, free: 15.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.505, allocations: 0 / 0.5884 GB, free: 15.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002184/0.5052, allocations: 173.8 kB / 0.5885 GB, free: 15.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002437/0.5055, allocations: 8 kB / 0.5885 GB, free: 15.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006808/0.5062, allocations: 323.2 kB / 0.5888 GB, free: 15.08 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003403/0.5065, allocations: 0.7387 MB / 0.5896 GB, free: 14.32 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5065, allocations: 0 / 0.5896 GB, free: 14.32 MB / 410.7 MB Notification: Performance of Templates: time 0.004102/0.5106, allocations: 1.574 MB / 0.5911 GB, free: 12.75 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches