Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001277/0.001277, allocations: 113.1 kB / 21.85 MB, free: 64 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001406/0.001406, allocations: 203.7 kB / 25.13 MB, free: 3.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 230.4 MB / 258.7 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2316/0.2316, allocations: 46.95 MB / 362 MB, free: 4.207 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002308/0.002308, allocations: 79.86 kB / 0.4978 GB, free: 7.367 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3584/0.3607, allocations: 66.08 MB / 0.5623 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004232/0.3649, allocations: 2.858 MB / 0.5651 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.3662, allocations: 0.779 MB / 0.5659 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.3664, allocations: 15.88 kB / 0.5659 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001821/0.3665, allocations: 55.38 kB / 0.5659 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002297/0.3668, allocations: 134.8 kB / 0.5661 GB, free: 400 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.3671, allocations: 111.8 kB / 0.5662 GB, free: 288 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004929/0.3676, allocations: 434 kB / 0.5666 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002224/0.3678, allocations: 110 kB / 0.5667 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002793/0.3681, allocations: 179.4 kB / 0.5669 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/0.3683, allocations: 175.2 kB / 0.567 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.076e-05/0.3684, allocations: 32 kB / 0.5671 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.3685, allocations: 36 kB / 0.5671 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.128e-05/0.3686, allocations: 83.64 kB / 0.5672 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001958/0.3687, allocations: 199.1 kB / 0.5674 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004848/0.3692, allocations: 448.5 kB / 0.5678 GB, free: 14.61 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3692, allocations: 0 / 0.5678 GB, free: 14.61 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3692, allocations: 0 / 0.5678 GB, free: 14.61 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.3692, allocations: 0 / 0.5678 GB, free: 14.61 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.0009702/0.3702, allocations: 0.5872 MB / 0.5684 GB, free: 14 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.3703, allocations: 12.03 kB / 0.5684 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000256/0.3705, allocations: 60.67 kB / 0.5684 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003734/0.3709, allocations: 218.8 kB / 0.5686 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.3709, allocations: 29.38 kB / 0.5687 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.916e-05/0.371, allocations: 44.31 kB / 0.5687 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000658/0.3716, allocations: 394.4 kB / 0.5691 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.853e-05/0.3717, allocations: 11.94 kB / 0.5691 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.849e-05/0.3717, allocations: 19.98 kB / 0.5691 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.3717, allocations: 15.94 kB / 0.5691 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004302/0.3721, allocations: 215.7 kB / 0.5693 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002316/0.3745, allocations: 1.664 MB / 0.571 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004375/0.3749, allocations: 258.3 kB / 0.5712 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.3751, allocations: 94.08 kB / 0.5713 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.3751, allocations: 0 / 0.5713 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.921e-05/0.3751, allocations: 46.5 kB / 0.5713 GB, free: 10.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 3.176e-06/0.3751, allocations: 3.984 kB / 0.5713 GB, free: 10.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007153/0.3758, allocations: 265.1 kB / 0.5716 GB, free: 10.42 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.376, allocations: 217.6 kB / 0.5718 GB, free: 10.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003141/0.3763, allocations: 284.8 kB / 0.5721 GB, free: 9.875 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.3763, allocations: 29.7 kB / 0.5721 GB, free: 9.84 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/0.3765, allocations: 240.1 kB / 0.5723 GB, free: 9.602 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.3766, allocations: 123 kB / 0.5725 GB, free: 9.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.3767, allocations: 98.3 kB / 0.5725 GB, free: 9.379 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.3769, allocations: 346.7 kB / 0.5729 GB, free: 9.031 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.3771, allocations: 101.2 kB / 0.573 GB, free: 8.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004943/0.3776, allocations: 432.8 kB / 0.5734 GB, free: 8.352 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007534/0.3784, allocations: 0.5624 MB / 0.5739 GB, free: 7.629 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.687e-06/0.3784, allocations: 7.938 kB / 0.5739 GB, free: 7.621 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008918/0.3793, allocations: 0.5294 MB / 0.5745 GB, free: 7.086 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/0.3793, allocations: 12 kB / 0.5745 GB, free: 7.074 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.3793, allocations: 12 kB / 0.5745 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3e-05/0.3793, allocations: 16 kB / 0.5745 GB, free: 7.047 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004598/0.3798, allocations: 148.2 kB / 0.5746 GB, free: 6.902 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.418e-05/0.3798, allocations: 19.94 kB / 0.5747 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/0.3801, allocations: 71.55 kB / 0.5747 GB, free: 6.812 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.962e-05/0.3802, allocations: 28 kB / 0.5748 GB, free: 6.785 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.0001983/0.3804, allocations: 185.5 kB / 0.5749 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.3805, allocations: 35.81 kB / 0.575 GB, free: 6.559 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.694e-05/0.3806, allocations: 37.81 kB / 0.575 GB, free: 6.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.3806, allocations: 8 kB / 0.575 GB, free: 6.512 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.3806, allocations: 3.984 kB / 0.575 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.3806, allocations: 4 kB / 0.575 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001276/0.3819, allocations: 0.627 MB / 0.5756 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3819, allocations: 0 / 0.5756 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004277/0.3823, allocations: 95.88 kB / 0.5757 GB, free: 5.727 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3824, allocations: 0 / 0.5757 GB, free: 5.727 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.621e-05/0.3824, allocations: 12 kB / 0.5757 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.3824, allocations: 7.938 kB / 0.5757 GB, free: 5.707 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3824, allocations: 0 / 0.5757 GB, free: 5.707 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008168/0.3832, allocations: 0.8346 MB / 0.5766 GB, free: 4.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.596e-05/0.3833, allocations: 39.69 kB / 0.5766 GB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.593e-05/0.3833, allocations: 8 kB / 0.5766 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003345/0.3836, allocations: 19.92 kB / 0.5766 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.917e-05/0.3837, allocations: 19.91 kB / 0.5766 GB, free: 4.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.3837, allocations: 15.98 kB / 0.5767 GB, free: 4.738 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000187/0.3839, allocations: 183.1 kB / 0.5768 GB, free: 4.559 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3839, allocations: 4 kB / 0.5768 GB, free: 4.555 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007397/0.3847, allocations: 99.89 kB / 0.5769 GB, free: 4.457 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.0001348/0.3848, allocations: 103.2 kB / 0.577 GB, free: 4.348 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005759/0.3854, allocations: 278.6 kB / 0.5773 GB, free: 4.078 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3854, allocations: 0 / 0.5773 GB, free: 4.078 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001802/0.3856, allocations: 88.16 kB / 0.5774 GB, free: 3.992 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009317/0.3865, allocations: 82.88 kB / 0.5775 GB, free: 3.914 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/0.3888, allocations: 1.562 MB / 0.579 GB, free: 2.297 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004919/0.3893, allocations: 0.8065 MB / 0.5798 GB, free: 1.465 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002353/0.3895, allocations: 43.25 kB / 0.5798 GB, free: 1.422 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.182e-05/0.3896, allocations: 31.44 kB / 0.5798 GB, free: 1.391 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3896, allocations: 0 / 0.5798 GB, free: 1.391 MB / 414.1 MB Notification: Performance of Templates: time 0.007286/0.3969, allocations: 3.307 MB / 0.5831 GB, free: 14.11 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_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-beta.om_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.122928136028349]