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.001504/0.001504, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001993/0.001993, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, 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.2193/0.2193, allocations: 46.09 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 79.88 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3659/0.3676, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01339/0.381, allocations: 12.26 MB / 0.5425 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009179/0.3902, allocations: 3.94 MB / 0.5463 GB, free: 0.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002728/0.393, allocations: 61.03 kB / 0.5464 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003296/0.3963, allocations: 1.319 MB / 0.5477 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005353/0.4017, allocations: 1.764 MB / 0.5494 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001578/0.4033, allocations: 499 kB / 0.5499 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005664/0.409, allocations: 3.609 MB / 0.5534 GB, free: 10.26 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003577/0.4126, allocations: 2.009 MB / 0.5554 GB, free: 8.215 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002356/0.415, allocations: 1.191 MB / 0.5565 GB, free: 7.02 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002867/0.4179, allocations: 1.713 MB / 0.5582 GB, free: 5.301 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009477/0.4189, allocations: 236 kB / 0.5584 GB, free: 5.07 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002614/0.4215, allocations: 0.9361 MB / 0.5594 GB, free: 4.133 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002069/0.4236, allocations: 1.578 MB / 0.5609 GB, free: 2.551 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003227/0.4269, allocations: 1.879 MB / 0.5627 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008441/0.4353, allocations: 6.212 MB / 0.5688 GB, free: 10.43 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.167e-06/0.4354, allocations: 0 / 0.5688 GB, free: 10.43 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.806e-06/0.4354, allocations: 0 / 0.5688 GB, free: 10.43 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002296/0.4356, allocations: 0 / 0.5688 GB, free: 10.43 MB / 430.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.01018/0.4458, allocations: 4.257 MB / 0.573 GB, free: 6.094 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/0.4459, allocations: 8.031 kB / 0.573 GB, free: 6.086 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002074/0.448, allocations: 0.7083 MB / 0.5737 GB, free: 5.367 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01046/0.4585, allocations: 3.106 MB / 0.5767 GB, free: 2.254 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004982/0.4635, allocations: 2.1 MB / 0.5787 GB, free: 108 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003035/0.4638, allocations: 185.1 kB / 0.5789 GB, free: 15.92 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00153/0.4654, allocations: 259.7 kB / 0.5792 GB, free: 15.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01856/0.484, allocations: 10.48 MB / 0.5894 GB, free: 4.75 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001457/0.4842, allocations: 23.81 kB / 0.5894 GB, free: 4.727 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009552/0.4851, allocations: 119.8 kB / 0.5895 GB, free: 4.609 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004225/0.4894, allocations: 2.553 MB / 0.592 GB, free: 2.051 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01951/0.5089, allocations: 9.915 MB / 0.6017 GB, free: 8.125 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05401/0.563, allocations: 34.35 MB / 0.6352 GB, free: 4.953 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009679/0.5727, allocations: 5.189 MB / 0.6403 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003246/0.576, allocations: 2.289 MB / 0.6426 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001765/0.5778, allocations: 1.884 MB / 0.6444 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.488e-05/0.5779, allocations: 56.56 kB / 0.6444 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=229): time 5.972e-06/0.5779, allocations: 4 kB / 0.6444 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of matching and sorting (n=235): time 0.03436/0.6123, allocations: 14.06 MB / 0.6582 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.6124, allocations: 73.41 kB / 0.6582 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004387/0.6168, allocations: 2.632 MB / 0.6608 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004217/0.6172, allocations: 61.69 kB / 0.6609 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002002/0.6193, allocations: 2.737 MB / 0.6636 GB, free: 7.281 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001237/0.6205, allocations: 0.8913 MB / 0.6644 GB, free: 6.383 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002342/0.6229, allocations: 1.045 MB / 0.6654 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.623, allocations: 305.1 kB / 0.6657 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003504/0.6265, allocations: 2.2 MB / 0.6679 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005733/0.6323, allocations: 5.059 MB / 0.6728 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/0.6427, allocations: 7.957 MB / 0.6806 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001111/0.6428, allocations: 31.94 kB / 0.6806 GB, free: 2.965 MB / 0.5294 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01556/0.6584, allocations: 7.873 MB / 0.6883 GB, free: 11.08 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001499/0.6586, allocations: 48 kB / 0.6884 GB, free: 11.03 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002025/0.6588, allocations: 100 kB / 0.6885 GB, free: 10.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002419/0.6612, allocations: 0.801 MB / 0.6892 GB, free: 10.13 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00418/0.6654, allocations: 1.181 MB / 0.6904 GB, free: 8.945 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006038/0.6715, allocations: 4.516 MB / 0.6948 GB, free: 4.293 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003711/0.6753, allocations: 287.8 kB / 0.6951 GB, free: 4.012 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00122/0.6765, allocations: 300 kB / 0.6954 GB, free: 3.719 MB / 0.545 GB 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.004954/0.6815, allocations: 2.02 MB / 0.6973 GB, free: 1.688 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008565/0.6823, allocations: 274.1 kB / 0.6976 GB, free: 1.418 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009205/0.6916, allocations: 4.729 MB / 0.7022 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.062e-05/0.6917, allocations: 48.08 kB / 0.7023 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.8e-05/0.6917, allocations: 7.875 kB / 0.7023 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.393e-05/0.6918, allocations: 11.97 kB / 0.7023 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02157/0.7133, allocations: 10.5 MB / 0.7125 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.573e-05/0.7134, allocations: 4 kB / 0.7125 GB, free: 1.922 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001695/0.7151, allocations: 367.3 kB / 0.7129 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002058/0.7172, allocations: 0.6604 MB / 0.7135 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003613/0.7176, allocations: 36 kB / 0.7136 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005193/0.7228, allocations: 3.907 MB / 0.7174 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.768e-06/0.7229, allocations: 11.94 kB / 0.7174 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01132/0.7342, allocations: 7.153 MB / 0.7244 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007214/0.735, allocations: 327.2 kB / 0.7247 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007353/0.7357, allocations: 36 kB / 0.7247 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/0.7373, allocations: 143.8 kB / 0.7249 GB, free: 5.023 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004867/0.7378, allocations: 133 kB / 0.725 GB, free: 4.891 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000261/0.7381, allocations: 64.27 kB / 0.725 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003032/0.7411, allocations: 1.623 MB / 0.7266 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/0.7412, allocations: 0 / 0.7266 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004598/0.7458, allocations: 0.9061 MB / 0.7275 GB, free: 2.289 MB / 0.5762 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.297/1.043, allocations: 7.8 MB / 0.7351 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008803/1.052, allocations: 5.378 MB / 0.7404 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/1.052, allocations: 3.781 kB / 0.7404 GB, free: 174.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002672/1.054, allocations: 2.026 MB / 0.7424 GB, free: 173.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001901/1.056, allocations: 360 kB / 0.7427 GB, free: 173.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0473/1.104, allocations: 39.67 MB / 0.7814 GB, free: 138.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00323/1.107, allocations: 3.176 MB / 0.7845 GB, free: 135.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003563/1.11, allocations: 1.957 MB / 0.7865 GB, free: 133.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002182/1.113, allocations: 1.706 MB / 0.7881 GB, free: 131.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.163e-06/1.113, allocations: 0 / 0.7881 GB, free: 131.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08133/1.194, allocations: 54.43 MB / 0.8413 GB, free: 77.58 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.78/22.97, allocations: 4 kB / 0.8413 GB, free: 77.58 MB / 0.5762 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