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.001507/0.001513, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001715/0.001715, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002058/0.002058, allocations: 59.34 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1549, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.02578/0.1807, allocations: 13.45 MB / 371 MB, free: 488 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2415/0.4223, allocations: 4.541 MB / 375.6 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002572/0.4249, allocations: 92.92 kB / 375.7 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007474/0.4324, allocations: 4.187 MB / 379.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006151/0.4386, allocations: 2.12 MB / 382 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002342/0.441, allocations: 0.9384 MB / 382.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009874/0.4509, allocations: 6.115 MB / 389 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008107/0.459, allocations: 5.208 MB / 394.2 MB, free: 2.336 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003829/0.4629, allocations: 2.115 MB / 396.3 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003634/0.4666, allocations: 2.791 MB / 399.1 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001074/0.4677, allocations: 474.7 kB / 399.6 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002824/0.4705, allocations: 1.344 MB / 400.9 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002552/0.4731, allocations: 2.488 MB / 403.4 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003882/0.477, allocations: 2.91 MB / 406.3 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01195/0.4889, allocations: 8.923 MB / 415.3 MB, free: 292 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.054e-05/0.489, allocations: 0 / 415.3 MB, free: 292 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.489, allocations: 0 / 415.3 MB, free: 292 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003434/0.4894, allocations: 4 kB / 415.3 MB, free: 288 kB / 318.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.01995/0.5093, allocations: 6.255 MB / 421.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.224e-05/0.5094, allocations: 12.03 kB / 421.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002989/0.5124, allocations: 0.8316 MB / 422.4 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04067/0.5531, allocations: 6.057 MB / 428.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/0.5647, allocations: 4.127 MB / 432.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003767/0.5651, allocations: 304.8 kB / 432.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002/0.5671, allocations: 427.8 kB / 433.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02507/0.5922, allocations: 11.42 MB / 444.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002916/0.5926, allocations: 59.42 kB / 444.7 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001438/0.594, allocations: 186.8 kB / 444.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003584/0.5976, allocations: 2.022 MB / 446.9 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02102/0.6187, allocations: 9.683 MB / 456.6 MB, free: 6.406 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06514/0.6839, allocations: 44.96 MB / 0.4898 GB, free: 8.309 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01155/0.6955, allocations: 4.247 MB / 0.494 GB, free: 3.922 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003348/0.6989, allocations: 2.35 MB / 0.4963 GB, free: 1.559 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01734/0.7162, allocations: 9.434 MB / 0.5055 GB, free: 8.012 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.948e-05/0.7163, allocations: 51.5 kB / 0.5055 GB, free: 7.949 MB / 430.1 MB Notification: Performance of pre-optimization done (n=171): time 5.38e-06/0.7163, allocations: 0 / 0.5055 GB, free: 7.949 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.05408/0.7704, allocations: 18.17 MB / 0.5233 GB, free: 5.691 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.7706, allocations: 197.2 kB / 0.5235 GB, free: 5.457 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00786/0.7785, allocations: 4.701 MB / 0.5281 GB, free: 0.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000378/0.7789, allocations: 51.89 kB / 0.5281 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2108/0.9897, allocations: 3.605 MB / 0.5316 GB, free: 140.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001321/0.9911, allocations: 0.757 MB / 0.5324 GB, free: 140.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002514/0.9936, allocations: 1.257 MB / 0.5336 GB, free: 140.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.331e-05/0.9937, allocations: 313.9 kB / 0.5339 GB, free: 139.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003701/0.9974, allocations: 2.179 MB / 0.536 GB, free: 139.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005714/1.003, allocations: 6.014 MB / 0.5419 GB, free: 133.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009994/1.013, allocations: 8.899 MB / 0.5506 GB, free: 125.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001625/1.013, allocations: 38.84 kB / 0.5506 GB, free: 125.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01607/1.029, allocations: 8.758 MB / 0.5592 GB, free: 122.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001401/1.03, allocations: 62.31 kB / 0.5592 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000213/1.03, allocations: 138.8 kB / 0.5594 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002954/1.033, allocations: 1.08 MB / 0.5604 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004198/1.037, allocations: 1.412 MB / 0.5618 GB, free: 122.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008694/1.046, allocations: 8.851 MB / 0.5704 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004938/1.051, allocations: 344.7 kB / 0.5708 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009731/1.052, allocations: 384.2 kB / 0.5711 GB, free: 116.5 MB / 446.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.003619/1.055, allocations: 2.45 MB / 0.5735 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006918/1.056, allocations: 418.5 kB / 0.5739 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005451/1.062, allocations: 3.5 MB / 0.5773 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.339e-05/1.062, allocations: 24 kB / 0.5774 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/1.062, allocations: 4.875 kB / 0.5774 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.073e-05/1.062, allocations: 14.64 kB / 0.5774 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01366/1.075, allocations: 8.986 MB / 0.5862 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/1.075, allocations: 0 / 0.5862 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/1.077, allocations: 299.5 kB / 0.5864 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002429/1.079, allocations: 0.8555 MB / 0.5873 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001901/1.079, allocations: 28 kB / 0.5873 GB, free: 101.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007291/1.087, allocations: 7.921 MB / 0.595 GB, free: 93.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/1.087, allocations: 0 / 0.595 GB, free: 93.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008441/1.095, allocations: 6.053 MB / 0.601 GB, free: 87.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001669/1.097, allocations: 451.6 kB / 0.6014 GB, free: 87.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001034/1.098, allocations: 35.98 kB / 0.6014 GB, free: 87.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/1.1, allocations: 91.89 kB / 0.6015 GB, free: 86.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003483/1.1, allocations: 122.1 kB / 0.6016 GB, free: 86.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001227/1.1, allocations: 59.75 kB / 0.6017 GB, free: 86.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004246/1.104, allocations: 2.977 MB / 0.6046 GB, free: 83.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.51e-07/1.104, allocations: 0 / 0.6046 GB, free: 83.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005664/1.11, allocations: 1.122 MB / 0.6057 GB, free: 82.7 MB / 446.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.007966/1.118, allocations: 6.713 MB / 0.6122 GB, free: 75.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01022/1.128, allocations: 6.574 MB / 0.6187 GB, free: 69.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.807e-06/1.128, allocations: 0 / 0.6187 GB, free: 69.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002681/1.131, allocations: 1.886 MB / 0.6205 GB, free: 67.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003402/1.134, allocations: 0.5866 MB / 0.6211 GB, free: 66.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07822/1.213, allocations: 59.44 MB / 0.6791 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005813/1.219, allocations: 3.818 MB / 0.6829 GB, free: 11.17 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005711/1.224, allocations: 1.988 MB / 0.6848 GB, free: 9.172 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003521/1.228, allocations: 2.327 MB / 0.6871 GB, free: 6.844 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/1.228, allocations: 3.938 kB / 0.6871 GB, free: 6.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3225/1.55, allocations: 86.59 MB / 0.7716 GB, free: 91.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/13.18, allocations: 5.781 kB / 0.7716 GB, free: 91.38 MB / 462.1 MB (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