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.001901/0.001901, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002247/0.002247, allocations: 210 kB / 24.48 MB, free: 3.938 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.519/1.519, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.2448/0.2448, allocations: 46.98 MB / 361.6 MB, free: 4.004 MB / 286.1 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 0.001992/0.001992, allocations: 67.84 kB / 0.4973 GB, free: 7.191 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3306, allocations: 66.04 MB / 0.5618 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004334/0.3349, allocations: 2.645 MB / 0.5644 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.3363, allocations: 0.7401 MB / 0.5651 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.3364, allocations: 11.94 kB / 0.5651 GB, free: 0.707 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001779/0.3366, allocations: 55.39 kB / 0.5652 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002544/0.3369, allocations: 134.8 kB / 0.5653 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.3372, allocations: 107.9 kB / 0.5654 GB, free: 424 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005143/0.3377, allocations: 442 kB / 0.5658 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002347/0.338, allocations: 102 kB / 0.5659 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002836/0.3382, allocations: 175.3 kB / 0.5661 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000242/0.3385, allocations: 159.2 kB / 0.5663 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.19e-05/0.3385, allocations: 32 kB / 0.5663 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.672e-05/0.3386, allocations: 36 kB / 0.5663 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.12e-05/0.3387, allocations: 79.7 kB / 0.5664 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.3389, allocations: 163.3 kB / 0.5666 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005323/0.3394, allocations: 448.5 kB / 0.567 GB, free: 14.8 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3394, allocations: 4 kB / 0.567 GB, free: 14.8 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3394, allocations: 3.938 kB / 0.567 GB, free: 14.8 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.3394, allocations: 0 / 0.567 GB, free: 14.8 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.001039/0.3405, allocations: 0.5872 MB / 0.5676 GB, free: 14.18 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.3405, allocations: 8.031 kB / 0.5676 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002634/0.3408, allocations: 56.69 kB / 0.5676 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004338/0.3412, allocations: 225.9 kB / 0.5678 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.3412, allocations: 25.38 kB / 0.5679 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.005e-05/0.3413, allocations: 44.33 kB / 0.5679 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006523/0.342, allocations: 394.5 kB / 0.5683 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.946e-05/0.342, allocations: 15.88 kB / 0.5683 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.454e-05/0.342, allocations: 16 kB / 0.5683 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.3421, allocations: 8 kB / 0.5683 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004572/0.3425, allocations: 219.7 kB / 0.5685 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.3448, allocations: 1.555 MB / 0.57 GB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004708/0.3453, allocations: 246.4 kB / 0.5703 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.3454, allocations: 102 kB / 0.5704 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.3455, allocations: 4 kB / 0.5704 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.3455, allocations: 42.5 kB / 0.5704 GB, free: 11.01 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.773e-06/0.3455, allocations: 0 / 0.5704 GB, free: 11.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006937/0.3462, allocations: 257.2 kB / 0.5707 GB, free: 10.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.3463, allocations: 214 kB / 0.5709 GB, free: 10.49 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.3466, allocations: 272.1 kB / 0.5711 GB, free: 10.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.3467, allocations: 29.7 kB / 0.5712 GB, free: 10.19 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/0.3468, allocations: 252 kB / 0.5714 GB, free: 9.938 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.347, allocations: 127 kB / 0.5715 GB, free: 9.812 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.3471, allocations: 102.2 kB / 0.5716 GB, free: 9.707 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.3473, allocations: 342.8 kB / 0.5719 GB, free: 9.363 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002212/0.3475, allocations: 105.2 kB / 0.572 GB, free: 9.258 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005154/0.348, allocations: 428.8 kB / 0.5725 GB, free: 8.684 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007897/0.3488, allocations: 0.5706 MB / 0.573 GB, free: 7.953 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.3488, allocations: 4 kB / 0.573 GB, free: 7.949 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009236/0.3497, allocations: 0.5212 MB / 0.5735 GB, free: 7.422 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.3498, allocations: 16.03 kB / 0.5735 GB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/0.3498, allocations: 12.5 kB / 0.5736 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.72e-05/0.3498, allocations: 12 kB / 0.5736 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000459/0.3503, allocations: 151.7 kB / 0.5737 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.853e-05/0.3503, allocations: 23.88 kB / 0.5737 GB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002998/0.3506, allocations: 63.61 kB / 0.5738 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.669e-05/0.3507, allocations: 32 kB / 0.5738 GB, free: 7.117 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.0002011/0.3509, allocations: 181.5 kB / 0.574 GB, free: 6.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.351, allocations: 35.81 kB / 0.574 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.626e-05/0.3511, allocations: 37.67 kB / 0.5741 GB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.3511, allocations: 4 kB / 0.5741 GB, free: 6.848 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.3511, allocations: 7.984 kB / 0.5741 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3511, allocations: 0 / 0.5741 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001264/0.3524, allocations: 0.5613 MB / 0.5746 GB, free: 6.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3524, allocations: 0 / 0.5746 GB, free: 6.234 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004557/0.3528, allocations: 87.95 kB / 0.5747 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/0.3528, allocations: 7.922 kB / 0.5747 GB, free: 6.141 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/0.3529, allocations: 16.06 kB / 0.5747 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.3529, allocations: 4 kB / 0.5747 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3529, allocations: 0 / 0.5747 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008997/0.3538, allocations: 0.8298 MB / 0.5755 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.627e-05/0.3538, allocations: 35.94 kB / 0.5756 GB, free: 5.223 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.296e-05/0.3539, allocations: 8 kB / 0.5756 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003468/0.3542, allocations: 15.97 kB / 0.5756 GB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.501e-05/0.3543, allocations: 23.91 kB / 0.5756 GB, free: 5.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.3543, allocations: 19.98 kB / 0.5756 GB, free: 5.156 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.3545, allocations: 171.1 kB / 0.5758 GB, free: 4.992 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3545, allocations: 0 / 0.5758 GB, free: 4.992 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007717/0.3553, allocations: 99.89 kB / 0.5759 GB, free: 4.895 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.0001325/0.3554, allocations: 112.7 kB / 0.576 GB, free: 4.777 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005751/0.356, allocations: 281.8 kB / 0.5763 GB, free: 4.504 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.356, allocations: 0 / 0.5763 GB, free: 4.504 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001803/0.3562, allocations: 92.83 kB / 0.5764 GB, free: 4.414 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009905/0.3572, allocations: 79.95 kB / 0.5764 GB, free: 4.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.3597, allocations: 1.587 MB / 0.578 GB, free: 2.688 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.3599, allocations: 194.2 kB / 0.5782 GB, free: 2.477 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.553e-05/0.36, allocations: 35.42 kB / 0.5782 GB, free: 2.441 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.36, allocations: 3.938 kB / 0.5782 GB, free: 2.438 MB / 414.1 MB Notification: Performance of Templates: time 0.007618/0.3676, allocations: 4.332 MB / 0.5824 GB, free: 14.12 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/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: 8.15441454667598]