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.001451/0.001451, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001621/0.001621, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2553/0.2553, allocations: 46.11 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 78.16 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1144, allocations: 62.45 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02216/0.1366, allocations: 18.14 MB / 498.3 MB, free: 2.961 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01522/0.1519, allocations: 5.296 MB / 0.4918 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003845/0.1558, allocations: 111.8 kB / 0.4919 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00653/0.1624, allocations: 3.048 MB / 0.4948 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007679/0.1702, allocations: 2.541 MB / 0.4973 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002832/0.1731, allocations: 1.018 MB / 0.4983 GB, free: 6.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2462/0.4193, allocations: 7.65 MB / 0.5058 GB, free: 13.47 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007187/0.4265, allocations: 4.176 MB / 0.5099 GB, free: 13.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004628/0.4312, allocations: 2.24 MB / 0.5121 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006515/0.4377, allocations: 3.233 MB / 0.5152 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001967/0.4397, allocations: 451.4 kB / 0.5156 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00367/0.4434, allocations: 1.29 MB / 0.5169 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00345/0.4469, allocations: 2.804 MB / 0.5196 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004553/0.4515, allocations: 3.221 MB / 0.5228 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009601/0.4611, allocations: 9.687 MB / 0.5322 GB, free: 6.672 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.4611, allocations: 0 / 0.5322 GB, free: 6.672 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4611, allocations: 0 / 0.5322 GB, free: 6.672 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002991/0.4614, allocations: 0 / 0.5322 GB, free: 6.672 MB / 382.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.01855/0.48, allocations: 7.323 MB / 0.5394 GB, free: 1.914 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.4801, allocations: 10.03 kB / 0.5394 GB, free: 1.914 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002259/0.4823, allocations: 1.01 MB / 0.5404 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.029/0.5113, allocations: 5.606 MB / 0.5459 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01089/0.5223, allocations: 4.812 MB / 0.5506 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002623/0.5226, allocations: 311.5 kB / 0.5509 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001725/0.5243, allocations: 431.8 kB / 0.5513 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03158/0.5559, allocations: 15.53 MB / 0.5664 GB, free: 8.961 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002944/0.5563, allocations: 56.34 kB / 0.5665 GB, free: 8.926 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001463/0.5577, allocations: 196.6 kB / 0.5667 GB, free: 8.789 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007384/0.5651, allocations: 3.385 MB / 0.57 GB, free: 5.438 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03255/0.5977, allocations: 14.69 MB / 0.5843 GB, free: 6.918 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09153/0.6893, allocations: 55.08 MB / 0.6381 GB, free: 15.43 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02014/0.7095, allocations: 8.152 MB / 0.6461 GB, free: 7.055 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007431/0.717, allocations: 4.778 MB / 0.6508 GB, free: 2.27 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002393/0.7194, allocations: 2.206 MB / 0.6529 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.947e-05/0.7195, allocations: 69.08 kB / 0.653 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=367): time 9.057e-06/0.7195, allocations: 7.938 kB / 0.653 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=419): time 0.1141/0.8337, allocations: 39.55 MB / 0.6916 GB, free: 8.113 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.227e-05/0.8338, allocations: 120 kB / 0.6917 GB, free: 7.977 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008098/0.8419, allocations: 4.308 MB / 0.6959 GB, free: 3.652 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007929/0.8427, allocations: 85.7 kB / 0.696 GB, free: 3.562 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003063/0.8458, allocations: 3.823 MB / 0.6997 GB, free: 15.73 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002473/0.8483, allocations: 1.486 MB / 0.7012 GB, free: 14.26 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00416/0.8525, allocations: 1.519 MB / 0.7027 GB, free: 12.74 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.8526, allocations: 301.1 kB / 0.703 GB, free: 12.44 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006939/0.8595, allocations: 3.95 MB / 0.7068 GB, free: 8.488 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2421/1.102, allocations: 7.686 MB / 0.7143 GB, free: 185.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01872/1.12, allocations: 12.65 MB / 0.7267 GB, free: 178.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001828/1.121, allocations: 41.09 kB / 0.7267 GB, free: 178.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02728/1.148, allocations: 14.17 MB / 0.7406 GB, free: 173.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001143/1.148, allocations: 65.19 kB / 0.7406 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002094/1.148, allocations: 131.1 kB / 0.7407 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007921/1.156, allocations: 2.679 MB / 0.7434 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006405/1.163, allocations: 1.76 MB / 0.7451 GB, free: 173.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01754/1.18, allocations: 15.23 MB / 0.76 GB, free: 165.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008589/1.189, allocations: 492.8 kB / 0.7604 GB, free: 165.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002964/1.192, allocations: 430.9 kB / 0.7608 GB, free: 164.8 MB / 0.545 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.007879/1.2, allocations: 2.873 MB / 0.7636 GB, free: 162.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001352/1.201, allocations: 464.9 kB / 0.7641 GB, free: 162.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01745/1.219, allocations: 10.55 MB / 0.7744 GB, free: 153.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001017/1.219, allocations: 67.92 kB / 0.7745 GB, free: 153 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.762e-05/1.219, allocations: 11.94 kB / 0.7745 GB, free: 153 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-05/1.219, allocations: 15.94 kB / 0.7745 GB, free: 153 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03726/1.256, allocations: 21.33 MB / 0.7953 GB, free: 131.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-05/1.256, allocations: 12.22 kB / 0.7953 GB, free: 131.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003443/1.26, allocations: 0.6864 MB / 0.796 GB, free: 130.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006806/1.267, allocations: 2.49 MB / 0.7984 GB, free: 128.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008304/1.267, allocations: 77.72 kB / 0.7985 GB, free: 128.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0149/1.282, allocations: 13.84 MB / 0.812 GB, free: 114.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/1.282, allocations: 15.94 kB / 0.812 GB, free: 114.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02195/1.304, allocations: 15.11 MB / 0.8268 GB, free: 98.88 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/1.306, allocations: 0.4909 MB / 0.8273 GB, free: 98.37 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001679/1.308, allocations: 76.69 kB / 0.8273 GB, free: 98.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002956/1.31, allocations: 309 kB / 0.8276 GB, free: 97.99 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007325/1.311, allocations: 262 kB / 0.8279 GB, free: 97.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002758/1.312, allocations: 110 kB / 0.828 GB, free: 97.63 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003937/1.315, allocations: 2.71 MB / 0.8306 GB, free: 94.92 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/1.315, allocations: 0 / 0.8306 GB, free: 94.92 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007113/1.323, allocations: 1.615 MB / 0.8322 GB, free: 93.31 MB / 0.545 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.02068/1.343, allocations: 15.82 MB / 0.8477 GB, free: 77.23 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02938/1.373, allocations: 19.72 MB / 0.8669 GB, free: 57.51 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.709e-05/1.373, allocations: 4 kB / 0.8669 GB, free: 57.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006483/1.379, allocations: 4.309 MB / 0.8711 GB, free: 53.16 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005295/1.385, allocations: 0.7345 MB / 0.8718 GB, free: 52.44 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3672/1.752, allocations: 79.81 MB / 0.9498 GB, free: 162.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007957/1.76, allocations: 4.547 MB / 0.9542 GB, free: 160.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007027/1.767, allocations: 2.72 MB / 0.9569 GB, free: 160.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005062/1.772, allocations: 2.823 MB / 0.9596 GB, free: 158.4 MB / 0.545 GB Notification: Performance of SimCode: time 9.62e-07/1.772, allocations: 0 / 0.9596 GB, free: 158.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1637/1.936, allocations: 117.1 MB / 1.074 GB, free: 48.14 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/14.34, allocations: 11.94 kB / 1.074 GB, free: 48.12 MB / 0.545 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.csv","/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