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.001324/0.001324, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001315/0.001315, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.139/2.139, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 49.02 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1772, allocations: 49.45 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01922/0.1965, allocations: 13.57 MB / 363.7 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01381/0.2104, allocations: 4.552 MB / 368.3 MB, free: 2.117 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004758/0.2152, allocations: 91.69 kB / 368.4 MB, free: 2.027 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3112/0.5265, allocations: 4.195 MB / 372.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00741/0.534, allocations: 2.183 MB / 374.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00274/0.5368, allocations: 0.9267 MB / 375.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01288/0.5497, allocations: 6.063 MB / 381.7 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01377/0.5635, allocations: 5.229 MB / 387 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007319/0.5709, allocations: 2.135 MB / 389.1 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007882/0.5788, allocations: 2.815 MB / 391.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003084/0.5819, allocations: 480.4 kB / 392.4 MB, free: 4.938 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006037/0.588, allocations: 1.356 MB / 393.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005485/0.5935, allocations: 2.537 MB / 396.3 MB, free: 3.035 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008401/0.602, allocations: 2.944 MB / 399.2 MB, free: 224 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0232/0.6252, allocations: 9.074 MB / 408.3 MB, free: 7.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.282e-05/0.6253, allocations: 0.5625 kB / 408.3 MB, free: 7.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.6254, allocations: 0 / 408.3 MB, free: 7.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005086/0.6259, allocations: 0 / 408.3 MB, free: 7.34 MB / 318.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.02646/0.6524, allocations: 6.316 MB / 414.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.197e-05/0.6525, allocations: 12.03 kB / 414.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003777/0.6563, allocations: 0.8475 MB / 415.5 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04482/0.7011, allocations: 6.054 MB / 421.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.017/0.7182, allocations: 4.366 MB / 425.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006004/0.7188, allocations: 305.2 kB / 426.2 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00337/0.7222, allocations: 429.8 kB / 426.6 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04626/0.7685, allocations: 11.61 MB / 438.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006143/0.7693, allocations: 51.59 kB / 438.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002902/0.7722, allocations: 185.4 kB / 438.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006372/0.7786, allocations: 2.094 MB / 440.6 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03373/0.8124, allocations: 9.83 MB / 450.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1049/0.9174, allocations: 45.4 MB / 495.8 MB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02048/0.938, allocations: 4.253 MB / 0.4883 GB, free: 9.848 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004058/0.9421, allocations: 2.342 MB / 0.4906 GB, free: 7.496 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02411/0.9662, allocations: 9.434 MB / 0.4998 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.932e-05/0.9664, allocations: 47.56 kB / 0.4999 GB, free: 13.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=171): time 9.217e-06/0.9664, allocations: 0 / 0.4999 GB, free: 13.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.08436/1.051, allocations: 18.23 MB / 0.5177 GB, free: 11.58 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002448/1.051, allocations: 201.2 kB / 0.5179 GB, free: 11.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01702/1.068, allocations: 4.713 MB / 0.5225 GB, free: 6.621 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007793/1.069, allocations: 56.28 kB / 0.5225 GB, free: 6.562 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005733/1.075, allocations: 3.645 MB / 0.5261 GB, free: 2.914 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002016/1.077, allocations: 0.7523 MB / 0.5268 GB, free: 2.168 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005492/1.082, allocations: 1.268 MB / 0.528 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/1.083, allocations: 305.1 kB / 0.5283 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2993/1.382, allocations: 2.184 MB / 0.5305 GB, free: 146 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01109/1.393, allocations: 6.031 MB / 0.5364 GB, free: 140.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01232/1.406, allocations: 8.921 MB / 0.5451 GB, free: 133.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002178/1.406, allocations: 39.12 kB / 0.5451 GB, free: 133.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.02631/1.432, allocations: 8.79 MB / 0.5537 GB, free: 130.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004268/1.433, allocations: 62.97 kB / 0.5537 GB, free: 130.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005479/1.433, allocations: 133.3 kB / 0.5539 GB, free: 130.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005098/1.438, allocations: 1.076 MB / 0.5549 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007895/1.446, allocations: 1.427 MB / 0.5563 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01618/1.462, allocations: 8.853 MB / 0.565 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008924/1.471, allocations: 340.5 kB / 0.5653 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001556/1.473, allocations: 392.7 kB / 0.5657 GB, free: 124.2 MB / 446.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.007224/1.48, allocations: 2.478 MB / 0.5681 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00156/1.482, allocations: 418.2 kB / 0.5685 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01186/1.494, allocations: 3.497 MB / 0.5719 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.831e-05/1.494, allocations: 20 kB / 0.5719 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.486e-05/1.494, allocations: 8 kB / 0.5719 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.851e-05/1.494, allocations: 9.234 kB / 0.5719 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02709/1.521, allocations: 9.049 MB / 0.5808 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-05/1.521, allocations: 4 kB / 0.5808 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002627/1.524, allocations: 291.6 kB / 0.5811 GB, free: 112.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004795/1.529, allocations: 0.8605 MB / 0.5819 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005355/1.529, allocations: 31.98 kB / 0.5819 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01467/1.544, allocations: 7.918 MB / 0.5897 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.106e-05/1.544, allocations: 8 kB / 0.5897 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01555/1.56, allocations: 6.054 MB / 0.5956 GB, free: 97.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001999/1.562, allocations: 459.6 kB / 0.596 GB, free: 97.33 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00171/1.563, allocations: 32 kB / 0.596 GB, free: 97.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003482/1.567, allocations: 91.88 kB / 0.5961 GB, free: 97.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006402/1.568, allocations: 125.1 kB / 0.5963 GB, free: 97.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002761/1.568, allocations: 51.52 kB / 0.5963 GB, free: 97.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007016/1.575, allocations: 2.989 MB / 0.5992 GB, free: 94.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.575, allocations: 0 / 0.5992 GB, free: 94.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01156/1.587, allocations: 1.143 MB / 0.6003 GB, free: 92.91 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.01618/1.603, allocations: 6.725 MB / 0.6069 GB, free: 86.15 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01811/1.621, allocations: 6.582 MB / 0.6133 GB, free: 79.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/1.621, allocations: 4 kB / 0.6133 GB, free: 79.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00517/1.626, allocations: 1.882 MB / 0.6152 GB, free: 77.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006367/1.633, allocations: 0.5863 MB / 0.6157 GB, free: 77.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1343/1.767, allocations: 59.72 MB / 0.6741 GB, free: 8.906 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01072/1.778, allocations: 3.868 MB / 0.6778 GB, free: 5.004 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.01139/1.789, allocations: 1.989 MB / 0.6798 GB, free: 3.008 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006598/1.796, allocations: 2.358 MB / 0.6821 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of SimCode: time 1.944e-06/1.796, allocations: 0 / 0.6821 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5649/2.361, allocations: 87.03 MB / 0.7671 GB, free: 103.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.92/22.28, allocations: 14 kB / 0.7671 GB, free: 103.7 MB / 462.1 MB (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