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.001935/0.001935, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002244/0.002245, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2174/0.2174, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 75.88 kB / 480.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.3723, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02011/0.3925, allocations: 18.15 MB / 0.5483 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01394/0.4065, allocations: 5.291 MB / 0.5534 GB, free: 10.25 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005283/0.4118, allocations: 107.7 kB / 0.5535 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007449/0.4193, allocations: 3.048 MB / 0.5565 GB, free: 7.082 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009366/0.4288, allocations: 2.607 MB / 0.5591 GB, free: 4.465 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003558/0.4324, allocations: 1.018 MB / 0.56 GB, free: 3.445 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01293/0.4453, allocations: 7.67 MB / 0.5675 GB, free: 11.76 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006934/0.4523, allocations: 4.171 MB / 0.5716 GB, free: 7.543 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004643/0.457, allocations: 2.266 MB / 0.5738 GB, free: 5.27 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005242/0.4623, allocations: 3.228 MB / 0.577 GB, free: 2.031 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001884/0.4642, allocations: 452 kB / 0.5774 GB, free: 1.59 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003737/0.4679, allocations: 1.295 MB / 0.5787 GB, free: 300 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004027/0.472, allocations: 2.813 MB / 0.5814 GB, free: 13.47 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007975/0.48, allocations: 3.223 MB / 0.5846 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01681/0.4969, allocations: 10.07 MB / 0.5944 GB, free: 124 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.346e-05/0.4969, allocations: 0 / 0.5944 GB, free: 124 kB / 446.1 MB Notification: Performance of FrontEnd: time 3.277e-06/0.497, allocations: 4 kB / 0.5944 GB, free: 120 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004514/0.4974, allocations: 0 / 0.5944 GB, free: 120 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.02182/0.5192, allocations: 7.506 MB / 0.6017 GB, free: 8.512 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.83e-05/0.5193, allocations: 12.03 kB / 0.6017 GB, free: 8.5 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004516/0.5238, allocations: 1.014 MB / 0.6027 GB, free: 7.477 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02916/0.553, allocations: 5.644 MB / 0.6082 GB, free: 1.82 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01221/0.5653, allocations: 4.892 MB / 0.613 GB, free: 12.87 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004065/0.5657, allocations: 322.9 kB / 0.6133 GB, free: 12.55 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002352/0.5681, allocations: 443.5 kB / 0.6138 GB, free: 12.12 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03552/0.6036, allocations: 15.53 MB / 0.6289 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003957/0.6041, allocations: 55.59 kB / 0.629 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002151/0.6063, allocations: 199.8 kB / 0.6292 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006779/0.613, allocations: 3.38 MB / 0.6325 GB, free: 8.23 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03118/0.6443, allocations: 14.69 MB / 0.6468 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09607/0.7404, allocations: 54.88 MB / 0.7004 GB, free: 1.465 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01871/0.7591, allocations: 8.138 MB / 0.7083 GB, free: 9.094 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007179/0.7664, allocations: 4.781 MB / 0.713 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00235/0.7688, allocations: 2.212 MB / 0.7152 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.237e-05/0.7689, allocations: 69.02 kB / 0.7152 GB, free: 1.621 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 8.686e-06/0.7689, allocations: 0 / 0.7152 GB, free: 1.621 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3776/1.147, allocations: 39.68 MB / 0.754 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.788e-05/1.147, allocations: 120 kB / 0.7541 GB, free: 144 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005008/1.152, allocations: 4.321 MB / 0.7583 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008506/1.152, allocations: 81.7 kB / 0.7584 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001958/1.154, allocations: 3.969 MB / 0.7623 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001743/1.156, allocations: 1.554 MB / 0.7638 GB, free: 134.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002046/1.158, allocations: 1.532 MB / 0.7653 GB, free: 133.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.959e-05/1.158, allocations: 305 kB / 0.7656 GB, free: 132.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004472/1.163, allocations: 3.95 MB / 0.7694 GB, free: 128.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005692/1.169, allocations: 7.687 MB / 0.7769 GB, free: 119.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01188/1.18, allocations: 12.66 MB / 0.7893 GB, free: 105 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.392e-05/1.181, allocations: 36 kB / 0.7893 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02309/1.204, allocations: 14.2 MB / 0.8032 GB, free: 90.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.713e-05/1.204, allocations: 60 kB / 0.8033 GB, free: 90.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000138/1.204, allocations: 132 kB / 0.8034 GB, free: 90.51 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00667/1.211, allocations: 2.672 MB / 0.806 GB, free: 87.83 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005987/1.217, allocations: 1.755 MB / 0.8077 GB, free: 86.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01644/1.233, allocations: 15.23 MB / 0.8226 GB, free: 70.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005928/1.239, allocations: 491.6 kB / 0.8231 GB, free: 70.08 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00142/1.24, allocations: 423.9 kB / 0.8235 GB, free: 69.67 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.005577/1.246, allocations: 2.876 MB / 0.8263 GB, free: 66.79 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001302/1.247, allocations: 488.8 kB / 0.8267 GB, free: 66.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01743/1.265, allocations: 10.56 MB / 0.837 GB, free: 55.69 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-05/1.265, allocations: 67.98 kB / 0.8371 GB, free: 55.62 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.065e-05/1.265, allocations: 8 kB / 0.8371 GB, free: 55.62 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.38e-05/1.265, allocations: 15.94 kB / 0.8371 GB, free: 55.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03596/1.301, allocations: 21.24 MB / 0.8579 GB, free: 34.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.723e-05/1.301, allocations: 12 kB / 0.8579 GB, free: 34.18 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003146/1.304, allocations: 0.6825 MB / 0.8585 GB, free: 33.49 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006543/1.311, allocations: 2.483 MB / 0.861 GB, free: 31 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007977/1.312, allocations: 76 kB / 0.861 GB, free: 30.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01528/1.327, allocations: 13.83 MB / 0.8745 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.356e-05/1.327, allocations: 19.94 kB / 0.8746 GB, free: 16.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0225/1.349, allocations: 15.15 MB / 0.8894 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001351/1.351, allocations: 0.5057 MB / 0.8899 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001419/1.352, allocations: 79.59 kB / 0.8899 GB, free: 0.7773 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002911/1.355, allocations: 303.5 kB / 0.8902 GB, free: 492 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008032/1.356, allocations: 266 kB / 0.8905 GB, free: 224 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002852/1.356, allocations: 111.9 kB / 0.8906 GB, free: 112 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004683/1.361, allocations: 2.712 MB / 0.8932 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.7e-07/1.361, allocations: 0 / 0.8932 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008073/1.369, allocations: 1.621 MB / 0.8948 GB, free: 11.79 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.03084/1.4, allocations: 15.84 MB / 0.9103 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0254/1.425, allocations: 9.857 MB / 0.9199 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.718e-05/1.426, allocations: 4 kB / 0.9199 GB, free: 1.797 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0097/1.435, allocations: 4.316 MB / 0.9241 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009445/1.445, allocations: 0.7317 MB / 0.9248 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4039/1.849, 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.003817/1.853, allocations: 4.543 MB / 0.9978 GB, free: 181.7 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.004966/1.857, allocations: 2.719 MB / 1 GB, free: 179 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003168/1.861, allocations: 2.823 MB / 1.003 GB, free: 176.2 MB / 0.6231 GB Notification: Performance of SimCode: time 8.42e-07/1.861, allocations: 4 kB / 1.003 GB, free: 176.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1691/2.03, allocations: 113 MB / 1.114 GB, free: 63.77 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.01/25.04, allocations: 4.062 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 & 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