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.001317/0.001317, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001595/0.001595, allocations: 219.8 kB / 24.53 MB, free: 4.008 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.556/1.556, allocations: 230.5 MB / 258.2 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] 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.2904/0.2904, allocations: 46.93 MB / 361.6 MB, free: 4.195 MB / 286.1 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002379/0.002379, allocations: 75.88 kB / 0.497 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3524, allocations: 66.08 MB / 0.5615 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02159/0.374, allocations: 18.25 MB / 0.5793 GB, free: 1.969 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01358/0.3876, allocations: 5.331 MB / 0.5845 GB, free: 12.62 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00317/0.3907, allocations: 131.4 kB / 0.5847 GB, free: 12.49 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006617/0.3974, allocations: 3.102 MB / 0.5877 GB, free: 9.379 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007746/0.4051, allocations: 2.63 MB / 0.5903 GB, free: 6.738 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002931/0.408, allocations: 1.014 MB / 0.5913 GB, free: 5.723 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01252/0.4206, allocations: 7.688 MB / 0.5988 GB, free: 14.02 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005288/0.4259, allocations: 3.617 MB / 0.6023 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004858/0.4307, allocations: 2.286 MB / 0.6045 GB, free: 8.062 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006233/0.4369, allocations: 3.516 MB / 0.608 GB, free: 4.535 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001524/0.4385, allocations: 455.9 kB / 0.6084 GB, free: 4.09 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003274/0.4417, allocations: 1.338 MB / 0.6097 GB, free: 2.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003861/0.4456, allocations: 2.875 MB / 0.6125 GB, free: 15.87 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005326/0.4509, allocations: 3.211 MB / 0.6156 GB, free: 12.63 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01448/0.4654, allocations: 10.09 MB / 0.6255 GB, free: 2.504 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.4654, allocations: 0 / 0.6255 GB, free: 2.504 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4654, allocations: 0 / 0.6255 GB, free: 2.504 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002932/0.4657, allocations: 0 / 0.6255 GB, free: 2.504 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.02481/0.4905, allocations: 7.435 MB / 0.6328 GB, free: 10.99 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001147/0.4906, allocations: 12.03 kB / 0.6328 GB, free: 10.98 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0004528/0.4911, allocations: 140.5 kB / 0.6329 GB, free: 10.84 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005127/0.4962, allocations: 1.014 MB / 0.6339 GB, free: 9.816 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03204/0.5283, allocations: 5.648 MB / 0.6394 GB, free: 4.156 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01273/0.541, allocations: 4.807 MB / 0.6441 GB, free: 15.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003604/0.5413, allocations: 324.1 kB / 0.6444 GB, free: 14.98 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00246/0.5438, allocations: 431.7 kB / 0.6448 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03389/0.5777, allocations: 15.52 MB / 0.66 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002726/0.578, allocations: 63.53 kB / 0.66 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001524/0.5795, allocations: 195.8 kB / 0.6602 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007101/0.5866, allocations: 3.376 MB / 0.6635 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0342/0.6208, allocations: 14.69 MB / 0.6779 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09142/0.7122, allocations: 54.7 MB / 0.7313 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2804/0.9926, allocations: 6.887 MB / 0.738 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005078/0.9977, allocations: 4.42 MB / 0.7423 GB, free: 153.2 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001177/0.9989, allocations: 0.6572 MB / 0.743 GB, free: 153.1 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/0.9989, allocations: 68.11 kB / 0.743 GB, free: 153 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 6.151e-06/0.9989, allocations: 0 / 0.743 GB, free: 153 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.09619/1.095, allocations: 39.36 MB / 0.7815 GB, free: 123.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.163e-05/1.095, allocations: 124 kB / 0.7816 GB, free: 123.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004904/1.1, allocations: 4.322 MB / 0.7858 GB, free: 119.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009092/1.101, allocations: 81.7 kB / 0.7859 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001733/1.103, allocations: 3.957 MB / 0.7898 GB, free: 115.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001683/1.104, allocations: 1.56 MB / 0.7913 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001893/1.106, allocations: 1.528 MB / 0.7928 GB, free: 112.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.562e-05/1.106, allocations: 303.9 kB / 0.7931 GB, free: 112 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004491/1.111, allocations: 3.942 MB / 0.7969 GB, free: 108 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005957/1.117, allocations: 7.697 MB / 0.8044 GB, free: 98.57 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01252/1.129, allocations: 12.65 MB / 0.8168 GB, free: 84.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.044e-05/1.129, allocations: 36 kB / 0.8168 GB, free: 84.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02307/1.152, allocations: 14.16 MB / 0.8306 GB, free: 69.85 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/1.153, allocations: 60 kB / 0.8307 GB, free: 69.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001803/1.153, allocations: 132 kB / 0.8308 GB, free: 69.66 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007026/1.16, allocations: 2.69 MB / 0.8335 GB, free: 66.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006134/1.166, allocations: 1.758 MB / 0.8352 GB, free: 65.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01796/1.184, allocations: 15.01 MB / 0.8498 GB, free: 49.97 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00662/1.191, allocations: 491.6 kB / 0.8503 GB, free: 49.49 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001629/1.192, allocations: 431.9 kB / 0.8507 GB, free: 49.07 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 (911): * Single equations (assignments): 903 * 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.006393/1.199, allocations: 2.865 MB / 0.8535 GB, free: 46.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001466/1.2, allocations: 484.8 kB / 0.854 GB, free: 45.72 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02075/1.221, allocations: 10.53 MB / 0.8643 GB, free: 35.13 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.013e-05/1.221, allocations: 67.42 kB / 0.8643 GB, free: 35.07 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.269e-05/1.221, allocations: 12 kB / 0.8643 GB, free: 35.05 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.03e-05/1.221, allocations: 15.94 kB / 0.8644 GB, free: 35.04 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03333/1.254, allocations: 21.18 MB / 0.885 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.072e-05/1.254, allocations: 8 kB / 0.885 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003109/1.257, allocations: 0.6865 MB / 0.8857 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006704/1.264, allocations: 2.476 MB / 0.8881 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007719/1.265, allocations: 76 kB / 0.8882 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01645/1.281, allocations: 13.62 MB / 0.9015 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.756e-05/1.281, allocations: 19.88 kB / 0.9015 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02756/1.309, allocations: 15.1 MB / 0.9163 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002161/1.311, allocations: 452.7 kB / 0.9167 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002265/1.313, allocations: 72 kB / 0.9168 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004124/1.317, allocations: 299.5 kB / 0.9171 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001646/1.319, allocations: 281.7 kB / 0.9173 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008943/1.32, allocations: 115.9 kB / 0.9174 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006661/1.327, allocations: 2.71 MB / 0.9201 GB, free: 9.262 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.71e-07/1.327, allocations: 0 / 0.9201 GB, free: 9.262 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008376/1.335, allocations: 1.621 MB / 0.9217 GB, free: 7.641 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.02907/1.364, allocations: 15.81 MB / 0.9371 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01822/1.382, allocations: 9.436 MB / 0.9463 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.738e-05/1.382, allocations: 0 / 0.9463 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.008462/1.391, allocations: 4.01 MB / 0.9502 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006257/1.397, allocations: 0.7322 MB / 0.951 GB, free: 9.348 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4084/1.805, allocations: 70.3 MB / 1.02 GB, free: 216.7 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005729/1.811, allocations: 4.534 MB / 1.024 GB, free: 212.4 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.00551/1.817, allocations: 2.726 MB / 1.027 GB, free: 209.7 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004517/1.821, allocations: 2.827 MB / 1.029 GB, free: 206.8 MB / 0.6544 GB Notification: Performance of SimCode: time 1.332e-06/1.821, allocations: 0 / 1.029 GB, free: 206.8 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2034/2.025, allocations: 120.5 MB / 1.147 GB, free: 86.94 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.47/25.5, allocations: 2.188 kB / 1.147 GB, free: 86.94 MB / 0.6544 GB " [Timeout remaining time 634] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 30.48576900997432]