Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001713/0.001713, allocations: 166.5 kB / 16.76 MB, free: 4.934 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007634/0.0007635, allocations: 92.98 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3259/0.3259, allocations: 43.56 MB / 363.1 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003694/0.0003695, allocations: 12 kB / 432.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1159, allocations: 58.85 MB / 491.5 MB, free: 10.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3137/0.4296, allocations: 86.99 MB / 0.5649 GB, free: 15.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.4299, allocations: 79.94 kB / 0.565 GB, free: 14.94 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01659/0.4465, allocations: 6.074 MB / 0.5709 GB, free: 8.891 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.4466, allocations: 0 / 0.5709 GB, free: 8.891 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.73e-05/0.4466, allocations: 10.95 kB / 0.5709 GB, free: 8.883 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.0009145/0.4475, allocations: 0.5688 MB / 0.5715 GB, free: 8.266 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.4476, allocations: 12.03 kB / 0.5715 GB, free: 8.254 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.676e-05/0.4477, allocations: 40.47 kB / 0.5715 GB, free: 8.215 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.448, allocations: 272.4 kB / 0.5718 GB, free: 7.906 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.4481, allocations: 29.38 kB / 0.5718 GB, free: 7.879 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.324e-05/0.4481, allocations: 48.28 kB / 0.5719 GB, free: 7.832 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006534/0.4488, allocations: 398.1 kB / 0.5722 GB, free: 7.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.875e-05/0.4488, allocations: 4.094 kB / 0.5722 GB, free: 7.406 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.343e-05/0.4489, allocations: 19.94 kB / 0.5723 GB, free: 7.387 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.4489, allocations: 16 kB / 0.5723 GB, free: 7.371 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004281/0.4493, allocations: 224.8 kB / 0.5725 GB, free: 7.152 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002282/0.4516, allocations: 1.721 MB / 0.5742 GB, free: 5.328 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000434/0.4521, allocations: 266.3 kB / 0.5744 GB, free: 5.004 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.4523, allocations: 98.05 kB / 0.5745 GB, free: 4.887 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.634e-05/0.4523, allocations: 4 kB / 0.5745 GB, free: 4.883 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.4523, allocations: 39.59 kB / 0.5746 GB, free: 4.836 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 3.857e-06/0.4523, allocations: 0 / 0.5746 GB, free: 4.836 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.0007081/0.4531, allocations: 281.1 kB / 0.5748 GB, free: 4.555 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.4532, allocations: 213.6 kB / 0.575 GB, free: 4.297 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003303/0.4535, allocations: 271 kB / 0.5753 GB, free: 4.027 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.369e-05/0.4536, allocations: 29.7 kB / 0.5753 GB, free: 3.992 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.4537, allocations: 240 kB / 0.5755 GB, free: 3.754 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.451e-05/0.4538, allocations: 114.4 kB / 0.5757 GB, free: 3.641 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.755e-05/0.4539, allocations: 12 kB / 0.5757 GB, free: 3.629 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.454, allocations: 354.7 kB / 0.576 GB, free: 3.273 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.4542, allocations: 97.25 kB / 0.5761 GB, free: 3.18 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004377/0.4547, allocations: 440.6 kB / 0.5765 GB, free: 2.59 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000721/0.4554, allocations: 0.5784 MB / 0.5771 GB, free: 1.852 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/0.4554, allocations: 4 kB / 0.5771 GB, free: 1.848 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008688/0.4563, allocations: 0.5249 MB / 0.5776 GB, free: 1.316 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.4563, allocations: 12 kB / 0.5776 GB, free: 1.305 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.86e-05/0.4564, allocations: 8 kB / 0.5776 GB, free: 1.297 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.766e-05/0.4564, allocations: 20.03 kB / 0.5776 GB, free: 1.277 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004432/0.4568, allocations: 151.7 kB / 0.5778 GB, free: 1.129 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.756e-05/0.4569, allocations: 23.88 kB / 0.5778 GB, free: 1.105 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003179/0.4572, allocations: 63.42 kB / 0.5779 GB, free: 1.043 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.165e-05/0.4573, allocations: 32 kB / 0.5779 GB, free: 1.012 MB / 394.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 () * Number of clocked 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.0002349/0.4575, allocations: 181.5 kB / 0.5781 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/0.4577, allocations: 39.62 kB / 0.5781 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.311e-05/0.4578, allocations: 33.78 kB / 0.5781 GB, free: 0.75 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.4578, allocations: 4 kB / 0.5781 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.4578, allocations: 7.984 kB / 0.5781 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.4578, allocations: 0 / 0.5781 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.459, allocations: 0.6364 MB / 0.5788 GB, free: 40 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.459, allocations: 16.05 kB / 0.5788 GB, free: 24 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004324/0.4595, allocations: 87.89 kB / 0.5789 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.4595, allocations: 4 kB / 0.5789 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.4595, allocations: 8 kB / 0.5789 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.687e-06/0.4596, allocations: 11.92 kB / 0.5789 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.4596, allocations: 7.938 kB / 0.5789 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007281/0.4603, allocations: 0.8351 MB / 0.5797 GB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.906e-05/0.4604, allocations: 116.8 kB / 0.5798 GB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.357e-05/0.4605, allocations: 8 kB / 0.5798 GB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003198/0.4608, allocations: 12 kB / 0.5798 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.306e-05/0.4609, allocations: 27.91 kB / 0.5799 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.4609, allocations: 11.98 kB / 0.5799 GB, free: 14.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001601/0.461, allocations: 178 kB / 0.5801 GB, free: 14.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.461, allocations: 0 / 0.5801 GB, free: 14.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007332/0.4618, allocations: 103.8 kB / 0.5802 GB, free: 14.58 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 () * Number of clocked 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.0001518/0.4619, allocations: 119.1 kB / 0.5803 GB, free: 14.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005386/0.4625, allocations: 301.8 kB / 0.5806 GB, free: 14.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4625, allocations: 0 / 0.5806 GB, free: 14.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001619/0.4627, allocations: 91.83 kB / 0.5806 GB, free: 14.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.4637, allocations: 77.88 kB / 0.5807 GB, free: 14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.4663, allocations: 1.883 MB / 0.5826 GB, free: 12.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004475/0.4668, allocations: 0.7992 MB / 0.5833 GB, free: 11.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002253/0.467, allocations: 39.27 kB / 0.5834 GB, free: 11.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.565e-05/0.4671, allocations: 35.42 kB / 0.5834 GB, free: 11.18 MB / 410.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4671, allocations: 0 / 0.5834 GB, free: 11.18 MB / 410.7 MB Notification: Performance of Templates: time 0.006406/0.4735, allocations: 2.685 MB / 0.586 GB, free: 8.52 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches