Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001577/0.001577, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001335/0.001335, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2322/0.2322, allocations: 46.1 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 81.61 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1283, allocations: 62.44 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01493/0.1433, allocations: 12.27 MB / 492.4 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.1538, allocations: 3.948 MB / 496.3 MB, free: 4.895 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002771/0.1566, allocations: 59.88 kB / 496.4 MB, free: 4.836 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003452/0.1602, allocations: 1.304 MB / 497.7 MB, free: 3.527 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006041/0.1662, allocations: 1.728 MB / 499.4 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001663/0.1679, allocations: 491 kB / 499.9 MB, free: 1.312 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005699/0.1736, allocations: 3.599 MB / 0.4917 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003562/0.1773, allocations: 2.013 MB / 0.4937 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002414/0.1797, allocations: 1.191 MB / 0.4948 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003004/0.1828, allocations: 1.705 MB / 0.4965 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001109/0.1839, allocations: 240 kB / 0.4967 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00279/0.1867, allocations: 0.9283 MB / 0.4976 GB, free: 7.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002403/0.1892, allocations: 1.574 MB / 0.4992 GB, free: 6.008 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004334/0.1935, allocations: 1.882 MB / 0.501 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2341/0.4277, allocations: 5.892 MB / 0.5068 GB, free: 18.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.042e-05/0.4278, allocations: 0 / 0.5068 GB, free: 18.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.4278, allocations: 0 / 0.5068 GB, free: 18.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003324/0.4281, allocations: 0 / 0.5068 GB, free: 18.5 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01299/0.4411, allocations: 4.137 MB / 0.5108 GB, free: 16.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.4412, allocations: 9.812 kB / 0.5108 GB, free: 16.8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001829/0.443, allocations: 0.7131 MB / 0.5115 GB, free: 16.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0118/0.4548, allocations: 3.085 MB / 0.5145 GB, free: 16.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005103/0.46, allocations: 2.083 MB / 0.5166 GB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002908/0.4603, allocations: 191.4 kB / 0.5167 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002146/0.4624, allocations: 248.3 kB / 0.517 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02525/0.4877, allocations: 10.49 MB / 0.5272 GB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001953/0.488, allocations: 26.78 kB / 0.5273 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001438/0.4894, allocations: 116 kB / 0.5274 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004493/0.4939, allocations: 2.556 MB / 0.5299 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01761/0.5116, allocations: 9.919 MB / 0.5395 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0509/0.5625, allocations: 34.47 MB / 0.5732 GB, free: 4.016 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01012/0.5727, allocations: 5.192 MB / 0.5783 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00374/0.5765, allocations: 2.292 MB / 0.5805 GB, free: 12.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002019/0.5785, allocations: 1.883 MB / 0.5824 GB, free: 10.11 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.499e-05/0.5786, allocations: 53.69 kB / 0.5824 GB, free: 10.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=229): time 6.622e-06/0.5786, allocations: 0 / 0.5824 GB, free: 10.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=235): time 0.03421/0.6128, allocations: 13.98 MB / 0.5961 GB, free: 12.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.6129, allocations: 77.34 kB / 0.5961 GB, free: 11.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004125/0.617, allocations: 2.634 MB / 0.5987 GB, free: 9.316 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003585/0.6174, allocations: 57.17 kB / 0.5988 GB, free: 9.258 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001885/0.6193, allocations: 2.626 MB / 0.6013 GB, free: 6.641 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001047/0.6204, allocations: 0.8569 MB / 0.6022 GB, free: 5.793 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001738/0.6221, allocations: 1.035 MB / 0.6032 GB, free: 4.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.6222, allocations: 301.1 kB / 0.6035 GB, free: 4.453 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003308/0.6255, allocations: 2.193 MB / 0.6056 GB, free: 2.254 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005713/0.6313, allocations: 5.067 MB / 0.6105 GB, free: 11.83 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009807/0.6411, allocations: 7.956 MB / 0.6183 GB, free: 2.891 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001157/0.6412, allocations: 28 kB / 0.6183 GB, free: 2.863 MB / 462.1 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01394/0.6552, allocations: 7.861 MB / 0.626 GB, free: 11.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.89e-05/0.6553, allocations: 48.97 kB / 0.6261 GB, free: 11.36 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001454/0.6555, allocations: 100 kB / 0.6262 GB, free: 11.26 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002315/0.6578, allocations: 0.7889 MB / 0.6269 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003709/0.6615, allocations: 1.185 MB / 0.6281 GB, free: 9.277 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005767/0.6673, allocations: 4.524 MB / 0.6325 GB, free: 4.617 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00327/0.6706, allocations: 294.7 kB / 0.6328 GB, free: 4.332 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006959/0.6713, allocations: 300 kB / 0.6331 GB, free: 4.039 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (631): * Single equations (assignments): 624 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003324/0.6746, allocations: 2.03 MB / 0.6351 GB, free: 2.004 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005183/0.6751, allocations: 256.6 kB / 0.6353 GB, free: 1.75 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008098/0.6832, allocations: 4.721 MB / 0.6399 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.011e-05/0.6833, allocations: 46.88 kB / 0.64 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/0.6834, allocations: 4 kB / 0.64 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.901e-05/0.6834, allocations: 11.91 kB / 0.64 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01886/0.7023, allocations: 10.54 MB / 0.6503 GB, free: 2.297 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-05/0.7023, allocations: 8 kB / 0.6503 GB, free: 2.289 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001548/0.7039, allocations: 359.5 kB / 0.6506 GB, free: 1.938 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002107/0.706, allocations: 0.6642 MB / 0.6513 GB, free: 1.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000186/0.7062, allocations: 43.98 kB / 0.6513 GB, free: 1.227 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00493/0.7111, allocations: 3.9 MB / 0.6551 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.185e-06/0.7111, allocations: 12 kB / 0.6551 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01056/0.7217, allocations: 7.138 MB / 0.6621 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006609/0.7224, allocations: 301.7 kB / 0.6624 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005214/0.7229, allocations: 47.19 kB / 0.6624 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.7243, allocations: 139.9 kB / 0.6626 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000359/0.7247, allocations: 129 kB / 0.6627 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000176/0.7248, allocations: 75.73 kB / 0.6628 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002799/0.7277, allocations: 1.619 MB / 0.6643 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.61e-07/0.7277, allocations: 4 kB / 0.6643 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004558/0.7322, allocations: 0.9101 MB / 0.6652 GB, free: 2.691 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01077/0.743, allocations: 7.786 MB / 0.6728 GB, free: 10.79 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01321/0.7562, allocations: 8.663 MB / 0.6813 GB, free: 2.137 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/0.7563, allocations: 288 / 0.6813 GB, free: 2.137 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.002672/0.759, allocations: 2.028 MB / 0.6833 GB, free: 96 kB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.7616, allocations: 368.1 kB / 0.6836 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2594/1.021, allocations: 42.3 MB / 0.7249 GB, free: 190.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003564/1.025, allocations: 3.164 MB / 0.728 GB, free: 189.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004339/1.029, allocations: 1.964 MB / 0.73 GB, free: 189.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001947/1.031, allocations: 1.706 MB / 0.7316 GB, free: 187.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.032e-06/1.031, allocations: 0 / 0.7316 GB, free: 187.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08883/1.12, allocations: 57.24 MB / 0.7875 GB, free: 140 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/12.11, allocations: 6.359 kB / 0.7875 GB, free: 140 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute_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_Revolute.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches