Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006998/0.0006999, allocations: 94.25 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009133/0.0009133, allocations: 180.4 kB / 18.26 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 223.3 MB / 242.3 MB, free: 14.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1774/0.1774, allocations: 44.24 MB / 337.7 MB, free: 2.434 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002839/0.0002839, allocations: 8 kB / 410.4 MB, free: 27.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1026, allocations: 61.92 MB / 472.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.2576/0.3603, allocations: 61.91 MB / 0.5217 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0288/0.3891, allocations: 12.69 MB / 0.5341 GB, free: 6.656 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01126/0.4004, allocations: 272.9 kB / 0.5344 GB, free: 6.613 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001741/0.4022, allocations: 0.6179 MB / 0.535 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005576/0.4077, allocations: 2.441 MB / 0.5374 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.4096, allocations: 0.9486 MB / 0.5383 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0087/0.4183, allocations: 10.16 MB / 0.5482 GB, free: 352 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006467/0.4248, allocations: 5.402 MB / 0.5535 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002705/0.4275, allocations: 1.742 MB / 0.5552 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003677/0.4312, allocations: 3.123 MB / 0.5583 GB, free: 8.035 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005882/0.4318, allocations: 216 kB / 0.5585 GB, free: 7.824 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002107/0.4339, allocations: 1.143 MB / 0.5596 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002048/0.436, allocations: 2.589 MB / 0.5621 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002692/0.4387, allocations: 2.956 MB / 0.565 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009386/0.4481, allocations: 9.381 MB / 0.5742 GB, free: 8.027 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.4481, allocations: 4 kB / 0.5742 GB, free: 8.023 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4481, allocations: 3.938 kB / 0.5742 GB, free: 8.02 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002784/0.4484, allocations: 0 / 0.5742 GB, free: 8.02 MB / 414.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.01284/0.4613, allocations: 6.042 MB / 0.5801 GB, free: 1.941 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.4613, allocations: 11.97 kB / 0.5801 GB, free: 1.93 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002141/0.4635, allocations: 1.009 MB / 0.5811 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02956/0.493, allocations: 5.729 MB / 0.5867 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00921/0.5023, allocations: 5.235 MB / 0.5918 GB, free: 6.016 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002155/0.5025, allocations: 317.2 kB / 0.5921 GB, free: 5.758 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001051/0.5036, allocations: 436.5 kB / 0.5925 GB, free: 5.387 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02347/0.5271, allocations: 15.56 MB / 0.6077 GB, free: 5.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001443/0.5272, allocations: 59.48 kB / 0.6077 GB, free: 5.211 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005278/0.5278, allocations: 194.6 kB / 0.6079 GB, free: 5.074 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005876/0.5337, allocations: 3.39 MB / 0.6112 GB, free: 1.695 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0261/0.5598, allocations: 14.73 MB / 0.6256 GB, free: 2.957 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07278/0.6326, allocations: 55.05 MB / 0.6794 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01817/0.6508, allocations: 8.141 MB / 0.6873 GB, free: 2.676 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007266/0.6581, allocations: 4.77 MB / 0.692 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002308/0.6604, allocations: 2.211 MB / 0.6941 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.697e-05/0.6605, allocations: 65.08 kB / 0.6942 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 7.223e-06/0.6605, allocations: 0 / 0.6942 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.2861/0.9466, allocations: 39.55 MB / 0.7328 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.9467, allocations: 124.8 kB / 0.7329 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004308/0.951, allocations: 4.311 MB / 0.7371 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003647/0.9514, allocations: 91.83 kB / 0.7372 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001622/0.953, allocations: 3.823 MB / 0.741 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001082/0.9541, allocations: 1.483 MB / 0.7424 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007194/0.9549, allocations: 0.6582 MB / 0.7431 GB, free: 174.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.903e-05/0.9549, allocations: 305.1 kB / 0.7434 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004377/0.9593, allocations: 3.942 MB / 0.7472 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005662/0.965, allocations: 7.695 MB / 0.7547 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/0.9762, allocations: 12.65 MB / 0.7671 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.37e-05/0.9763, allocations: 36 kB / 0.7671 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.0201/0.9965, allocations: 14.17 MB / 0.7809 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.491e-05/0.9965, allocations: 66.44 kB / 0.781 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.664e-05/0.9966, allocations: 128 kB / 0.7811 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006562/1.003, allocations: 2.682 MB / 0.7837 GB, free: 129.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005045/1.008, allocations: 1.758 MB / 0.7855 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01541/1.024, allocations: 14.16 MB / 0.7993 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006253/1.03, allocations: 0.4935 MB / 0.7998 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009438/1.031, allocations: 427.9 kB / 0.8002 GB, free: 112.4 MB / 0.5294 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.00406/1.035, allocations: 2.864 MB / 0.803 GB, free: 109.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000724/1.036, allocations: 461.9 kB / 0.8034 GB, free: 109.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01559/1.051, allocations: 10.58 MB / 0.8137 GB, free: 98.48 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.717e-05/1.051, allocations: 55.94 kB / 0.8138 GB, free: 98.42 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-05/1.051, allocations: 12 kB / 0.8138 GB, free: 98.41 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-05/1.051, allocations: 19.92 kB / 0.8138 GB, free: 98.39 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02878/1.08, allocations: 21.34 MB / 0.8347 GB, free: 76.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.563e-05/1.08, allocations: 15.98 kB / 0.8347 GB, free: 76.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003163/1.084, allocations: 0.6747 MB / 0.8353 GB, free: 76.13 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006602/1.09, allocations: 2.491 MB / 0.8378 GB, free: 73.63 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005051/1.091, allocations: 80.92 kB / 0.8379 GB, free: 73.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01345/1.104, allocations: 12.9 MB / 0.8504 GB, free: 60.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.326e-06/1.104, allocations: 19.94 kB / 0.8505 GB, free: 60.37 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01921/1.123, allocations: 15.11 MB / 0.8652 GB, free: 44.99 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/1.124, allocations: 0.4913 MB / 0.8657 GB, free: 44.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005644/1.125, allocations: 80.61 kB / 0.8658 GB, free: 44.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002456/1.127, allocations: 308.9 kB / 0.8661 GB, free: 44.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000625/1.128, allocations: 266 kB / 0.8663 GB, free: 43.84 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002482/1.128, allocations: 109.4 kB / 0.8664 GB, free: 43.73 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002925/1.131, allocations: 2.718 MB / 0.8691 GB, free: 41.01 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.7e-07/1.131, allocations: 0 / 0.8691 GB, free: 41.01 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005026/1.136, allocations: 1.64 MB / 0.8707 GB, free: 39.38 MB / 0.5294 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.01907/1.155, allocations: 15.82 MB / 0.8861 GB, free: 23.29 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0118/1.167, allocations: 9.804 MB / 0.8957 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/1.167, allocations: 0 / 0.8957 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.1917/1.359, allocations: 4.304 MB / 0.8999 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01039/1.369, allocations: 0.6996 MB / 0.9006 GB, free: 181.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1146/1.484, allocations: 82.91 MB / 0.9816 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006283/1.49, allocations: 4.555 MB / 0.986 GB, free: 107.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006661/1.497, allocations: 2.724 MB / 0.9887 GB, free: 105 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004307/1.501, allocations: 2.823 MB / 0.9914 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of SimCode: time 8.22e-07/1.501, allocations: 0 / 0.9914 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1358/1.637, allocations: 112.5 MB / 1.101 GB, free: 6.18 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002254/1.637, allocations: 219.3 kB / 1.101 GB, free: 5.918 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.197/5.834, allocations: 4 kB / 1.101 GB, free: 5.914 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches