Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") [: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.001042/0.001042, allocations: 182.3 kB / 8.52 MB, free: 1.828 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.363/1.363, allocations: 221.4 MB / 230.3 MB, free: 7.742 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.0009118/0.0009117, allocations: 78.14 kB / 281.2 MB, free: 5.469 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.1839/0.1839, allocations: 44.15 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.533e-06/6.552e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1226, allocations: 61.9 MB / 0.4941 GB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3438/0.4665, allocations: 87.24 MB / 0.5793 GB, free: 9.527 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.4668, allocations: 65.89 kB / 0.5793 GB, free: 9.492 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01887/0.4857, allocations: 5.921 MB / 0.5851 GB, free: 3.621 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.679e-05/0.4857, allocations: 4 kB / 0.5851 GB, free: 3.617 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0007919/0.4865, allocations: 0.561 MB / 0.5857 GB, free: 3.008 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.4866, allocations: 11.97 kB / 0.5857 GB, free: 2.996 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.137e-05/0.4866, allocations: 43.47 kB / 0.5857 GB, free: 2.953 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003443/0.487, allocations: 263.3 kB / 0.586 GB, free: 2.652 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.487, allocations: 12 kB / 0.586 GB, free: 2.641 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-05/0.4871, allocations: 24 kB / 0.586 GB, free: 2.617 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003412/0.4874, allocations: 169.4 kB / 0.5862 GB, free: 2.453 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004883/0.4879, allocations: 317.8 kB / 0.5865 GB, free: 2.109 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.488, allocations: 0 / 0.5865 GB, free: 2.109 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.488, allocations: 4.75 kB / 0.5865 GB, free: 2.105 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.488, allocations: 11.91 kB / 0.5865 GB, free: 2.094 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002358/0.4904, allocations: 1.649 MB / 0.5881 GB, free: 360 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003429/0.4907, allocations: 195 kB / 0.5883 GB, free: 112 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.4909, allocations: 82.08 kB / 0.5884 GB, free: 8 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.4909, allocations: 0 / 0.5884 GB, free: 8 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001079/0.491, allocations: 50.48 kB / 0.5884 GB, free: 15.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 1.843e-06/0.4911, allocations: 0 / 0.5884 GB, free: 15.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0005158/0.4916, allocations: 173.1 kB / 0.5886 GB, free: 15.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.4917, allocations: 212.6 kB / 0.5888 GB, free: 15.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.4919, allocations: 208.9 kB / 0.589 GB, free: 15.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.492, allocations: 29.8 kB / 0.589 GB, free: 15.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.4921, allocations: 227.1 kB / 0.5892 GB, free: 15.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.438e-05/0.4922, allocations: 114.5 kB / 0.5893 GB, free: 14.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.223e-05/0.4922, allocations: 0 / 0.5893 GB, free: 14.93 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.4924, allocations: 338.8 kB / 0.5897 GB, free: 14.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.4925, allocations: 73.31 kB / 0.5897 GB, free: 14.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003235/0.4929, allocations: 399.6 kB / 0.5901 GB, free: 13.97 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.4931, allocations: 143.8 kB / 0.5903 GB, free: 13.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.4931, allocations: 4 kB / 0.5903 GB, free: 13.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006222/0.4937, allocations: 429.8 kB / 0.5907 GB, free: 13.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.4937, allocations: 7.984 kB / 0.5907 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.4938, allocations: 12.22 kB / 0.5907 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.557e-05/0.4938, allocations: 28 kB / 0.5907 GB, free: 13.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004807/0.4943, allocations: 147.8 kB / 0.5909 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.187e-05/0.4943, allocations: 19.92 kB / 0.5909 GB, free: 13.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.4946, allocations: 59.36 kB / 0.5909 GB, free: 13.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.075e-05/0.4947, allocations: 32 kB / 0.591 GB, free: 13.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.4948, allocations: 136.7 kB / 0.5911 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.495, allocations: 27.62 kB / 0.5911 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.207e-05/0.495, allocations: 33.7 kB / 0.5911 GB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.4951, allocations: 4 kB / 0.5911 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/0.4951, allocations: 0 / 0.5911 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.4951, allocations: 4 kB / 0.5912 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.4962, allocations: 0.5857 MB / 0.5917 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.4962, allocations: 4 kB / 0.5917 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004992/0.4967, allocations: 95.77 kB / 0.5918 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.157e-06/0.4967, allocations: 4 kB / 0.5918 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.4968, allocations: 11.94 kB / 0.5918 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.4968, allocations: 4 kB / 0.5918 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.4968, allocations: 0 / 0.5918 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006927/0.4975, allocations: 0.8849 MB / 0.5927 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.234e-05/0.4976, allocations: 108.7 kB / 0.5928 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.716e-05/0.4976, allocations: 8 kB / 0.5928 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003462/0.498, allocations: 7.984 kB / 0.5928 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.498, allocations: 19.89 kB / 0.5928 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.4981, allocations: 11.98 kB / 0.5929 GB, free: 11 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001171/0.4982, allocations: 157.2 kB / 0.593 GB, free: 10.85 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006833/0.4989, allocations: 87.78 kB / 0.5931 GB, free: 10.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001534/0.499, allocations: 107.8 kB / 0.5932 GB, free: 10.65 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00036/0.4994, allocations: 230.2 kB / 0.5934 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.4994, allocations: 8.25 kB / 0.5934 GB, free: 10.42 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.967e-05/0.4995, allocations: 72.11 kB / 0.5935 GB, free: 10.35 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006245/0.5001, allocations: 66.52 kB / 0.5935 GB, free: 10.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002021/0.5022, allocations: 1.441 MB / 0.595 GB, free: 8.805 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004708/0.5027, allocations: 0.8338 MB / 0.5958 GB, free: 7.945 MB / 410.7 MB Notification: Performance of SimCode: time 4.31e-07/0.5027, allocations: 4 kB / 0.5958 GB, free: 7.941 MB / 410.7 MB Notification: Performance of Templates: time 0.006245/0.5089, allocations: 2.861 MB / 0.5986 GB, free: 5.098 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches