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.00194/0.00194, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002451/0.002451, allocations: 203.9 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.582/1.582, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2555/0.2555, allocations: 46.12 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002216/0.002217, allocations: 75.88 kB / 480.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3909/0.3931, allocations: 62.45 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02266/0.4158, allocations: 18.14 MB / 0.5484 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01311/0.429, allocations: 5.297 MB / 0.5535 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004653/0.4337, allocations: 107.8 kB / 0.5536 GB, free: 10.07 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006842/0.4406, allocations: 3.04 MB / 0.5566 GB, free: 7.02 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007322/0.448, allocations: 2.551 MB / 0.5591 GB, free: 4.461 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002836/0.4508, allocations: 1.022 MB / 0.5601 GB, free: 3.438 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01166/0.4625, allocations: 7.663 MB / 0.5676 GB, free: 11.76 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006963/0.4695, allocations: 4.175 MB / 0.5716 GB, free: 7.535 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004779/0.4743, allocations: 2.243 MB / 0.5738 GB, free: 5.285 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005989/0.4804, allocations: 3.224 MB / 0.577 GB, free: 2.051 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001575/0.482, allocations: 452 kB / 0.5774 GB, free: 1.609 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003522/0.4855, allocations: 1.295 MB / 0.5787 GB, free: 320 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003732/0.4893, allocations: 2.801 MB / 0.5814 GB, free: 13.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00533/0.4946, allocations: 3.219 MB / 0.5846 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01423/0.5089, allocations: 10.08 MB / 0.5944 GB, free: 156 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.5089, allocations: 0 / 0.5944 GB, free: 156 kB / 446.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.509, allocations: 0 / 0.5944 GB, free: 156 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003939/0.5094, allocations: 0 / 0.5944 GB, free: 156 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.02168/0.531, allocations: 7.51 MB / 0.6017 GB, free: 8.543 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.5311, allocations: 8.031 kB / 0.6017 GB, free: 8.535 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003182/0.5343, allocations: 1.014 MB / 0.6027 GB, free: 7.512 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03148/0.5658, allocations: 5.644 MB / 0.6082 GB, free: 1.855 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01073/0.5766, allocations: 4.898 MB / 0.613 GB, free: 12.9 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003196/0.5769, allocations: 320.4 kB / 0.6133 GB, free: 12.58 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001795/0.5787, allocations: 435.6 kB / 0.6138 GB, free: 12.16 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03217/0.6109, allocations: 15.53 MB / 0.6289 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000284/0.6113, allocations: 63.53 kB / 0.629 GB, free: 11.84 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001853/0.6131, allocations: 195.8 kB / 0.6292 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007084/0.6202, allocations: 3.376 MB / 0.6325 GB, free: 8.27 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03133/0.6516, allocations: 14.7 MB / 0.6468 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09048/0.7421, allocations: 54.87 MB / 0.7004 GB, free: 1.5 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02044/0.7626, allocations: 8.15 MB / 0.7084 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007399/0.77, allocations: 4.773 MB / 0.713 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002729/0.7728, allocations: 2.212 MB / 0.7152 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.033e-05/0.7729, allocations: 65.08 kB / 0.7152 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 6.923e-06/0.7729, allocations: 0 / 0.7152 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3765/1.149, allocations: 39.67 MB / 0.754 GB, free: 144.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/1.15, allocations: 127.8 kB / 0.7541 GB, free: 144 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00494/1.155, allocations: 4.321 MB / 0.7583 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001026/1.156, allocations: 85.7 kB / 0.7584 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001904/1.158, allocations: 3.966 MB / 0.7623 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001591/1.159, allocations: 1.559 MB / 0.7638 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002206/1.161, allocations: 1.524 MB / 0.7653 GB, free: 133.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.365e-05/1.161, allocations: 301.1 kB / 0.7656 GB, free: 132.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00485/1.166, allocations: 3.95 MB / 0.7694 GB, free: 128.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006763/1.173, allocations: 7.688 MB / 0.7769 GB, free: 119.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01198/1.185, allocations: 12.66 MB / 0.7893 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001082/1.185, allocations: 36 kB / 0.7893 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.0229/1.208, allocations: 14.2 MB / 0.8032 GB, free: 90.62 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.816e-05/1.208, allocations: 63.94 kB / 0.8033 GB, free: 90.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.911e-05/1.208, allocations: 128 kB / 0.8034 GB, free: 90.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007194/1.216, allocations: 2.675 MB / 0.806 GB, free: 87.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00618/1.222, allocations: 1.758 MB / 0.8077 GB, free: 85.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0247/1.246, allocations: 15.23 MB / 0.8226 GB, free: 70.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009456/1.256, allocations: 499.7 kB / 0.8231 GB, free: 70 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001934/1.258, allocations: 425.3 kB / 0.8235 GB, free: 69.58 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.007107/1.265, allocations: 2.869 MB / 0.8263 GB, free: 66.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/1.266, allocations: 484.8 kB / 0.8267 GB, free: 66.23 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02715/1.294, allocations: 10.55 MB / 0.837 GB, free: 55.61 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001101/1.294, allocations: 70.58 kB / 0.8371 GB, free: 55.55 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.239e-05/1.294, allocations: 8 kB / 0.8371 GB, free: 55.54 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-05/1.294, allocations: 15.94 kB / 0.8371 GB, free: 55.53 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04863/1.342, allocations: 21.24 MB / 0.8579 GB, free: 34.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.853e-05/1.343, allocations: 12 kB / 0.8579 GB, free: 34.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004118/1.347, allocations: 0.6794 MB / 0.8585 GB, free: 33.42 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009402/1.356, allocations: 2.484 MB / 0.861 GB, free: 30.93 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001267/1.357, allocations: 79.98 kB / 0.861 GB, free: 30.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01971/1.377, allocations: 13.84 MB / 0.8746 GB, free: 16.72 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/1.377, allocations: 15.94 kB / 0.8746 GB, free: 16.71 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02677/1.404, allocations: 15.13 MB / 0.8893 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001355/1.405, allocations: 0.5134 MB / 0.8899 GB, free: 0.7695 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000903/1.406, allocations: 83.92 kB / 0.8899 GB, free: 0.6875 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002535/1.409, allocations: 307.3 kB / 0.8902 GB, free: 400 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006739/1.41, allocations: 258 kB / 0.8905 GB, free: 140 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002768/1.41, allocations: 112 kB / 0.8906 GB, free: 28 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004341/1.414, allocations: 2.71 MB / 0.8932 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.414, allocations: 0 / 0.8932 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007107/1.421, allocations: 1.621 MB / 0.8948 GB, free: 11.7 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.02828/1.45, allocations: 15.85 MB / 0.9103 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01804/1.468, allocations: 9.846 MB / 0.9199 GB, free: 1.719 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/1.468, allocations: 4 kB / 0.9199 GB, free: 1.715 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00802/1.476, allocations: 4.311 MB / 0.9241 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00569/1.481, allocations: 0.7417 MB / 0.9248 GB, free: 12.65 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3809/1.862, allocations: 70.2 MB / 0.9934 GB, free: 186.3 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004856/1.867, allocations: 4.548 MB / 0.9978 GB, free: 181.8 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005142/1.873, allocations: 2.726 MB / 1 GB, free: 179 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003309/1.876, allocations: 2.822 MB / 1.003 GB, free: 176.2 MB / 0.6231 GB Notification: Performance of SimCode: time 1.072e-06/1.876, allocations: 0 / 1.003 GB, free: 176.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1616/2.037, allocations: 113 MB / 1.114 GB, free: 63.77 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.81/23.85, allocations: 4 kB / 1.114 GB, free: 63.76 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