Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001549/0.001549, allocations: 114.5 kB / 21.17 MB, free: 0.6172 MB / 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.002074/0.002074, allocations: 206.2 kB / 24.47 MB, free: 4.023 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.504/1.504, allocations: 230.2 MB / 257.8 MB, free: 8.516 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.2446/0.2446, allocations: 46.91 MB / 361.1 MB, free: 4.648 MB / 286.1 MB " [Timeout remaining time 179] 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.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_4.1.0-beta.om_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_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2") [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.002385/0.002385, allocations: 79.86 kB / 0.4968 GB, free: 7.828 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4378/0.4402, allocations: 65.99 MB / 0.5612 GB, free: 5.012 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02292/0.4631, allocations: 18.25 MB / 0.579 GB, free: 2.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01383/0.477, allocations: 5.327 MB / 0.5842 GB, free: 13.33 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005159/0.4821, allocations: 107.8 kB / 0.5843 GB, free: 13.23 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006734/0.4889, allocations: 3.102 MB / 0.5874 GB, free: 10.11 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007766/0.4966, allocations: 2.615 MB / 0.5899 GB, free: 7.488 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002788/0.4994, allocations: 1.018 MB / 0.5909 GB, free: 6.469 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01243/0.5118, allocations: 7.674 MB / 0.5984 GB, free: 14.78 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005591/0.5174, allocations: 3.276 MB / 0.6016 GB, free: 11.46 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005181/0.5226, allocations: 2.258 MB / 0.6038 GB, free: 9.191 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006328/0.5289, allocations: 3.516 MB / 0.6073 GB, free: 5.664 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001833/0.5308, allocations: 452 kB / 0.6077 GB, free: 5.223 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003887/0.5347, allocations: 1.338 MB / 0.609 GB, free: 3.883 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004149/0.5388, allocations: 2.867 MB / 0.6118 GB, free: 1.008 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00581/0.5446, allocations: 3.176 MB / 0.6149 GB, free: 13.81 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01553/0.5601, allocations: 9.979 MB / 0.6246 GB, free: 3.789 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.5602, allocations: 4 kB / 0.6246 GB, free: 3.785 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.5602, allocations: 0 / 0.6246 GB, free: 3.785 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003747/0.5605, allocations: 7.875 kB / 0.6247 GB, free: 3.777 MB / 462.1 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.02209/0.5826, allocations: 7.381 MB / 0.6319 GB, free: 12.3 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.706e-05/0.5827, allocations: 12.02 kB / 0.6319 GB, free: 12.29 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0171/0.5998, allocations: 3.877 MB / 0.6357 GB, free: 8.406 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01201/0.6118, allocations: 4.027 MB / 0.6396 GB, free: 4.32 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004846/0.6123, allocations: 320.4 kB / 0.6399 GB, free: 4.004 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002721/0.615, allocations: 431.8 kB / 0.6403 GB, free: 3.582 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03849/0.6535, allocations: 15.59 MB / 0.6555 GB, free: 3.262 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004062/0.6539, allocations: 59.58 kB / 0.6556 GB, free: 3.203 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002239/0.6561, allocations: 199.8 kB / 0.6558 GB, free: 3.008 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007555/0.6637, allocations: 3.376 MB / 0.6591 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03756/0.7012, allocations: 14.82 MB / 0.6735 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1102/0.8114, allocations: 55.08 MB / 0.7273 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02108/0.8325, allocations: 7.873 MB / 0.735 GB, free: 420 kB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3687/1.201, allocations: 4.462 MB / 0.7394 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001825/1.203, allocations: 2.208 MB / 0.7415 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.898e-05/1.203, allocations: 65.44 kB / 0.7416 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 7.454e-06/1.203, allocations: 0 / 0.7416 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.1084/1.311, allocations: 40.24 MB / 0.7809 GB, free: 123.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/1.312, allocations: 116 kB / 0.781 GB, free: 123.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007146/1.319, allocations: 4.295 MB / 0.7852 GB, free: 119.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.00122/1.32, allocations: 89.67 kB / 0.7853 GB, free: 119 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002229/1.322, allocations: 3.932 MB / 0.7891 GB, free: 115.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001997/1.324, allocations: 1.564 MB / 0.7907 GB, free: 114 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002273/1.326, allocations: 1.58 MB / 0.7922 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.996e-05/1.327, allocations: 301.1 kB / 0.7925 GB, free: 112.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004667/1.331, allocations: 4.076 MB / 0.7965 GB, free: 108 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006147/1.337, allocations: 7.849 MB / 0.8041 GB, free: 98.41 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01205/1.349, allocations: 12.88 MB / 0.8167 GB, free: 83.71 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.429e-05/1.349, allocations: 36 kB / 0.8167 GB, free: 83.67 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02322/1.373, allocations: 14.72 MB / 0.8311 GB, free: 68.91 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.657e-05/1.373, allocations: 62.03 kB / 0.8312 GB, free: 68.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001049/1.373, allocations: 128 kB / 0.8313 GB, free: 68.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007429/1.38, allocations: 2.933 MB / 0.8342 GB, free: 65.79 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006422/1.387, allocations: 1.805 MB / 0.8359 GB, free: 63.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01729/1.404, allocations: 15.96 MB / 0.8515 GB, free: 47.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005981/1.41, allocations: 0.5031 MB / 0.852 GB, free: 47.24 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009002/1.411, allocations: 423.9 kB / 0.8524 GB, free: 46.83 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (942): * Single equations (assignments): 934 * 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 {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004117/1.415, allocations: 2.875 MB / 0.8552 GB, free: 43.94 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009008/1.416, allocations: 480.8 kB / 0.8557 GB, free: 43.47 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01615/1.432, allocations: 10.89 MB / 0.8663 GB, free: 32.52 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.798e-05/1.432, allocations: 63.98 kB / 0.8664 GB, free: 32.46 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.078e-05/1.432, allocations: 8 kB / 0.8664 GB, free: 32.45 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.02e-05/1.432, allocations: 15.94 kB / 0.8664 GB, free: 32.43 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.033/1.465, allocations: 21.56 MB / 0.8875 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.675e-05/1.465, allocations: 12 kB / 0.8875 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003073/1.468, allocations: 0.6786 MB / 0.8881 GB, free: 9.996 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007029/1.475, allocations: 2.732 MB / 0.8908 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005401/1.476, allocations: 79.98 kB / 0.8909 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0184/1.494, allocations: 14.57 MB / 0.9051 GB, free: 8.324 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.329e-05/1.494, allocations: 15.94 kB / 0.9051 GB, free: 8.309 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02799/1.522, allocations: 15.55 MB / 0.9203 GB, free: 8.488 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/1.524, allocations: 0.5213 MB / 0.9208 GB, free: 7.945 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001303/1.525, allocations: 75.91 kB / 0.9209 GB, free: 7.875 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003009/1.528, allocations: 319.5 kB / 0.9212 GB, free: 7.562 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000755/1.529, allocations: 265.9 kB / 0.9214 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003109/1.529, allocations: 112 kB / 0.9215 GB, free: 7.191 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004555/1.534, allocations: 2.681 MB / 0.9242 GB, free: 4.508 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.6e-07/1.534, allocations: 0 / 0.9242 GB, free: 4.508 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008086/1.542, allocations: 1.656 MB / 0.9258 GB, free: 2.855 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.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 (334): * Single equations (assignments): 326 * 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,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009188/1.543, allocations: 238.4 kB / 0.926 GB, free: 2.613 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01758/1.56, allocations: 9.651 MB / 0.9354 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.148e-05/1.561, allocations: 0 / 0.9354 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.007287/1.568, allocations: 4.069 MB / 0.9394 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004309/1.572, allocations: 0.7134 MB / 0.9401 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03335/1.605, allocations: 16.01 MB / 0.9557 GB, free: 3.934 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009486/1.615, allocations: 4.547 MB / 0.9602 GB, free: 15.34 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.007777/1.623, allocations: 2.723 MB / 0.9628 GB, free: 12.61 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001673/1.624, allocations: 347.3 kB / 0.9632 GB, free: 12.27 MB / 0.6387 GB Notification: Performance of SimCode: time 1.512e-06/1.624, allocations: 4 kB / 0.9632 GB, free: 12.27 MB / 0.6387 GB Notification: Performance of Templates: time 0.4263/2.051, allocations: 71.74 MB / 1.033 GB, free: 174 MB / 0.6387 GB " [Timeout remaining time 658] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.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: 9.194940032903105]