Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.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.0009718/0.0009718, allocations: 81.81 kB / 21.42 MB, free: 3.07 MB / 18.57 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.0008945/0.0008945, allocations: 168.2 kB / 24.82 MB, free: 9.277 MB / 18.57 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.028/1.028, allocations: 177 MB / 205.1 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2913/0.2913, allocations: 34.86 MB / 296.6 MB, free: 0.5117 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.724e-06/1.724e-06, allocations: 0 / 379.2 MB, free: 1.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.363e-05/2.536e-05, allocations: 2.312 kB / 379.2 MB, free: 1.816 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01323/0.01325, allocations: 17 MB / 396.2 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.02329, allocations: 5.198 MB / 401.4 MB, free: 11.52 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004368/0.02766, allocations: 135.4 kB / 401.6 MB, free: 11.39 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004069/0.03173, allocations: 3.215 MB / 404.8 MB, free: 8.164 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006207/0.03794, allocations: 2.714 MB / 407.5 MB, free: 5.438 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001951/0.03989, allocations: 1.166 MB / 408.7 MB, free: 4.27 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006807/0.0467, allocations: 9.023 MB / 417.7 MB, free: 11.23 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003871/0.05057, allocations: 4.744 MB / 422.4 MB, free: 6.441 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004379/0.05495, allocations: 4.183 MB / 426.6 MB, free: 2.25 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00442/0.05937, allocations: 3.839 MB / 430.5 MB, free: 14.4 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009712/0.06034, allocations: 464 kB / 430.9 MB, free: 13.95 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002092/0.06243, allocations: 1.283 MB / 432.2 MB, free: 12.66 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002337/0.06477, allocations: 3.023 MB / 435.2 MB, free: 9.633 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002251/0.06702, allocations: 1.869 MB / 437.1 MB, free: 7.758 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006666/0.07368, allocations: 6.683 MB / 443.8 MB, free: 1.051 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.07369, allocations: 0 / 443.8 MB, free: 1.051 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.07369, allocations: 0 / 443.8 MB, free: 1.051 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001707/0.07386, allocations: 0 / 443.8 MB, free: 1.051 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.1717/0.2456, allocations: 7.416 MB / 451.2 MB, free: 95.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.2456, allocations: 11.28 kB / 451.2 MB, free: 95.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006461/0.2521, allocations: 2.784 MB / 454 MB, free: 94.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003376/0.2555, allocations: 3.089 MB / 457.1 MB, free: 93.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.2556, allocations: 319.6 kB / 457.4 MB, free: 93.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000481/0.2561, allocations: 436.9 kB / 457.8 MB, free: 93.45 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007598/0.2637, allocations: 7.53 MB / 465.3 MB, free: 89.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001201/0.2638, allocations: 55.47 kB / 465.4 MB, free: 89.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003543/0.2641, allocations: 202.8 kB / 465.6 MB, free: 89.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002799/0.2669, allocations: 2.773 MB / 468.4 MB, free: 89.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009813/0.2767, allocations: 3.881 MB / 472.2 MB, free: 88.81 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03909/0.3158, allocations: 53.5 MB / 0.5134 GB, free: 45.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00551/0.3213, allocations: 2.596 MB / 0.516 GB, free: 43.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008603/0.3222, allocations: 0.8005 MB / 0.5167 GB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008611/0.3308, allocations: 6.704 MB / 0.5233 GB, free: 36.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.3309, allocations: 63.38 kB / 0.5233 GB, free: 36.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=256): time 3.827e-06/0.3309, allocations: 0 / 0.5233 GB, free: 36.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=272): time 0.02083/0.3517, allocations: 10.7 MB / 0.5338 GB, free: 25.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.3517, allocations: 111.1 kB / 0.5339 GB, free: 25.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003405/0.3551, allocations: 4.246 MB / 0.538 GB, free: 21.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.3552, allocations: 65.69 kB / 0.5381 GB, free: 21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001485/0.3567, allocations: 4.509 MB / 0.5425 GB, free: 16.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005802/0.3573, allocations: 1.101 MB / 0.5436 GB, free: 15.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001142/0.3584, allocations: 1.635 MB / 0.5452 GB, free: 13.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.998e-05/0.3585, allocations: 476.8 kB / 0.5456 GB, free: 13.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.3595, allocations: 0.7759 MB / 0.5464 GB, free: 12.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002659/0.3622, allocations: 7.07 MB / 0.5533 GB, free: 2.547 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01256/0.3747, allocations: 8.55 MB / 0.5617 GB, free: 7.195 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002835/0.375, allocations: 40 kB / 0.5617 GB, free: 7.156 MB / 426.7 MB Notification: Performance of matching and sorting (n=994) (initialization): time 0.01483/0.3898, allocations: 6.031 MB / 0.5676 GB, free: 1.109 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.3899, allocations: 74.33 kB / 0.5677 GB, free: 1.039 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002026/0.3901, allocations: 148.8 kB / 0.5678 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009962/0.3911, allocations: 429.9 kB / 0.5682 GB, free: 480 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003265/0.3944, allocations: 1.642 MB / 0.5698 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00338/0.3978, allocations: 4.55 MB / 0.5742 GB, free: 10.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004145/0.4019, allocations: 280 kB / 0.5745 GB, free: 9.766 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008919/0.4028, allocations: 376 kB / 0.5749 GB, free: 9.398 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (935): * Single equations (assignments): 927 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,8,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002204/0.405, allocations: 0.7674 MB / 0.5756 GB, free: 8.617 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001113/0.4061, allocations: 497.1 kB / 0.5761 GB, free: 8.129 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002793/0.4089, allocations: 1.894 MB / 0.5779 GB, free: 6.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.371e-05/0.409, allocations: 31.94 kB / 0.578 GB, free: 6.148 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.409, allocations: 4 kB / 0.578 GB, free: 6.145 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.567e-05/0.409, allocations: 11.95 kB / 0.578 GB, free: 6.133 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/0.4219, allocations: 7.287 MB / 0.5851 GB, free: 14.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/0.4219, allocations: 12.19 kB / 0.5851 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008877/0.4228, allocations: 375.5 kB / 0.5855 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005479/0.4234, allocations: 209.6 kB / 0.5857 GB, free: 13.99 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001268/0.4235, allocations: 55.98 kB / 0.5857 GB, free: 13.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002644/0.4262, allocations: 4.216 MB / 0.5898 GB, free: 9.488 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/0.4262, allocations: 15.94 kB / 0.5899 GB, free: 9.473 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003995/0.4302, allocations: 2.819 MB / 0.5926 GB, free: 6.379 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/0.4314, allocations: 437 kB / 0.593 GB, free: 5.949 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004098/0.4318, allocations: 55.98 kB / 0.5931 GB, free: 5.895 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000911/0.4327, allocations: 55.98 kB / 0.5931 GB, free: 5.84 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/0.4329, allocations: 185.4 kB / 0.5933 GB, free: 5.656 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.433, allocations: 64 kB / 0.5934 GB, free: 5.594 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002071/0.4351, allocations: 1.747 MB / 0.5951 GB, free: 3.844 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4351, allocations: 0 / 0.5951 GB, free: 3.844 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005553/0.4406, allocations: 1.496 MB / 0.5965 GB, free: 2.348 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 7 (revolute.phi,revolute.w,revolute1.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (220): * Single equations (assignments): 212 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006119/0.4413, allocations: 210.6 kB / 0.5967 GB, free: 2.133 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.18/0.6212, allocations: 3.671 MB / 0.6003 GB, free: 123.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.736e-05/0.6212, allocations: 2.688 kB / 0.6003 GB, free: 123.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001511/0.6228, allocations: 1.132 MB / 0.6014 GB, free: 122.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003659/0.6264, allocations: 0.5994 MB / 0.602 GB, free: 122.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02059/0.647, allocations: 11.19 MB / 0.613 GB, free: 118.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002407/0.6494, allocations: 1.772 MB / 0.6147 GB, free: 118 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002336/0.6518, allocations: 0.6227 MB / 0.6153 GB, free: 117.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00135/0.6531, allocations: 0.7833 MB / 0.6161 GB, free: 117.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.933e-06/0.6531, allocations: 3.938 kB / 0.6161 GB, free: 117.7 MB / 458.7 MB Notification: Performance of Templates: time 0.07294/0.726, allocations: 43.96 MB / 0.659 GB, free: 100.3 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.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: 4.947894264943898]