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.001382/0.001382, allocations: 107 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.001588/0.001588, 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.475/1.475, allocations: 230.6 MB / 258.2 MB, free: 7.758 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.2361/0.2361, allocations: 46.97 MB / 361.6 MB, free: 4.035 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.001971/0.001971, allocations: 63.91 kB / 0.4973 GB, free: 7.223 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3327, allocations: 66.04 MB / 0.5618 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004258/0.3369, allocations: 2.653 MB / 0.5644 GB, free: 1.504 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001644/0.3386, allocations: 0.7401 MB / 0.5651 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002109/0.3388, allocations: 11.88 kB / 0.5651 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.339, allocations: 59.39 kB / 0.5652 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002762/0.3393, allocations: 130.9 kB / 0.5653 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003959/0.3397, allocations: 103.8 kB / 0.5654 GB, free: 468 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000516/0.3402, allocations: 442 kB / 0.5658 GB, free: 24 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002688/0.3405, allocations: 102.1 kB / 0.5659 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003064/0.3408, allocations: 187.3 kB / 0.5661 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002491/0.341, allocations: 179.2 kB / 0.5663 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.113e-05/0.3411, allocations: 36 kB / 0.5663 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.565e-05/0.3412, allocations: 36 kB / 0.5664 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.131e-05/0.3412, allocations: 75.7 kB / 0.5664 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001804/0.3414, allocations: 167.2 kB / 0.5666 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005438/0.342, allocations: 448.5 kB / 0.567 GB, free: 14.81 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.342, allocations: 0 / 0.567 GB, free: 14.81 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.342, allocations: 0 / 0.567 GB, free: 14.81 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.342, allocations: 0 / 0.567 GB, free: 14.81 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.00102/0.343, allocations: 0.5911 MB / 0.5676 GB, free: 14.19 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.343, allocations: 8.031 kB / 0.5676 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002659/0.3433, allocations: 56.69 kB / 0.5676 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004175/0.3437, allocations: 221.9 kB / 0.5679 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.189e-05/0.3437, allocations: 29.38 kB / 0.5679 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.161e-05/0.3438, allocations: 48.27 kB / 0.5679 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006787/0.3445, allocations: 394.5 kB / 0.5683 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/0.3445, allocations: 7.953 kB / 0.5683 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.3446, allocations: 19.98 kB / 0.5683 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.3446, allocations: 12 kB / 0.5683 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004266/0.345, allocations: 215.7 kB / 0.5686 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.3473, allocations: 1.555 MB / 0.5701 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004618/0.3478, allocations: 258.3 kB / 0.5703 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.3479, allocations: 98 kB / 0.5704 GB, free: 11.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.348, allocations: 8 kB / 0.5704 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.348, allocations: 42.5 kB / 0.5705 GB, free: 11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.893e-06/0.348, allocations: 0 / 0.5705 GB, free: 11 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006825/0.3487, allocations: 261.2 kB / 0.5707 GB, free: 10.74 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.3488, allocations: 213.6 kB / 0.5709 GB, free: 10.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002666/0.3491, allocations: 264.1 kB / 0.5712 GB, free: 10.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.3491, allocations: 33.7 kB / 0.5712 GB, free: 10.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/0.3493, allocations: 252.1 kB / 0.5714 GB, free: 9.934 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.3494, allocations: 126.9 kB / 0.5716 GB, free: 9.809 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.3496, allocations: 98.3 kB / 0.5717 GB, free: 9.707 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.3497, allocations: 347.1 kB / 0.572 GB, free: 9.359 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.3499, allocations: 105.2 kB / 0.5721 GB, free: 9.254 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004793/0.3504, allocations: 428.8 kB / 0.5725 GB, free: 8.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007334/0.3512, allocations: 0.5624 MB / 0.573 GB, free: 7.957 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.732e-06/0.3512, allocations: 4 kB / 0.573 GB, free: 7.953 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008684/0.352, allocations: 0.5289 MB / 0.5736 GB, free: 7.418 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.3521, allocations: 8 kB / 0.5736 GB, free: 7.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/0.3521, allocations: 12 kB / 0.5736 GB, free: 7.398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.951e-05/0.3521, allocations: 16 kB / 0.5736 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004529/0.3526, allocations: 152.3 kB / 0.5737 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.461e-05/0.3526, allocations: 23.88 kB / 0.5738 GB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.3529, allocations: 67.61 kB / 0.5738 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.955e-05/0.3529, allocations: 32 kB / 0.5739 GB, free: 7.113 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.0002132/0.3531, allocations: 181.5 kB / 0.574 GB, free: 6.926 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.3533, allocations: 31.81 kB / 0.5741 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.413e-05/0.3534, allocations: 33.73 kB / 0.5741 GB, free: 6.855 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.291e-06/0.3534, allocations: 4 kB / 0.5741 GB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.3534, allocations: 0 / 0.5741 GB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.3534, allocations: 7.984 kB / 0.5741 GB, free: 6.844 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.3546, allocations: 0.558 MB / 0.5747 GB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.3546, allocations: 4 kB / 0.5747 GB, free: 6.238 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004582/0.3551, allocations: 88.02 kB / 0.5747 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.3551, allocations: 7.938 kB / 0.5747 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.565e-05/0.3551, allocations: 11.98 kB / 0.5748 GB, free: 6.133 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.276e-06/0.3551, allocations: 11.88 kB / 0.5748 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3551, allocations: 4 kB / 0.5748 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008387/0.3559, allocations: 0.8338 MB / 0.5756 GB, free: 5.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.564e-05/0.356, allocations: 27.75 kB / 0.5756 GB, free: 5.223 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.248e-05/0.3561, allocations: 16 kB / 0.5756 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003374/0.3564, allocations: 7.984 kB / 0.5756 GB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.705e-05/0.3565, allocations: 23.91 kB / 0.5757 GB, free: 5.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/0.3565, allocations: 15.98 kB / 0.5757 GB, free: 5.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001774/0.3567, allocations: 171.1 kB / 0.5758 GB, free: 4.996 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3567, allocations: 0 / 0.5758 GB, free: 4.996 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007326/0.3574, allocations: 99.89 kB / 0.5759 GB, free: 4.898 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.0001365/0.3575, allocations: 111.1 kB / 0.576 GB, free: 4.781 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005716/0.3581, allocations: 281.7 kB / 0.5763 GB, free: 4.508 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3581, allocations: 0 / 0.5763 GB, free: 4.508 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.3583, allocations: 87.83 kB / 0.5764 GB, free: 4.422 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009643/0.3592, allocations: 71.7 kB / 0.5765 GB, free: 4.359 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.3617, allocations: 1.57 MB / 0.578 GB, free: 2.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/0.3619, allocations: 194.2 kB / 0.5782 GB, free: 2.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001581/0.3621, allocations: 43.25 kB / 0.5782 GB, free: 2.477 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.211e-05/0.3621, allocations: 27.44 kB / 0.5782 GB, free: 2.449 MB / 414.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3621, allocations: 0 / 0.5782 GB, free: 2.449 MB / 414.1 MB Notification: Performance of Templates: time 0.008218/0.3703, allocations: 3.487 MB / 0.5817 GB, free: 15.02 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 -s cvode -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: 5.0047991829924285]