Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 112.6 kB / 17.07 MB, free: 5.984 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.001681/0.00168, allocations: 193.4 kB / 18 MB, free: 5.074 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.469/1.469, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 43.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2824, allocations: 49.43 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01631/0.2987, allocations: 13.58 MB / 413.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01035/0.3091, allocations: 4.54 MB / 418.4 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002428/0.3116, allocations: 95.69 kB / 418.5 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008226/0.3199, allocations: 4.206 MB / 422.7 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005783/0.3257, allocations: 2.183 MB / 424.8 MB, free: 140 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002252/0.328, allocations: 0.9243 MB / 425.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009227/0.3372, allocations: 6.061 MB / 431.8 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006889/0.3441, allocations: 5.219 MB / 437 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003644/0.3478, allocations: 2.146 MB / 439.2 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004423/0.3522, allocations: 2.812 MB / 442 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00142/0.3537, allocations: 476 kB / 442.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003323/0.357, allocations: 1.354 MB / 443.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003047/0.3601, allocations: 2.541 MB / 446.4 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004241/0.3643, allocations: 2.945 MB / 449.3 MB, free: 7.555 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01208/0.3764, allocations: 9.344 MB / 458.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3765, allocations: 0 / 458.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3765, allocations: 4 kB / 458.7 MB, free: 14.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002784/0.3768, allocations: 4 kB / 458.7 MB, free: 14.17 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01569/0.3925, allocations: 6.483 MB / 465.1 MB, free: 7.605 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.65e-05/0.3925, allocations: 11.89 kB / 465.2 MB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001548/0.3941, allocations: 0.847 MB / 466 MB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03955/0.4337, allocations: 6.09 MB / 472.1 MB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01029/0.444, allocations: 4.447 MB / 476.5 MB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002881/0.4443, allocations: 300.2 kB / 476.8 MB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001416/0.4457, allocations: 439.6 kB / 477.3 MB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02154/0.4673, allocations: 11.61 MB / 488.9 MB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001544/0.4675, allocations: 55.59 kB / 488.9 MB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004992/0.468, allocations: 183.9 kB / 489.1 MB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003627/0.4716, allocations: 2.097 MB / 491.2 MB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02225/0.4939, allocations: 9.835 MB / 0.4893 GB, free: 2.879 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06337/0.5573, allocations: 45.27 MB / 0.5335 GB, free: 4.227 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2441/0.8015, allocations: 4.235 MB / 0.5376 GB, free: 128.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004064/0.8056, allocations: 2.347 MB / 0.5399 GB, free: 128.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01304/0.8186, allocations: 9.449 MB / 0.5492 GB, free: 123.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.689e-05/0.8187, allocations: 54.41 kB / 0.5492 GB, free: 123.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.188e-06/0.8187, allocations: 0 / 0.5492 GB, free: 123.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04266/0.8614, allocations: 18.52 MB / 0.5673 GB, free: 111.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/0.8615, allocations: 205.2 kB / 0.5675 GB, free: 111.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005135/0.8667, allocations: 4.73 MB / 0.5721 GB, free: 107 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002933/0.867, allocations: 57.53 kB / 0.5722 GB, free: 107 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001821/0.8688, allocations: 3.774 MB / 0.5758 GB, free: 103.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007136/0.8695, allocations: 0.7936 MB / 0.5766 GB, free: 102.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001332/0.8709, allocations: 1.274 MB / 0.5779 GB, free: 101.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.776e-05/0.8709, allocations: 307 kB / 0.5782 GB, free: 101.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002348/0.8733, allocations: 2.191 MB / 0.5803 GB, free: 98.97 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003553/0.8768, allocations: 6.024 MB / 0.5862 GB, free: 91.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006843/0.8837, allocations: 8.929 MB / 0.5949 GB, free: 80.27 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.232e-05/0.8838, allocations: 40 kB / 0.5949 GB, free: 80.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.01259/0.8964, allocations: 8.808 MB / 0.6035 GB, free: 71.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.022e-05/0.8965, allocations: 64.03 kB / 0.6036 GB, free: 71.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001089/0.8966, allocations: 140 kB / 0.6037 GB, free: 71.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00266/0.8993, allocations: 1.074 MB / 0.6048 GB, free: 70.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003788/0.9031, allocations: 1.427 MB / 0.6062 GB, free: 68.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008076/0.9112, allocations: 8.856 MB / 0.6148 GB, free: 59.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004594/0.9158, allocations: 335.6 kB / 0.6151 GB, free: 59.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005188/0.9163, allocations: 388 kB / 0.6155 GB, free: 58.87 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.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 (756): * Single equations (assignments): 751 * 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.003041/0.9194, allocations: 2.479 MB / 0.6179 GB, free: 56.38 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005924/0.92, allocations: 437.1 kB / 0.6183 GB, free: 55.95 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005182/0.9252, allocations: 3.491 MB / 0.6218 GB, free: 52.45 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.441e-05/0.9252, allocations: 20 kB / 0.6218 GB, free: 52.43 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.9252, allocations: 8 kB / 0.6218 GB, free: 52.42 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.681e-05/0.9252, allocations: 9.047 kB / 0.6218 GB, free: 52.41 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01202/0.9373, allocations: 8.999 MB / 0.6306 GB, free: 43.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.9373, allocations: 4 kB / 0.6306 GB, free: 43.37 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001303/0.9386, allocations: 299.5 kB / 0.6309 GB, free: 43.08 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002313/0.9409, allocations: 0.8523 MB / 0.6317 GB, free: 42.22 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000134/0.9411, allocations: 40 kB / 0.6317 GB, free: 42.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007196/0.9483, allocations: 7.896 MB / 0.6395 GB, free: 34.01 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.9483, allocations: 8.062 kB / 0.6395 GB, free: 34 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008075/0.9564, allocations: 6.087 MB / 0.6454 GB, free: 27.89 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009821/0.9574, allocations: 474.1 kB / 0.6459 GB, free: 27.41 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000414/0.9578, allocations: 35.98 kB / 0.6459 GB, free: 27.37 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/0.9592, allocations: 91.88 kB / 0.646 GB, free: 27.28 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003105/0.9595, allocations: 125.1 kB / 0.6461 GB, free: 27.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/0.9596, allocations: 55.88 kB / 0.6461 GB, free: 27.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003493/0.9631, allocations: 2.985 MB / 0.6491 GB, free: 24.12 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9632, allocations: 0 / 0.6491 GB, free: 24.12 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004336/0.9675, allocations: 1.153 MB / 0.6502 GB, free: 22.97 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.007466/0.975, allocations: 6.728 MB / 0.6568 GB, free: 16.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007034/0.982, allocations: 5.555 MB / 0.6622 GB, free: 10.65 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.9821, allocations: 0 / 0.6622 GB, free: 10.65 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002403/0.9845, allocations: 1.89 MB / 0.664 GB, free: 8.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003074/0.9876, allocations: 0.5762 MB / 0.6646 GB, free: 8.164 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08506/1.073, allocations: 51.37 MB / 0.7148 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007163/1.08, allocations: 3.872 MB / 0.7185 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007312/1.087, allocations: 1.989 MB / 0.7205 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005472/1.093, allocations: 2.366 MB / 0.7228 GB, free: 6.492 MB / 0.5137 GB Notification: Performance of SimCode: time 1.884e-06/1.093, allocations: 0 / 0.7228 GB, free: 6.492 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3542/1.447, allocations: 83.39 MB / 0.8042 GB, free: 115.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.55/28, allocations: 13.38 kB / 0.8042 GB, free: 115.4 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches