Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001835/0.001835, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.00199/0.00199, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 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 1.632/1.632, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3552/0.3552, allocations: 34.26 MB / 295.3 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 377.3 MB, free: 2.984 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.952e-05/3.073e-05, allocations: 6.312 kB / 377.3 MB, free: 2.977 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004953/0.004984, allocations: 2.821 MB / 380.1 MB, free: 140 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.006535, allocations: 0.7517 MB / 380.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.006719, allocations: 11.94 kB / 380.9 MB, free: 15.37 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002057/0.006925, allocations: 55.45 kB / 380.9 MB, free: 15.31 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002936/0.007218, allocations: 138.8 kB / 381.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003903/0.007609, allocations: 111.7 kB / 381.2 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005603/0.008169, allocations: 449.6 kB / 381.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002464/0.008415, allocations: 102.1 kB / 381.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000678/0.009093, allocations: 263.4 kB / 382 MB, free: 14.26 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002636/0.009357, allocations: 135.6 kB / 382.1 MB, free: 14.13 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.635e-05/0.009423, allocations: 36 kB / 382.1 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.009545, allocations: 36 kB / 382.2 MB, free: 14.06 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.578e-05/0.009631, allocations: 75.67 kB / 382.2 MB, free: 13.98 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001998/0.009831, allocations: 143.7 kB / 382.4 MB, free: 13.84 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007397/0.01057, allocations: 442.5 kB / 382.8 MB, free: 13.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.01057, allocations: 0 / 382.8 MB, free: 13.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.01058, allocations: 0 / 382.8 MB, free: 13.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.01058, allocations: 0 / 382.8 MB, free: 13.41 MB / 362.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.00153/0.01211, allocations: 0.7063 MB / 383.5 MB, free: 12.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.178e-05/0.01218, allocations: 8.031 kB / 383.5 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003963/0.01257, allocations: 92.64 kB / 383.6 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004411/0.01301, allocations: 228.5 kB / 383.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.273e-05/0.01306, allocations: 29.38 kB / 383.9 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.01316, allocations: 44.33 kB / 383.9 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008715/0.01403, allocations: 424.2 kB / 384.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.103e-05/0.01408, allocations: 16.08 kB / 384.3 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.128e-05/0.01413, allocations: 16.38 kB / 384.4 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.01415, allocations: 11.94 kB / 384.4 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007031/0.01485, allocations: 203.8 kB / 384.6 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00337/0.01822, allocations: 2.061 MB / 386.6 MB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007158/0.01894, allocations: 317.8 kB / 386.9 MB, free: 8.988 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.01913, allocations: 113.8 kB / 387 MB, free: 8.848 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.01915, allocations: 8 kB / 387.1 MB, free: 8.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.567e-05/0.0192, allocations: 45.33 kB / 387.1 MB, free: 8.785 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.793e-06/0.0192, allocations: 0 / 387.1 MB, free: 8.785 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0007447/0.01995, allocations: 262 kB / 387.4 MB, free: 8.523 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00016/0.02011, allocations: 213.6 kB / 387.6 MB, free: 8.266 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004011/0.02051, allocations: 378.1 kB / 387.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.02054, allocations: 33.7 kB / 388 MB, free: 7.844 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002488/0.02079, allocations: 302.7 kB / 388.3 MB, free: 7.539 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.02091, allocations: 135 kB / 388.4 MB, free: 7.406 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.0211, allocations: 116 kB / 388.5 MB, free: 7.281 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000333/0.02143, allocations: 0.5313 MB / 389 MB, free: 6.738 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002108/0.02164, allocations: 97.27 kB / 389.1 MB, free: 6.645 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007188/0.02236, allocations: 0.5705 MB / 389.7 MB, free: 5.855 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009861/0.02335, allocations: 0.7139 MB / 390.4 MB, free: 4.922 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.774e-06/0.02336, allocations: 4 kB / 390.4 MB, free: 4.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009897/0.02435, allocations: 0.5601 MB / 391 MB, free: 4.352 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.02437, allocations: 12.03 kB / 391 MB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.126e-05/0.02439, allocations: 12 kB / 391 MB, free: 4.328 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.067e-05/0.02442, allocations: 16 kB / 391 MB, free: 4.312 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004577/0.02488, allocations: 143.8 kB / 391.2 MB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.702e-05/0.02491, allocations: 23.92 kB / 391.2 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000283/0.02519, allocations: 60.06 kB / 391.2 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-05/0.02524, allocations: 32 kB / 391.3 MB, free: 4.059 MB / 362.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 0.0002381/0.02548, allocations: 220.3 kB / 391.5 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.02565, allocations: 51.73 kB / 391.5 MB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.863e-05/0.02572, allocations: 33.8 kB / 391.6 MB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.02573, allocations: 8 kB / 391.6 MB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.02574, allocations: 4 kB / 391.6 MB, free: 3.734 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.02575, allocations: 7.938 kB / 391.6 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001635/0.02738, allocations: 0.6988 MB / 392.3 MB, free: 2.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.401e-06/0.02739, allocations: 4 kB / 392.3 MB, free: 2.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004515/0.02784, allocations: 91.88 kB / 392.4 MB, free: 2.883 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.133e-06/0.02785, allocations: 4 kB / 392.4 MB, free: 2.879 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/0.02787, allocations: 8 kB / 392.4 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.02788, allocations: 8.062 kB / 392.4 MB, free: 2.863 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.02788, allocations: 3.938 kB / 392.4 MB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.02901, allocations: 1.152 MB / 393.6 MB, free: 1.672 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.827e-05/0.02907, allocations: 31.75 kB / 393.6 MB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.2e-05/0.02912, allocations: 8 kB / 393.6 MB, free: 1.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003185/0.02944, allocations: 11.98 kB / 393.6 MB, free: 1.621 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.847e-05/0.02952, allocations: 27.91 kB / 393.6 MB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.02954, allocations: 15.94 kB / 393.7 MB, free: 1.578 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002384/0.02977, allocations: 231 kB / 393.9 MB, free: 1.355 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02977, allocations: 0 / 393.9 MB, free: 1.355 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007709/0.03055, allocations: 103.8 kB / 394 MB, free: 1.254 MB / 362.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 0.0001551/0.0307, allocations: 105.6 kB / 394.1 MB, free: 1.141 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006323/0.03133, allocations: 315.9 kB / 394.4 MB, free: 0.832 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.03134, allocations: 0 / 394.4 MB, free: 0.832 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001768/0.03151, allocations: 96.39 kB / 394.5 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009672/0.03248, allocations: 81.73 kB / 394.6 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002062/0.03454, allocations: 1.219 MB / 395.8 MB, free: 15.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.03479, allocations: 194.4 kB / 396 MB, free: 15.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001607/0.03495, allocations: 47.25 kB / 396 MB, free: 15.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.605e-05/0.03503, allocations: 28.5 kB / 396 MB, free: 15.09 MB / 378.7 MB Notification: Performance of SimCode: time 1.553e-06/0.03503, allocations: 0 / 396 MB, free: 15.09 MB / 378.7 MB Notification: Performance of Templates: time 0.008177/0.0432, allocations: 2.88 MB / 398.9 MB, free: 12.27 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.026392686995678]