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.001578/0.001578, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001474/0.001474, allocations: 203.9 kB / 23.73 MB, free: 4.379 MB / 14.72 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.485/1.485, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 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.2462/0.2462, allocations: 46.96 MB / 360.9 MB, free: 4.023 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002041/0.002041, allocations: 75.88 kB / 0.4966 GB, free: 7.207 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3568, allocations: 66.03 MB / 0.5611 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004554/0.3613, allocations: 2.648 MB / 0.5637 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.3628, allocations: 0.744 MB / 0.5644 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.363, allocations: 7.938 kB / 0.5644 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001936/0.3632, allocations: 63.38 kB / 0.5644 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.3634, allocations: 126.9 kB / 0.5646 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003657/0.3638, allocations: 107.8 kB / 0.5647 GB, free: 436 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005536/0.3644, allocations: 441.9 kB / 0.5651 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000261/0.3646, allocations: 110 kB / 0.5652 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002995/0.3649, allocations: 179.4 kB / 0.5654 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002683/0.3652, allocations: 179.2 kB / 0.5655 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.48e-05/0.3652, allocations: 35.94 kB / 0.5656 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.65e-05/0.3653, allocations: 40 kB / 0.5656 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.47e-05/0.3654, allocations: 75.69 kB / 0.5657 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000185/0.3656, allocations: 167.3 kB / 0.5658 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005274/0.3661, allocations: 452.5 kB / 0.5663 GB, free: 14.77 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3661, allocations: 0 / 0.5663 GB, free: 14.77 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3661, allocations: 0 / 0.5663 GB, free: 14.77 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.3662, allocations: 0 / 0.5663 GB, free: 14.77 MB / 414.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.001044/0.3672, allocations: 0.5911 MB / 0.5669 GB, free: 14.15 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.3672, allocations: 8.031 kB / 0.5669 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002767/0.3675, allocations: 60.67 kB / 0.5669 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004206/0.3679, allocations: 213.9 kB / 0.5671 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.372e-05/0.368, allocations: 33.36 kB / 0.5672 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.438e-05/0.3681, allocations: 48.33 kB / 0.5672 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006966/0.3687, allocations: 394.5 kB / 0.5676 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.655e-05/0.3688, allocations: 3.953 kB / 0.5676 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.872e-05/0.3688, allocations: 16 kB / 0.5676 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.3688, allocations: 12 kB / 0.5676 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004437/0.3693, allocations: 211.7 kB / 0.5678 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.3716, allocations: 1.563 MB / 0.5693 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004783/0.3721, allocations: 250.4 kB / 0.5696 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001673/0.3722, allocations: 90.02 kB / 0.5697 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.3723, allocations: 8 kB / 0.5697 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/0.3723, allocations: 42.56 kB / 0.5697 GB, free: 10.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.623e-06/0.3723, allocations: 0 / 0.5697 GB, free: 10.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007233/0.373, allocations: 269.6 kB / 0.57 GB, free: 10.71 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001306/0.3732, allocations: 213.6 kB / 0.5702 GB, free: 10.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002753/0.3734, allocations: 264.1 kB / 0.5704 GB, free: 10.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.3735, allocations: 33.7 kB / 0.5705 GB, free: 10.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.3736, allocations: 247.8 kB / 0.5707 GB, free: 9.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.3738, allocations: 123.4 kB / 0.5708 GB, free: 9.789 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.3739, allocations: 106.3 kB / 0.5709 GB, free: 9.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.3741, allocations: 346.7 kB / 0.5712 GB, free: 9.332 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000218/0.3743, allocations: 97.27 kB / 0.5713 GB, free: 9.234 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004901/0.3748, allocations: 432.8 kB / 0.5717 GB, free: 8.656 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007646/0.3755, allocations: 0.5707 MB / 0.5723 GB, free: 7.926 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.3755, allocations: 4 kB / 0.5723 GB, free: 7.922 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008942/0.3764, allocations: 0.5243 MB / 0.5728 GB, free: 7.391 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.3765, allocations: 8 kB / 0.5728 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.3765, allocations: 12.84 kB / 0.5728 GB, free: 7.371 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.009e-05/0.3765, allocations: 19.98 kB / 0.5729 GB, free: 7.352 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004644/0.377, allocations: 151.7 kB / 0.573 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.732e-05/0.377, allocations: 27.86 kB / 0.573 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003/0.3773, allocations: 63.62 kB / 0.5731 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.3773, allocations: 32 kB / 0.5731 GB, free: 7.082 MB / 414.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.0001839/0.3775, allocations: 185.5 kB / 0.5733 GB, free: 6.891 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.3777, allocations: 27.81 kB / 0.5733 GB, free: 6.863 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.866e-05/0.3778, allocations: 37.73 kB / 0.5734 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.3778, allocations: 4 kB / 0.5734 GB, free: 6.816 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3778, allocations: 4 kB / 0.5734 GB, free: 6.812 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.3778, allocations: 4 kB / 0.5734 GB, free: 6.809 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001253/0.379, allocations: 0.5535 MB / 0.5739 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.3791, allocations: 4 kB / 0.5739 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004849/0.3795, allocations: 91.88 kB / 0.574 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.3795, allocations: 4 kB / 0.574 GB, free: 6.113 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.3796, allocations: 8 kB / 0.574 GB, free: 6.105 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.3796, allocations: 7.938 kB / 0.574 GB, free: 6.098 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.3796, allocations: 4 kB / 0.574 GB, free: 6.094 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008795/0.3805, allocations: 0.8338 MB / 0.5748 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.065e-05/0.3805, allocations: 27.75 kB / 0.5749 GB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.9e-05/0.3806, allocations: 11.98 kB / 0.5749 GB, free: 5.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003455/0.3809, allocations: 12.12 kB / 0.5749 GB, free: 5.176 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.568e-05/0.381, allocations: 35.83 kB / 0.5749 GB, free: 5.141 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.381, allocations: 8 kB / 0.5749 GB, free: 5.133 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001723/0.3812, allocations: 175.1 kB / 0.5751 GB, free: 4.965 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3812, allocations: 0 / 0.5751 GB, free: 4.965 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007389/0.3819, allocations: 103.9 kB / 0.5752 GB, free: 4.863 MB / 414.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.0001658/0.3821, allocations: 112.7 kB / 0.5753 GB, free: 4.746 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005456/0.3826, allocations: 277.6 kB / 0.5756 GB, free: 4.477 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3826, allocations: 0 / 0.5756 GB, free: 4.477 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.3828, allocations: 89.27 kB / 0.5757 GB, free: 4.391 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009846/0.3838, allocations: 83.84 kB / 0.5757 GB, free: 4.312 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002325/0.3861, allocations: 1.55 MB / 0.5772 GB, free: 2.703 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.3864, allocations: 206.2 kB / 0.5774 GB, free: 2.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001382/0.3865, allocations: 31.28 kB / 0.5775 GB, free: 2.449 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.32e-05/0.3866, allocations: 35.44 kB / 0.5775 GB, free: 2.414 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3866, allocations: 0 / 0.5775 GB, free: 2.414 MB / 414.1 MB Notification: Performance of Templates: time 0.007953/0.3945, allocations: 3.489 MB / 0.5809 GB, free: 14.98 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480] 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.347089136950672]