Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.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) 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.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_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.001302/0.001302, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2384/0.2384, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 81.48 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.148, allocations: 62.45 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.01865/0.1667, allocations: 18.57 MB / 498.7 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01515/0.1819, allocations: 5.315 MB / 0.4922 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005144/0.1871, allocations: 123.7 kB / 0.4923 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0103/0.1976, allocations: 4.758 MB / 0.497 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009446/0.2071, allocations: 3.046 MB / 0.4999 GB, free: 5.262 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00292/0.21, allocations: 0.9008 MB / 0.5008 GB, free: 4.359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3054/0.5155, allocations: 8.409 MB / 0.509 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.014/0.5295, allocations: 6.416 MB / 0.5153 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008357/0.538, allocations: 2.925 MB / 0.5182 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009239/0.5472, allocations: 3.949 MB / 0.522 GB, free: 11.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003847/0.5511, allocations: 0.6191 MB / 0.5226 GB, free: 11.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006615/0.5578, allocations: 1.445 MB / 0.524 GB, free: 11.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007292/0.5651, allocations: 3.62 MB / 0.5276 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01071/0.5759, allocations: 4.279 MB / 0.5317 GB, free: 7.262 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01688/0.5928, allocations: 13.09 MB / 0.5445 GB, free: 15.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.328e-05/0.5929, allocations: 11.25 kB / 0.5445 GB, free: 15.78 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5929, allocations: 0 / 0.5445 GB, free: 15.78 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005675/0.5935, allocations: 0 / 0.5445 GB, free: 15.78 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2997 * Number of variables: 2997 Notification: Performance of Generate backend data structure: time 0.02896/0.6225, allocations: 8.918 MB / 0.5532 GB, free: 7.184 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.383e-05/0.6226, allocations: 12.03 kB / 0.5533 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004309/0.6269, allocations: 1.386 MB / 0.5546 GB, free: 5.848 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04925/0.6761, allocations: 8.91 MB / 0.5633 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01361/0.6898, allocations: 5.242 MB / 0.5684 GB, free: 7.926 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005248/0.6904, allocations: 442.1 kB / 0.5688 GB, free: 7.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002627/0.693, allocations: 0.5698 MB / 0.5694 GB, free: 7.074 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0451/0.7381, allocations: 19.72 MB / 0.5887 GB, free: 2.672 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004223/0.7386, allocations: 70.75 kB / 0.5887 GB, free: 2.633 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00265/0.7413, allocations: 281.8 kB / 0.589 GB, free: 2.434 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007864/0.7492, allocations: 4.165 MB / 0.5931 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03688/0.7861, allocations: 17.39 MB / 0.61 GB, free: 13.19 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1169/0.9031, allocations: 72.99 MB / 0.6813 GB, free: 3.156 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01737/0.9205, allocations: 7.8 MB / 0.6889 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007962/0.9285, allocations: 5.057 MB / 0.6939 GB, free: 6.047 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003988/0.9289, allocations: 62.16 kB / 0.6939 GB, free: 6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.087e-05/0.929, allocations: 77.08 kB / 0.694 GB, free: 5.914 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 8.717e-06/0.9291, allocations: 0 / 0.694 GB, free: 5.914 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.3781/1.307, allocations: 40.22 MB / 0.7333 GB, free: 177.5 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001885/1.307, allocations: 234.5 kB / 0.7335 GB, free: 177.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01219/1.32, allocations: 6.394 MB / 0.7398 GB, free: 175 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001081/1.321, allocations: 89.39 kB / 0.7398 GB, free: 175 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003549/1.324, allocations: 5.527 MB / 0.7452 GB, free: 170.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002343/1.327, allocations: 1.739 MB / 0.7469 GB, free: 169.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004156/1.331, allocations: 2.166 MB / 0.7491 GB, free: 168.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.848e-05/1.331, allocations: 310.1 kB / 0.7494 GB, free: 168.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007179/1.338, allocations: 4.81 MB / 0.754 GB, free: 166.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01199/1.35, allocations: 10.84 MB / 0.7646 GB, free: 156.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01793/1.368, allocations: 17.04 MB / 0.7813 GB, free: 144 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002203/1.368, allocations: 60.41 kB / 0.7813 GB, free: 144 MB / 0.545 GB Notification: Performance of matching and sorting (n=1443) (initialization): time 0.02809/1.397, allocations: 16.85 MB / 0.7978 GB, free: 129.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000142/1.397, allocations: 96.97 kB / 0.7979 GB, free: 129.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002813/1.397, allocations: 211.9 kB / 0.7981 GB, free: 129 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004449/1.401, allocations: 1.831 MB / 0.7999 GB, free: 127.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008614/1.41, allocations: 2.506 MB / 0.8023 GB, free: 125.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01512/1.425, allocations: 15.85 MB / 0.8178 GB, free: 108.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00904/1.434, allocations: 0.6353 MB / 0.8184 GB, free: 108.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002132/1.436, allocations: 0.6132 MB / 0.819 GB, free: 107.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 955 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1319): * Single equations (assignments): 1306 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,42,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009107/1.446, allocations: 4.077 MB / 0.823 GB, free: 103.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001742/1.447, allocations: 0.6015 MB / 0.8236 GB, free: 102.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01377/1.461, allocations: 9.455 MB / 0.8328 GB, free: 93.36 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001083/1.461, allocations: 88.09 kB / 0.8329 GB, free: 93.28 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.576e-05/1.461, allocations: 12 kB / 0.8329 GB, free: 93.27 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.587e-05/1.461, allocations: 27.52 kB / 0.8329 GB, free: 93.25 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03687/1.498, allocations: 21.2 MB / 0.8537 GB, free: 71.87 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.847e-05/1.498, allocations: 8 kB / 0.8537 GB, free: 71.86 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003421/1.502, allocations: 0.7449 MB / 0.8544 GB, free: 71.12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003887/1.506, allocations: 1.509 MB / 0.8559 GB, free: 69.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006582/1.506, allocations: 83.98 kB / 0.8559 GB, free: 69.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.013/1.519, allocations: 14.81 MB / 0.8704 GB, free: 54.16 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/1.519, allocations: 19.88 kB / 0.8704 GB, free: 54.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01944/1.539, allocations: 15.18 MB / 0.8852 GB, free: 38.72 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001925/1.541, allocations: 0.6143 MB / 0.8858 GB, free: 38.08 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001511/1.542, allocations: 85.55 kB / 0.8859 GB, free: 38 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003345/1.546, allocations: 293.5 kB / 0.8862 GB, free: 37.71 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008509/1.547, allocations: 289.8 kB / 0.8865 GB, free: 37.43 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002853/1.547, allocations: 121.7 kB / 0.8866 GB, free: 37.31 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00631/1.553, allocations: 3.992 MB / 0.8905 GB, free: 33.33 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.21e-07/1.553, allocations: 0 / 0.8905 GB, free: 33.33 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01165/1.565, allocations: 1.95 MB / 0.8924 GB, free: 31.39 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (359): * Single equations (assignments): 346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,39,100.0%), (1,2,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02061/1.586, allocations: 15.92 MB / 0.9079 GB, free: 15.23 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.3269/1.912, allocations: 21.49 MB / 0.9289 GB, free: 180.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.331e-05/1.913, allocations: 1.906 kB / 0.9289 GB, free: 180.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01159/1.924, allocations: 4.795 MB / 0.9336 GB, free: 178.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009128/1.933, allocations: 0.8085 MB / 0.9344 GB, free: 177.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1847/2.118, allocations: 111.4 MB / 1.043 GB, free: 68.64 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01106/2.129, allocations: 5.915 MB / 1.049 GB, free: 62.68 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009699/2.139, allocations: 4.003 MB / 1.053 GB, free: 58.67 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006378/2.145, allocations: 3.916 MB / 1.057 GB, free: 54.75 MB / 0.545 GB Notification: Performance of SimCode: time 1.223e-06/2.145, allocations: 0 / 1.057 GB, free: 54.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4342/2.58, allocations: 136.8 MB / 1.19 GB, free: 153 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/15.89, allocations: 14.12 kB / 1.19 GB, free: 153 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches