Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001407/0.001407, allocations: 122.2 kB / 17.78 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001611/0.001611, allocations: 197.2 kB / 18.72 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246.9 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 55.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2576, allocations: 50.54 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01404/0.2717, allocations: 13.45 MB / 422.2 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009132/0.2809, allocations: 4.548 MB / 426.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00248/0.2834, allocations: 87.75 kB / 426.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007858/0.2913, allocations: 4.186 MB / 431 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005803/0.2972, allocations: 2.175 MB / 433.2 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002281/0.2995, allocations: 0.936 MB / 434.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008433/0.3079, allocations: 6.123 MB / 440.2 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007358/0.3153, allocations: 5.204 MB / 445.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004381/0.3197, allocations: 2.119 MB / 447.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004845/0.3246, allocations: 2.8 MB / 450.4 MB, free: 7.758 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001671/0.3263, allocations: 472 kB / 450.8 MB, free: 7.297 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003857/0.3302, allocations: 1.338 MB / 452.2 MB, free: 5.957 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004031/0.3343, allocations: 2.51 MB / 454.7 MB, free: 3.441 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006027/0.3403, allocations: 2.906 MB / 457.6 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01296/0.3533, allocations: 9.192 MB / 466.8 MB, free: 7.289 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3534, allocations: 0 / 466.8 MB, free: 7.289 MB / 382.1 MB Notification: Performance of FrontEnd: time 7.304e-06/0.3534, allocations: 4 kB / 466.8 MB, free: 7.285 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003537/0.3537, allocations: 0 / 466.8 MB, free: 7.285 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: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01684/0.3706, allocations: 6.418 MB / 473.2 MB, free: 0.7852 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.3706, allocations: 12.03 kB / 473.2 MB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002227/0.3729, allocations: 0.8307 MB / 474 MB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0409/0.4138, allocations: 6.098 MB / 480.1 MB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01065/0.4245, allocations: 4.209 MB / 484.3 MB, free: 5.562 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003498/0.4249, allocations: 304.1 kB / 484.6 MB, free: 5.266 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001823/0.4267, allocations: 435.6 kB / 485.1 MB, free: 4.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02475/0.4515, allocations: 11.42 MB / 496.5 MB, free: 8.676 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002744/0.4518, allocations: 55.62 kB / 496.5 MB, free: 8.621 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00145/0.4533, allocations: 187.9 kB / 496.7 MB, free: 8.438 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003737/0.457, allocations: 2.034 MB / 498.8 MB, free: 6.391 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02086/0.4779, allocations: 9.674 MB / 0.4965 GB, free: 12.7 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2897/0.7677, allocations: 44.85 MB / 0.5403 GB, free: 113.1 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01083/0.7786, allocations: 4.239 MB / 0.5445 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002659/0.7813, allocations: 2.346 MB / 0.5467 GB, free: 112.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01461/0.7959, allocations: 9.441 MB / 0.556 GB, free: 108.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.796, allocations: 51.75 kB / 0.556 GB, free: 108 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 6.111e-06/0.796, allocations: 0 / 0.556 GB, free: 108 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04834/0.8444, allocations: 18.44 MB / 0.574 GB, free: 96.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.037e-05/0.8445, allocations: 197.2 kB / 0.5742 GB, free: 96.56 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007149/0.8516, allocations: 4.715 MB / 0.5788 GB, free: 91.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003825/0.8521, allocations: 57.53 kB / 0.5789 GB, free: 91.87 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002039/0.8541, allocations: 3.732 MB / 0.5825 GB, free: 88.41 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009251/0.855, allocations: 0.7982 MB / 0.5833 GB, free: 87.63 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002436/0.8575, allocations: 1.27 MB / 0.5845 GB, free: 86.35 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.836e-05/0.8576, allocations: 301.1 kB / 0.5848 GB, free: 86.05 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002972/0.8605, allocations: 2.181 MB / 0.587 GB, free: 83.87 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004527/0.8651, allocations: 6.004 MB / 0.5928 GB, free: 76.08 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00775/0.8729, allocations: 8.897 MB / 0.6015 GB, free: 65.39 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001251/0.873, allocations: 40 kB / 0.6015 GB, free: 65.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01322/0.8863, allocations: 8.789 MB / 0.6101 GB, free: 56.56 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.8864, allocations: 60 kB / 0.6102 GB, free: 56.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002048/0.8866, allocations: 136 kB / 0.6103 GB, free: 56.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002872/0.8895, allocations: 1.07 MB / 0.6114 GB, free: 55.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004026/0.8935, allocations: 1.431 MB / 0.6128 GB, free: 53.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008715/0.9023, allocations: 8.848 MB / 0.6214 GB, free: 44.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004633/0.9069, allocations: 343.5 kB / 0.6217 GB, free: 44.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008642/0.9078, allocations: 387.9 kB / 0.6221 GB, free: 44.02 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (753): * Single equations (assignments): 748 * Array equations: 3 * 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,33,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003612/0.9115, allocations: 2.453 MB / 0.6245 GB, free: 41.55 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009078/0.9124, allocations: 433.1 kB / 0.6249 GB, free: 41.13 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006157/0.9185, allocations: 3.491 MB / 0.6283 GB, free: 37.62 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.42e-05/0.9186, allocations: 24 kB / 0.6283 GB, free: 37.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.567e-05/0.9186, allocations: 8 kB / 0.6283 GB, free: 37.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.297e-05/0.9187, allocations: 13.8 kB / 0.6284 GB, free: 37.58 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01741/0.9361, allocations: 8.943 MB / 0.6371 GB, free: 28.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.422e-05/0.9361, allocations: 0 / 0.6371 GB, free: 28.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001438/0.9376, allocations: 299.5 kB / 0.6374 GB, free: 28.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002552/0.9402, allocations: 0.8585 MB / 0.6382 GB, free: 27.44 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002451/0.9404, allocations: 32 kB / 0.6382 GB, free: 27.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007824/0.9483, allocations: 7.927 MB / 0.646 GB, free: 19.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.9483, allocations: 3.938 kB / 0.646 GB, free: 19.21 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008299/0.9566, allocations: 6.069 MB / 0.6519 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/0.9579, allocations: 466.1 kB / 0.6524 GB, free: 12.63 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001216/0.9592, allocations: 35.98 kB / 0.6524 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002221/0.9614, allocations: 91.89 kB / 0.6525 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004524/0.9619, allocations: 125.1 kB / 0.6526 GB, free: 12.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001857/0.9621, allocations: 55.27 kB / 0.6526 GB, free: 12.33 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005134/0.9672, allocations: 2.981 MB / 0.6556 GB, free: 9.355 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.11e-07/0.9672, allocations: 0 / 0.6556 GB, free: 9.355 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005953/0.9732, allocations: 1.121 MB / 0.6567 GB, free: 8.234 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (147): * Single equations (assignments): 142 * Array equations: 3 * 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,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008805/0.982, allocations: 6.733 MB / 0.6632 GB, free: 1.465 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009137/0.9912, allocations: 5.538 MB / 0.6686 GB, free: 11.93 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.9912, allocations: 0 / 0.6686 GB, free: 11.93 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003193/0.9944, allocations: 1.89 MB / 0.6705 GB, free: 10.02 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004301/0.9987, allocations: 0.5695 MB / 0.671 GB, free: 9.453 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08932/1.088, allocations: 51.14 MB / 0.721 GB, free: 292 kB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006468/1.095, allocations: 3.823 MB / 0.7247 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004954/1.1, allocations: 1.988 MB / 0.7267 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003681/1.103, allocations: 2.327 MB / 0.7289 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of SimCode: time 7.31e-07/1.103, allocations: 0 / 0.7289 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3456/1.449, allocations: 82.99 MB / 0.81 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.8/27.25, allocations: 7.969 kB / 0.81 GB, free: 128.4 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches