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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 76.41 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002052/0.002052, allocations: 172.3 kB / 25.61 MB, free: 8.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9658/0.9658, allocations: 177.1 MB / 206 MB, free: 4.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1618/0.1618, allocations: 32.8 MB / 295.4 MB, free: 15.49 MB / 282.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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=5002,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 377.3 MB, free: 25.63 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.328e-05/2.478e-05, allocations: 2.312 kB / 377.3 MB, free: 25.63 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002537/0.002562, allocations: 2.817 MB / 380.1 MB, free: 22.79 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.000907/0.003469, allocations: 0.7516 MB / 380.8 MB, free: 22.04 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.003608, allocations: 11.94 kB / 380.8 MB, free: 22.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.003754, allocations: 55.44 kB / 380.9 MB, free: 21.97 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001633/0.003917, allocations: 134.8 kB / 381 MB, free: 21.84 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002426/0.00416, allocations: 115.7 kB / 381.1 MB, free: 21.72 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.004409, allocations: 457.6 kB / 381.6 MB, free: 21.27 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.004554, allocations: 102.2 kB / 381.7 MB, free: 21.17 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000242/0.004796, allocations: 263.4 kB / 381.9 MB, free: 20.91 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001271/0.004923, allocations: 135.6 kB / 382.1 MB, free: 20.78 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.004956, allocations: 32 kB / 382.1 MB, free: 20.75 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.935e-05/0.005015, allocations: 36 kB / 382.1 MB, free: 20.71 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.577e-05/0.005051, allocations: 87.66 kB / 382.2 MB, free: 20.63 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.158e-05/0.005122, allocations: 135.7 kB / 382.4 MB, free: 20.5 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002193/0.005341, allocations: 286.9 kB / 382.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.005345, allocations: 0 / 382.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.005346, allocations: 0 / 382.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.005351, allocations: 0 / 382.6 MB, free: 20.21 MB / 314.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.0004981/0.005849, allocations: 0.6871 MB / 383.3 MB, free: 19.49 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.005879, allocations: 11.98 kB / 383.3 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.006035, allocations: 88.64 kB / 383.4 MB, free: 19.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.006208, allocations: 230.3 kB / 383.6 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.006225, allocations: 29.38 kB / 383.7 MB, free: 19.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.722e-05/0.006262, allocations: 48.31 kB / 383.7 MB, free: 19.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.006504, allocations: 344.8 kB / 384.1 MB, free: 18.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.00652, allocations: 8.078 kB / 384.1 MB, free: 18.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.00654, allocations: 16.38 kB / 384.1 MB, free: 18.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.006548, allocations: 15.94 kB / 384.1 MB, free: 18.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.006689, allocations: 114.5 kB / 384.2 MB, free: 18.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009562/0.007645, allocations: 1.967 MB / 386.2 MB, free: 16.46 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.007829, allocations: 277.7 kB / 386.4 MB, free: 16.11 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.822e-05/0.007877, allocations: 93.77 kB / 386.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.007894, allocations: 4 kB / 386.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.007913, allocations: 53.33 kB / 386.6 MB, free: 15.92 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 2.264e-06/0.007915, allocations: 0 / 386.6 MB, free: 15.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=26): time 0.0002981/0.008213, allocations: 193.5 kB / 386.8 MB, free: 15.72 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.008253, allocations: 221.6 kB / 387 MB, free: 15.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.008361, allocations: 318 kB / 387.3 MB, free: 15.13 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.007e-05/0.008371, allocations: 33.64 kB / 387.3 MB, free: 15.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.269e-05/0.008444, allocations: 290.6 kB / 387.6 MB, free: 14.8 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.606e-05/0.00849, allocations: 134.9 kB / 387.8 MB, free: 14.67 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.961e-05/0.00856, allocations: 103.9 kB / 387.9 MB, free: 14.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.802e-05/0.008618, allocations: 0.5156 MB / 388.4 MB, free: 14.03 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.38e-05/0.008662, allocations: 37.28 kB / 388.4 MB, free: 13.99 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.008805, allocations: 0.5157 MB / 388.9 MB, free: 13.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002753/0.009081, allocations: 0.6202 MB / 389.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.009085, allocations: 0 / 389.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0003491/0.009435, allocations: 457 kB / 390 MB, free: 11.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.009454, allocations: 18.98 kB / 390 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.009464, allocations: 12 kB / 390 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.009479, allocations: 20 kB / 390 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.009697, allocations: 143.8 kB / 390.2 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.009707, allocations: 23.92 kB / 390.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.009843, allocations: 55.62 kB / 390.3 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.009859, allocations: 28 kB / 390.3 MB, free: 11.67 MB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.008e-05/0.009939, allocations: 204.2 kB / 390.5 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.477e-05/0.01003, allocations: 43.75 kB / 390.5 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.436e-05/0.01007, allocations: 33.8 kB / 390.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.01007, allocations: 8 kB / 390.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.01007, allocations: 4 kB / 390.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.01008, allocations: 7.984 kB / 390.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005722/0.01065, allocations: 0.5939 MB / 391.2 MB, free: 10.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.01066, allocations: 4.625 kB / 391.2 MB, free: 10.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000217/0.01087, allocations: 91.88 kB / 391.3 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.01088, allocations: 0 / 391.3 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.01089, allocations: 12 kB / 391.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.0109, allocations: 8 kB / 391.3 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.0109, allocations: 3.938 kB / 391.3 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000297/0.0112, allocations: 1.089 MB / 392.4 MB, free: 9.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.097e-05/0.01122, allocations: 27.75 kB / 392.4 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.01124, allocations: 12 kB / 392.4 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.01142, allocations: 11.98 kB / 392.4 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.264e-05/0.01146, allocations: 23.91 kB / 392.5 MB, free: 9.406 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.01147, allocations: 8 kB / 392.5 MB, free: 9.398 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.148e-05/0.01152, allocations: 202.9 kB / 392.7 MB, free: 9.203 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01152, allocations: 0 / 392.7 MB, free: 9.203 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004298/0.01195, allocations: 103.8 kB / 392.8 MB, free: 9.102 MB / 314.7 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 8.362e-05/0.01204, allocations: 107.2 kB / 392.9 MB, free: 8.988 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001952/0.01223, allocations: 231 kB / 393.1 MB, free: 8.758 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.01223, allocations: 0 / 393.1 MB, free: 8.758 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.638e-05/0.01229, allocations: 76.16 kB / 393.2 MB, free: 8.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005946/0.01288, allocations: 81.52 kB / 393.3 MB, free: 8.605 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.01394, allocations: 1.199 MB / 394.5 MB, free: 7.336 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.787e-05/0.01401, allocations: 104.6 kB / 394.6 MB, free: 7.215 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.729e-05/0.0141, allocations: 43.27 kB / 394.6 MB, free: 7.176 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.01421, allocations: 134.2 kB / 394.7 MB, free: 7.043 MB / 314.7 MB Notification: Performance of SimCode: time 8.32e-07/0.01421, allocations: 0 / 394.7 MB, free: 7.043 MB / 314.7 MB Notification: Performance of Templates: time 0.004986/0.01919, allocations: 3.213 MB / 397.9 MB, free: 3.91 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1274370229803026]