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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 173 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.685/1.685, allocations: 221.5 MB / 230.7 MB, free: 7.504 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.0008757/0.0008757, allocations: 99.12 kB / 281.6 MB, free: 5.246 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.1863/0.1863, allocations: 44.14 MB / 376.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.507e-05/1.51e-05, allocations: 4 kB / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 61.91 MB / 0.4947 GB, free: 1.246 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3517/0.4631, allocations: 87.32 MB / 0.5799 GB, free: 9.172 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.4634, allocations: 71.95 kB / 0.58 GB, free: 9.102 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02509/0.4885, allocations: 6.219 MB / 0.5861 GB, free: 2.875 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4886, allocations: 0 / 0.5861 GB, free: 2.875 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.289e-05/0.4886, allocations: 8 kB / 0.5861 GB, free: 2.867 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.001125/0.4898, allocations: 0.5571 MB / 0.5866 GB, free: 2.266 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.4898, allocations: 11.98 kB / 0.5866 GB, free: 2.254 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.4899, allocations: 39.53 kB / 0.5867 GB, free: 2.215 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.4903, allocations: 251.4 kB / 0.5869 GB, free: 1.926 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.4904, allocations: 12 kB / 0.5869 GB, free: 1.914 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.558e-05/0.4905, allocations: 40.62 kB / 0.587 GB, free: 1.875 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005114/0.491, allocations: 157.5 kB / 0.5871 GB, free: 1.719 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000694/0.4917, allocations: 317.8 kB / 0.5874 GB, free: 1.375 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.467e-05/0.4918, allocations: 11.84 kB / 0.5874 GB, free: 1.363 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.4918, allocations: 0 / 0.5874 GB, free: 1.363 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.926e-05/0.4918, allocations: 8 kB / 0.5874 GB, free: 1.355 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002789/0.4946, allocations: 1.653 MB / 0.5891 GB, free: 15.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004763/0.4951, allocations: 234.3 kB / 0.5893 GB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.4953, allocations: 78.12 kB / 0.5894 GB, free: 15.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.4954, allocations: 2.844 kB / 0.5894 GB, free: 15.22 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.4954, allocations: 46.5 kB / 0.5894 GB, free: 15.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 2.334e-06/0.4954, allocations: 0 / 0.5894 GB, free: 15.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006498/0.4961, allocations: 165.2 kB / 0.5896 GB, free: 15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.4962, allocations: 217.6 kB / 0.5898 GB, free: 14.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.4965, allocations: 210.3 kB / 0.59 GB, free: 14.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.275e-05/0.4966, allocations: 33.64 kB / 0.59 GB, free: 14.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002239/0.4968, allocations: 243.4 kB / 0.5902 GB, free: 14.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.4969, allocations: 110.5 kB / 0.5903 GB, free: 14.13 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.882e-05/0.497, allocations: 0 / 0.5903 GB, free: 14.13 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.4972, allocations: 342.8 kB / 0.5907 GB, free: 13.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.4974, allocations: 73.56 kB / 0.5907 GB, free: 13.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005218/0.4979, allocations: 400.6 kB / 0.5911 GB, free: 13.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003094/0.4982, allocations: 143.8 kB / 0.5912 GB, free: 13.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.4983, allocations: 7.938 kB / 0.5913 GB, free: 13.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009917/0.4993, allocations: 430 kB / 0.5917 GB, free: 12.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.4993, allocations: 16.03 kB / 0.5917 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/0.4993, allocations: 16 kB / 0.5917 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.072e-05/0.4994, allocations: 16 kB / 0.5917 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006722/0.5001, allocations: 151.7 kB / 0.5919 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.819e-05/0.5001, allocations: 19.94 kB / 0.5919 GB, free: 12.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004354/0.5006, allocations: 51.45 kB / 0.5919 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.694e-05/0.5006, allocations: 32 kB / 0.592 GB, free: 12.29 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.000155/0.5008, allocations: 140.6 kB / 0.5921 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000231/0.501, allocations: 31.62 kB / 0.5921 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.455e-05/0.5011, allocations: 29.83 kB / 0.5921 GB, free: 12.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.5012, allocations: 11.88 kB / 0.5922 GB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.5012, allocations: 0 / 0.5922 GB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.5012, allocations: 7.984 kB / 0.5922 GB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.5028, allocations: 0.5858 MB / 0.5927 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.5029, allocations: 4 kB / 0.5927 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006475/0.5035, allocations: 87.88 kB / 0.5928 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-05/0.5036, allocations: 4 kB / 0.5928 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.512e-05/0.5036, allocations: 8 kB / 0.5928 GB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.125e-06/0.5036, allocations: 4 kB / 0.5928 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.047e-05/0.5036, allocations: 4 kB / 0.5928 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000955/0.5046, allocations: 0.8834 MB / 0.5937 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.514e-05/0.5047, allocations: 101 kB / 0.5938 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.815e-05/0.5048, allocations: 11.95 kB / 0.5938 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005203/0.5053, allocations: 11.98 kB / 0.5938 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.623e-05/0.5054, allocations: 31.84 kB / 0.5939 GB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.18e-05/0.5054, allocations: 8 kB / 0.5939 GB, free: 10.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002025/0.5056, allocations: 154 kB / 0.594 GB, free: 10.03 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5057, allocations: 0 / 0.594 GB, free: 10.03 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001185/0.5068, allocations: 91.69 kB / 0.5941 GB, free: 9.941 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.0002155/0.5071, allocations: 108.6 kB / 0.5942 GB, free: 9.828 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005533/0.5076, allocations: 226.5 kB / 0.5944 GB, free: 9.609 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.5076, allocations: 0 / 0.5944 GB, free: 9.609 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.5078, allocations: 72.48 kB / 0.5945 GB, free: 9.539 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009726/0.5088, allocations: 65.03 kB / 0.5946 GB, free: 9.477 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003139/0.5119, allocations: 1.511 MB / 0.596 GB, free: 7.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005891/0.5125, allocations: 0.803 MB / 0.5968 GB, free: 7.078 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003048/0.5129, allocations: 47.25 kB / 0.5969 GB, free: 7.031 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.772e-05/0.513, allocations: 27.44 kB / 0.5969 GB, free: 7.004 MB / 410.7 MB Notification: Performance of SimCode: time 1.113e-06/0.513, allocations: 0 / 0.5969 GB, free: 7.004 MB / 410.7 MB Notification: Performance of Templates: time 0.008792/0.5218, allocations: 2.494 MB / 0.5993 GB, free: 4.535 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