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.001067/0.001067, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001145/0.001145, allocations: 167.3 kB / 24.99 MB, free: 8.746 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 1.064/1.064, allocations: 177.1 MB / 205.3 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] 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.2614/0.2614, allocations: 34.27 MB / 296 MB, free: 0.7734 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.903e-06/1.903e-06, allocations: 0 / 378 MB, free: 2.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.404e-05/2.594e-05, allocations: 2.312 kB / 378 MB, free: 2.988 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003049/0.003075, allocations: 2.864 MB / 380.9 MB, free: 108 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.004438, allocations: 0.7554 MB / 381.6 MB, free: 15.34 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002013/0.00464, allocations: 15.88 kB / 381.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001818/0.004821, allocations: 59.44 kB / 381.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001977/0.005019, allocations: 130.8 kB / 381.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000338/0.005357, allocations: 107.8 kB / 381.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003874/0.005744, allocations: 457.6 kB / 382.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001917/0.005936, allocations: 98.12 kB / 382.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003321/0.006268, allocations: 267.4 kB / 382.7 MB, free: 14.22 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.006425, allocations: 131.6 kB / 382.9 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.948e-05/0.006465, allocations: 36 kB / 382.9 MB, free: 14.06 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.628e-05/0.006531, allocations: 35.98 kB / 382.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.828e-05/0.006579, allocations: 79.73 kB / 383 MB, free: 13.95 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.00669, allocations: 143.7 kB / 383.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.006987, allocations: 286.8 kB / 383.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.006989, allocations: 0 / 383.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.00699, allocations: 0 / 383.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.006994, allocations: 4 kB / 383.4 MB, free: 13.52 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.0006501/0.007644, allocations: 0.6793 MB / 384.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.007678, allocations: 12.03 kB / 384.1 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001942/0.007873, allocations: 88.64 kB / 384.2 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002697/0.008142, allocations: 224.5 kB / 384.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.008168, allocations: 25.38 kB / 384.5 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.186e-05/0.00822, allocations: 48.33 kB / 384.5 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004517/0.008672, allocations: 364.9 kB / 384.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.439e-05/0.008696, allocations: 12.02 kB / 384.9 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.495e-05/0.008721, allocations: 16.38 kB / 384.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.008735, allocations: 19.92 kB / 384.9 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.008931, allocations: 139.5 kB / 385 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.01033, allocations: 1.959 MB / 387 MB, free: 9.746 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002744/0.0106, allocations: 277.7 kB / 387.3 MB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.65e-05/0.01068, allocations: 97.84 kB / 387.4 MB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.0107, allocations: 12 kB / 387.4 MB, free: 9.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.01073, allocations: 45.33 kB / 387.4 MB, free: 9.195 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 2.454e-06/0.01073, allocations: 3.984 kB / 387.4 MB, free: 9.191 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003513/0.01108, allocations: 209.6 kB / 387.6 MB, free: 8.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.01115, allocations: 221.6 kB / 387.8 MB, free: 8.715 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.01132, allocations: 314.1 kB / 388.2 MB, free: 8.395 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.01134, allocations: 33.7 kB / 388.2 MB, free: 8.355 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.01146, allocations: 290.6 kB / 388.5 MB, free: 8.062 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.958e-05/0.01153, allocations: 131.1 kB / 388.6 MB, free: 7.934 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.455e-05/0.01161, allocations: 99.95 kB / 388.7 MB, free: 7.824 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.01173, allocations: 0.5157 MB / 389.2 MB, free: 7.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.792e-05/0.01181, allocations: 49.28 kB / 389.3 MB, free: 7.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002712/0.01208, allocations: 0.5158 MB / 389.8 MB, free: 6.516 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004179/0.0125, allocations: 0.6284 MB / 390.4 MB, free: 5.668 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.862e-06/0.01251, allocations: 4 kB / 390.4 MB, free: 5.664 MB / 362.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004686/0.01297, allocations: 485.1 kB / 390.9 MB, free: 5.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.01299, allocations: 13 kB / 390.9 MB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.013, allocations: 12 kB / 390.9 MB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.01303, allocations: 24 kB / 390.9 MB, free: 5.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.01327, allocations: 147.7 kB / 391.1 MB, free: 4.992 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.57e-05/0.01329, allocations: 23.92 kB / 391.1 MB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000149/0.01344, allocations: 63.55 kB / 391.2 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.826e-05/0.01346, allocations: 36 kB / 391.2 MB, free: 4.871 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.000107/0.01357, allocations: 204.3 kB / 391.4 MB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.682e-05/0.01366, allocations: 43.8 kB / 391.4 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.279e-05/0.0137, allocations: 41.78 kB / 391.5 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.0137, allocations: 4 kB / 391.5 MB, free: 4.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.01371, allocations: 7.938 kB / 391.5 MB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.01371, allocations: 4 kB / 391.5 MB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007137/0.01443, allocations: 0.6441 MB / 392.1 MB, free: 3.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.01443, allocations: 0 / 392.1 MB, free: 3.863 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002453/0.01468, allocations: 87.89 kB / 392.2 MB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.01468, allocations: 4 kB / 392.2 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.0147, allocations: 8 kB / 392.2 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.01471, allocations: 4 kB / 392.2 MB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.01471, allocations: 11.92 kB / 392.3 MB, free: 3.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004473/0.01516, allocations: 1.085 MB / 393.3 MB, free: 2.629 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.324e-05/0.01518, allocations: 35.75 kB / 393.4 MB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.01521, allocations: 11.98 kB / 393.4 MB, free: 2.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.01539, allocations: 8 kB / 393.4 MB, free: 2.574 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.01544, allocations: 23.91 kB / 393.4 MB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.01545, allocations: 15.98 kB / 393.4 MB, free: 2.535 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.208e-05/0.01554, allocations: 199 kB / 393.6 MB, free: 2.344 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01554, allocations: 0 / 393.6 MB, free: 2.344 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004461/0.01599, allocations: 107.8 kB / 393.7 MB, free: 2.238 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 7.187e-05/0.01606, allocations: 103.2 kB / 393.8 MB, free: 2.125 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002593/0.01632, allocations: 243.4 kB / 394.1 MB, free: 1.887 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.01632, allocations: 0 / 394.1 MB, free: 1.887 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.01642, allocations: 79.52 kB / 394.1 MB, free: 1.805 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005873/0.01701, allocations: 69.75 kB / 394.2 MB, free: 1.738 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.01824, allocations: 1.196 MB / 395.4 MB, free: 488 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.174e-05/0.01832, allocations: 104.6 kB / 395.5 MB, free: 364 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.01842, allocations: 43.25 kB / 395.6 MB, free: 320 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.943e-05/0.01846, allocations: 28.5 kB / 395.6 MB, free: 292 kB / 362.7 MB Notification: Performance of SimCode: time 8.52e-07/0.01846, allocations: 0 / 395.6 MB, free: 292 kB / 362.7 MB Notification: Performance of Templates: time 0.004694/0.02315, allocations: 2.905 MB / 398.5 MB, free: 13.44 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","",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.2386415579821914]