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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001713/0.001713, allocations: 117.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002027/0.002027, allocations: 204.6 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2201/0.2201, allocations: 46.1 MB / 344.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 75.88 kB / 480.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3113, allocations: 62.44 MB / 0.5305 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01888/0.3303, allocations: 18.15 MB / 0.5482 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01171/0.342, allocations: 5.296 MB / 0.5534 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00315/0.3452, allocations: 111.7 kB / 0.5535 GB, free: 10.09 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006072/0.3513, allocations: 3.052 MB / 0.5565 GB, free: 7.023 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006464/0.3578, allocations: 2.536 MB / 0.559 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002327/0.3602, allocations: 1.026 MB / 0.56 GB, free: 3.453 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.3712, allocations: 7.655 MB / 0.5675 GB, free: 11.78 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005728/0.377, allocations: 4.179 MB / 0.5715 GB, free: 7.551 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003607/0.3806, allocations: 2.254 MB / 0.5737 GB, free: 5.289 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004548/0.3852, allocations: 3.232 MB / 0.5769 GB, free: 2.047 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00133/0.3865, allocations: 452 kB / 0.5773 GB, free: 1.605 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002937/0.3895, allocations: 1.295 MB / 0.5786 GB, free: 316 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003634/0.3932, allocations: 2.813 MB / 0.5813 GB, free: 13.49 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004588/0.3978, allocations: 3.219 MB / 0.5845 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0136/0.4114, allocations: 10.03 MB / 0.5943 GB, free: 188 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.4114, allocations: 0 / 0.5943 GB, free: 188 kB / 446.1 MB Notification: Performance of FrontEnd: time 4.088e-06/0.4114, allocations: 4 kB / 0.5943 GB, free: 184 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003787/0.4118, allocations: 7.938 kB / 0.5943 GB, free: 176 kB / 446.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.01946/0.4313, allocations: 7.321 MB / 0.6014 GB, free: 8.766 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.4314, allocations: 12.03 kB / 0.6014 GB, free: 8.754 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0027/0.4341, allocations: 1.014 MB / 0.6024 GB, free: 7.73 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03126/0.4654, allocations: 5.608 MB / 0.6079 GB, free: 2.105 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01129/0.4767, allocations: 4.877 MB / 0.6127 GB, free: 13.17 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002903/0.477, allocations: 316.4 kB / 0.613 GB, free: 12.86 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001744/0.4788, allocations: 431.5 kB / 0.6134 GB, free: 12.43 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02983/0.5086, allocations: 15.52 MB / 0.6286 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002584/0.5089, allocations: 63.39 kB / 0.6286 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001348/0.5103, allocations: 199.8 kB / 0.6288 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00647/0.5167, allocations: 3.38 MB / 0.6321 GB, free: 8.539 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02939/0.5462, allocations: 14.69 MB / 0.6464 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08961/0.6358, allocations: 54.78 MB / 0.6999 GB, free: 1.867 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02001/0.6559, allocations: 8.15 MB / 0.7079 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007422/0.6634, allocations: 4.781 MB / 0.7126 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002341/0.6658, allocations: 2.204 MB / 0.7147 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.328e-05/0.6658, allocations: 69.08 kB / 0.7148 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 7.494e-06/0.6659, allocations: 0 / 0.7148 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3339/0.9998, allocations: 39.55 MB / 0.7534 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.672e-05/0.9999, allocations: 122.9 kB / 0.7535 GB, free: 144.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005183/1.005, allocations: 4.306 MB / 0.7577 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000892/1.006, allocations: 85.7 kB / 0.7578 GB, free: 140 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001673/1.008, allocations: 3.828 MB / 0.7615 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001619/1.009, allocations: 1.487 MB / 0.763 GB, free: 134.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002017/1.011, allocations: 1.516 MB / 0.7645 GB, free: 133.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.122e-05/1.011, allocations: 301.1 kB / 0.7648 GB, free: 132.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004575/1.016, allocations: 3.946 MB / 0.7686 GB, free: 128.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006262/1.022, allocations: 7.693 MB / 0.7761 GB, free: 119.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01197/1.034, allocations: 12.65 MB / 0.7885 GB, free: 105 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.791e-05/1.034, allocations: 36 kB / 0.7885 GB, free: 105 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02224/1.057, allocations: 14.17 MB / 0.8024 GB, free: 90.77 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.777e-05/1.057, allocations: 63.94 kB / 0.8024 GB, free: 90.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001331/1.057, allocations: 132 kB / 0.8025 GB, free: 90.58 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007327/1.064, allocations: 2.68 MB / 0.8052 GB, free: 87.89 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005982/1.07, allocations: 1.762 MB / 0.8069 GB, free: 86.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01816/1.088, allocations: 15.22 MB / 0.8218 GB, free: 70.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005776/1.094, allocations: 495.6 kB / 0.8222 GB, free: 70.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001413/1.096, allocations: 423.9 kB / 0.8226 GB, free: 69.74 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.005642/1.101, allocations: 2.868 MB / 0.8254 GB, free: 66.86 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001487/1.103, allocations: 458.1 kB / 0.8259 GB, free: 66.41 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02088/1.124, allocations: 10.57 MB / 0.8362 GB, free: 55.79 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001039/1.124, allocations: 63.98 kB / 0.8362 GB, free: 55.73 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.404e-05/1.124, allocations: 8.094 kB / 0.8363 GB, free: 55.72 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.758e-05/1.124, allocations: 23.88 kB / 0.8363 GB, free: 55.7 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03813/1.162, allocations: 21.22 MB / 0.857 GB, free: 34.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-05/1.162, allocations: 12.22 kB / 0.857 GB, free: 34.29 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003216/1.166, allocations: 0.6864 MB / 0.8577 GB, free: 33.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006914/1.172, allocations: 2.483 MB / 0.8601 GB, free: 31.11 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007392/1.173, allocations: 76 kB / 0.8602 GB, free: 31.03 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01568/1.189, allocations: 13.81 MB / 0.8737 GB, free: 16.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.084e-05/1.189, allocations: 20 kB / 0.8737 GB, free: 16.91 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0237/1.213, allocations: 15.11 MB / 0.8884 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001285/1.214, allocations: 0.495 MB / 0.8889 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001518/1.216, allocations: 76 kB / 0.889 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00356/1.219, allocations: 299.5 kB / 0.8893 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001128/1.22, allocations: 265.9 kB / 0.8895 GB, free: 392 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000635/1.221, allocations: 118.7 kB / 0.8897 GB, free: 276 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004901/1.226, allocations: 2.715 MB / 0.8923 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8.02e-07/1.226, allocations: 0 / 0.8923 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007548/1.233, allocations: 1.611 MB / 0.8939 GB, free: 11.95 MB / 0.5762 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.02883/1.262, allocations: 15.83 MB / 0.9093 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01675/1.279, allocations: 9.845 MB / 0.919 GB, free: 1.996 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.682e-05/1.279, allocations: 8.125 kB / 0.919 GB, free: 1.988 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007697/1.287, allocations: 4.317 MB / 0.9232 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005414/1.292, allocations: 0.7311 MB / 0.9239 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3472/1.64, allocations: 69.94 MB / 0.9922 GB, free: 187.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004018/1.644, allocations: 4.542 MB / 0.9966 GB, free: 182.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005359/1.649, allocations: 2.723 MB / 0.9993 GB, free: 180.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003311/1.652, allocations: 2.819 MB / 1.002 GB, free: 177.4 MB / 0.6231 GB Notification: Performance of SimCode: time 8.92e-07/1.652, allocations: 2.531 kB / 1.002 GB, free: 177.4 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1497/1.802, allocations: 115.1 MB / 1.114 GB, free: 62.84 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.25/23.05, allocations: 10.95 kB / 1.114 GB, free: 62.84 MB / 0.6231 GB (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 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches