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.0009084/0.0009084, allocations: 180.3 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 221.3 MB / 236 MB, free: 2.938 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.0007709/0.0007709, allocations: 84.05 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1768/0.1768, allocations: 44.17 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.438e-05/2.44e-05, allocations: 4 kB / 451.8 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1186, allocations: 61.91 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3574/0.476, allocations: 87.97 MB / 0.5876 GB, free: 1.332 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.4763, allocations: 67.97 kB / 0.5877 GB, free: 1.266 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01612/0.4924, allocations: 6.275 MB / 0.5938 GB, free: 10.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4925, allocations: 0 / 0.5938 GB, free: 10.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.208e-05/0.4925, allocations: 8 kB / 0.5938 GB, free: 10.98 MB / 410.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.000674/0.4932, allocations: 0.5571 MB / 0.5944 GB, free: 10.37 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.4932, allocations: 8.031 kB / 0.5944 GB, free: 10.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.144e-05/0.4933, allocations: 43.53 kB / 0.5944 GB, free: 10.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.4936, allocations: 263.3 kB / 0.5947 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.4936, allocations: 28.78 kB / 0.5947 GB, free: 9.992 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.808e-05/0.4937, allocations: 39.91 kB / 0.5947 GB, free: 9.953 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005284/0.4942, allocations: 371.4 kB / 0.5951 GB, free: 9.559 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.4942, allocations: 11.84 kB / 0.5951 GB, free: 9.547 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/0.4943, allocations: 16 kB / 0.5951 GB, free: 9.531 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.4943, allocations: 8 kB / 0.5951 GB, free: 9.523 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003089/0.4946, allocations: 195.8 kB / 0.5953 GB, free: 9.332 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.4965, allocations: 1.711 MB / 0.597 GB, free: 7.516 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003325/0.4969, allocations: 246.3 kB / 0.5972 GB, free: 7.211 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.497, allocations: 90.06 kB / 0.5973 GB, free: 7.102 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.497, allocations: 10.84 kB / 0.5973 GB, free: 7.094 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.497, allocations: 46.48 kB / 0.5973 GB, free: 7.039 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 1.453e-06/0.4971, allocations: 0 / 0.5973 GB, free: 7.039 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004078/0.4975, allocations: 185.2 kB / 0.5975 GB, free: 6.852 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.968e-05/0.4976, allocations: 213.6 kB / 0.5977 GB, free: 6.594 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002066/0.4978, allocations: 247.2 kB / 0.598 GB, free: 6.344 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.4978, allocations: 29.7 kB / 0.598 GB, free: 6.309 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.498, allocations: 243.3 kB / 0.5982 GB, free: 6.062 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.354e-05/0.4981, allocations: 114.5 kB / 0.5983 GB, free: 5.949 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.39e-05/0.4981, allocations: 8 kB / 0.5983 GB, free: 5.941 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.4982, allocations: 346.8 kB / 0.5987 GB, free: 5.594 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.4983, allocations: 89.55 kB / 0.5988 GB, free: 5.504 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003311/0.4987, allocations: 406.2 kB / 0.5991 GB, free: 4.945 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/0.4989, allocations: 159.8 kB / 0.5993 GB, free: 4.789 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.4989, allocations: 8 kB / 0.5993 GB, free: 4.781 MB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006615/0.4996, allocations: 0.4975 MB / 0.5998 GB, free: 4.277 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.4996, allocations: 12 kB / 0.5998 GB, free: 4.266 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.4996, allocations: 12 kB / 0.5998 GB, free: 4.254 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.4997, allocations: 16 kB / 0.5998 GB, free: 4.238 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004064/0.5001, allocations: 151.7 kB / 0.6 GB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.098e-05/0.5001, allocations: 19.92 kB / 0.6 GB, free: 4.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00026/0.5004, allocations: 67.38 kB / 0.6001 GB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/0.5004, allocations: 32.06 kB / 0.6001 GB, free: 3.973 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 8.817e-05/0.5005, allocations: 150.7 kB / 0.6002 GB, free: 3.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.5007, allocations: 43.84 kB / 0.6003 GB, free: 3.777 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.597e-05/0.5007, allocations: 33.91 kB / 0.6003 GB, free: 3.742 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.5008, allocations: 11.92 kB / 0.6003 GB, free: 3.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.5008, allocations: 4 kB / 0.6003 GB, free: 3.727 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.5008, allocations: 0 / 0.6003 GB, free: 3.727 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.5019, allocations: 0.6515 MB / 0.601 GB, free: 3.012 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.5019, allocations: 0 / 0.601 GB, free: 3.012 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004144/0.5023, allocations: 91.89 kB / 0.601 GB, free: 2.922 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.5023, allocations: 4 kB / 0.601 GB, free: 2.918 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.5023, allocations: 8 kB / 0.6011 GB, free: 2.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.5023, allocations: 7.984 kB / 0.6011 GB, free: 2.902 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.5023, allocations: 7.938 kB / 0.6011 GB, free: 2.895 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005994/0.503, allocations: 0.8938 MB / 0.6019 GB, free: 1.922 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.999e-05/0.503, allocations: 108.9 kB / 0.602 GB, free: 1.797 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.86e-05/0.5031, allocations: 8 kB / 0.6021 GB, free: 1.789 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003108/0.5034, allocations: 16 kB / 0.6021 GB, free: 1.773 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.309e-05/0.5035, allocations: 23.92 kB / 0.6021 GB, free: 1.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.5035, allocations: 8 kB / 0.6021 GB, free: 1.742 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001515/0.5036, allocations: 183.1 kB / 0.6023 GB, free: 1.566 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5036, allocations: 0 / 0.6023 GB, free: 1.566 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006069/0.5043, allocations: 111.9 kB / 0.6024 GB, free: 1.457 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.0001258/0.5044, allocations: 114.4 kB / 0.6025 GB, free: 1.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003677/0.5048, allocations: 261.5 kB / 0.6027 GB, free: 1.086 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.5048, allocations: 3.938 kB / 0.6027 GB, free: 1.082 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.5049, allocations: 79.86 kB / 0.6028 GB, free: 1.004 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005744/0.5055, allocations: 58.03 kB / 0.6029 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.5073, allocations: 1.532 MB / 0.6044 GB, free: 15.37 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.5077, allocations: 0.8072 MB / 0.6052 GB, free: 14.54 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.5079, allocations: 39.27 kB / 0.6052 GB, free: 14.49 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.802e-05/0.5079, allocations: 31.42 kB / 0.6052 GB, free: 14.46 MB / 426.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5079, allocations: 0 / 0.6052 GB, free: 14.46 MB / 426.7 MB Notification: Performance of Templates: time 0.005475/0.5134, allocations: 2.662 MB / 0.6078 GB, free: 11.82 MB / 426.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