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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002178/0.002178, allocations: 101.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001868/0.001868, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.294/2.294, allocations: 222.9 MB / 242.4 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3345/0.3345, allocations: 44.18 MB / 336.8 MB, free: 3.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 65.12 kB / 408.3 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.1822, allocations: 60.82 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.006537/0.1888, allocations: 2.871 MB / 472 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00186/0.1907, allocations: 0.6895 MB / 472.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003503/0.1911, allocations: 11.94 kB / 472.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002804/0.1914, allocations: 39.69 kB / 472.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004358/0.1919, allocations: 111.1 kB / 472.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004246/0.1923, allocations: 75.92 kB / 473 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006033/0.1929, allocations: 410 kB / 473.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003478/0.1933, allocations: 121 kB / 473.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003268/0.1936, allocations: 151.4 kB / 473.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002874/0.1939, allocations: 171.2 kB / 473.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.062e-05/0.194, allocations: 28 kB / 473.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.127e-05/0.1941, allocations: 27.94 kB / 473.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.018e-05/0.1942, allocations: 63.7 kB / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002882/0.1945, allocations: 195 kB / 474.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004511/0.195, allocations: 315.5 kB / 474.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.195, allocations: 0 / 474.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.195, allocations: 0 / 474.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.1951, allocations: 0 / 474.4 MB, free: 9.594 MB / 350.1 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.001446/0.1965, allocations: 0.6396 MB / 475.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/0.1966, allocations: 12.02 kB / 475.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.1967, allocations: 44.47 kB / 475.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004646/0.1972, allocations: 276.4 kB / 475.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.377e-05/0.1973, allocations: 29.38 kB / 475.4 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.71e-05/0.1974, allocations: 40.28 kB / 475.4 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.1984, allocations: 398.4 kB / 475.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.312e-05/0.1985, allocations: 11.91 kB / 475.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.162e-05/0.1985, allocations: 16 kB / 475.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.1986, allocations: 12 kB / 475.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006962/0.1993, allocations: 223.7 kB / 476.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003401/0.2027, allocations: 1.723 MB / 477.8 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006599/0.2034, allocations: 258.3 kB / 478.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/0.2036, allocations: 94.08 kB / 478.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.2037, allocations: 8 kB / 478.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.878e-05/0.2037, allocations: 50.48 kB / 478.2 MB, free: 5.461 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 4.358e-06/0.2038, allocations: 0 / 478.2 MB, free: 5.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001127/0.2049, allocations: 257 kB / 478.5 MB, free: 5.203 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001461/0.2051, allocations: 213.6 kB / 478.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004285/0.2055, allocations: 275.2 kB / 478.9 MB, free: 4.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.2055, allocations: 33.7 kB / 479 MB, free: 4.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.2058, allocations: 231.3 kB / 479.2 MB, free: 4.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.2059, allocations: 122.5 kB / 479.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002122/0.2062, allocations: 102.2 kB / 479.4 MB, free: 4.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.2064, allocations: 346.7 kB / 479.8 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003371/0.2067, allocations: 101.2 kB / 479.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000642/0.2074, allocations: 428.8 kB / 480.3 MB, free: 3.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.2084, allocations: 0.5667 MB / 480.8 MB, free: 2.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/0.2085, allocations: 4 kB / 480.8 MB, free: 2.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001417/0.2099, allocations: 0.5248 MB / 481.4 MB, free: 1.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.2099, allocations: 16.06 kB / 481.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.253e-05/0.21, allocations: 12 kB / 481.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.766e-05/0.21, allocations: 16 kB / 481.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007595/0.2108, allocations: 147.7 kB / 481.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.428e-05/0.2109, allocations: 23.88 kB / 481.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005781/0.2114, allocations: 67.92 kB / 481.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.019e-05/0.2115, allocations: 32 kB / 481.7 MB, free: 1.574 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003059/0.2118, allocations: 181.5 kB / 481.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002873/0.2121, allocations: 31.62 kB / 481.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.997e-05/0.2122, allocations: 33.78 kB / 481.9 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.2123, allocations: 4 kB / 481.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-05/0.2123, allocations: 11.98 kB / 481.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.2123, allocations: 0 / 481.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.2145, allocations: 0.6553 MB / 482.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.437e-06/0.2145, allocations: 0 / 482.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007544/0.2153, allocations: 95.81 kB / 482.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-05/0.2153, allocations: 4 kB / 482.7 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.94e-05/0.2153, allocations: 8 kB / 482.7 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.24e-05/0.2154, allocations: 7.938 kB / 482.7 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.2154, allocations: 4 kB / 482.7 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.2165, allocations: 0.8362 MB / 483.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.2167, allocations: 112.8 kB / 483.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.73e-05/0.2168, allocations: 11.98 kB / 483.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006496/0.2174, allocations: 11.94 kB / 483.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.358e-05/0.2175, allocations: 27.91 kB / 483.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.659e-05/0.2176, allocations: 8 kB / 483.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002838/0.2179, allocations: 186 kB / 483.9 MB, free: 15.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2179, allocations: 0 / 483.9 MB, free: 15.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00147/0.2194, allocations: 107.8 kB / 484 MB, free: 15.13 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001669/0.2195, allocations: 109.5 kB / 484.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008738/0.2204, allocations: 284.7 kB / 484.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.2204, allocations: 1.688 kB / 484.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002684/0.2207, allocations: 91.77 kB / 484.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001856/0.2226, allocations: 65.11 kB / 484.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003964/0.2266, allocations: 1.693 MB / 486.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005466/0.2272, allocations: 0.7953 MB / 487 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.2273, allocations: 31.44 kB / 487.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of SimCode: time 1.562e-06/0.2273, allocations: 0 / 487.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of Templates: time 0.01043/0.2378, allocations: 4.105 MB / 491.2 MB, free: 7.883 MB / 366.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches