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.001699/0.001699, allocations: 115.7 kB / 17.78 MB, free: 5.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002205/0.002205, allocations: 201.2 kB / 18.73 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2309/0.2309, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 75.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3937/0.3952, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.02185/0.4171, allocations: 18.57 MB / 0.5487 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01462/0.4318, allocations: 5.323 MB / 0.5539 GB, free: 9.828 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004971/0.4368, allocations: 119.7 kB / 0.554 GB, free: 9.711 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009403/0.4463, allocations: 4.762 MB / 0.5586 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008619/0.4549, allocations: 3.128 MB / 0.5617 GB, free: 1.793 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002674/0.4576, allocations: 0.9126 MB / 0.5626 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01266/0.4703, allocations: 8.423 MB / 0.5708 GB, free: 8.438 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01074/0.4811, allocations: 6.408 MB / 0.5771 GB, free: 1.957 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006592/0.4877, allocations: 2.92 MB / 0.5799 GB, free: 15.03 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006414/0.4942, allocations: 3.96 MB / 0.5838 GB, free: 11.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002499/0.4967, allocations: 0.6211 MB / 0.5844 GB, free: 10.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004274/0.501, allocations: 1.448 MB / 0.5858 GB, free: 8.984 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005159/0.5062, allocations: 3.643 MB / 0.5894 GB, free: 5.332 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007562/0.5138, allocations: 4.279 MB / 0.5935 GB, free: 1.027 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01938/0.5332, allocations: 13.63 MB / 0.6068 GB, free: 3.332 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.5333, allocations: 0 / 0.6068 GB, free: 3.332 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5333, allocations: 0 / 0.6068 GB, free: 3.332 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005342/0.5338, allocations: 0 / 0.6068 GB, free: 3.332 MB / 462.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.0259/0.5597, allocations: 9.162 MB / 0.6158 GB, free: 10.07 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/0.5598, allocations: 8.031 kB / 0.6158 GB, free: 10.06 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0045/0.5643, allocations: 1.39 MB / 0.6172 GB, free: 8.656 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04429/0.6086, allocations: 8.969 MB / 0.6259 GB, free: 15.67 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01256/0.6212, allocations: 5.33 MB / 0.6311 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004799/0.6217, allocations: 439.5 kB / 0.6315 GB, free: 9.824 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002645/0.6244, allocations: 0.5777 MB / 0.6321 GB, free: 9.246 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03859/0.663, allocations: 19.7 MB / 0.6513 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003814/0.6634, allocations: 71.41 kB / 0.6514 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002602/0.666, allocations: 275.7 kB / 0.6517 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006832/0.6729, allocations: 4.169 MB / 0.6557 GB, free: 15.99 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0373/0.7102, allocations: 17.39 MB / 0.6727 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3932/1.103, allocations: 72.74 MB / 0.7438 GB, free: 116.9 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01564/1.119, allocations: 7.809 MB / 0.7514 GB, free: 115.1 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006328/1.126, allocations: 5.057 MB / 0.7563 GB, free: 113 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002845/1.126, allocations: 62.5 kB / 0.7564 GB, free: 113 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.078e-05/1.126, allocations: 72.69 kB / 0.7565 GB, free: 112.9 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=429): time 9.468e-06/1.126, allocations: 2 kB / 0.7565 GB, free: 112.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=476): time 0.09237/1.218, allocations: 40.67 MB / 0.7962 GB, free: 83.95 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.312e-05/1.218, allocations: 226.8 kB / 0.7964 GB, free: 83.68 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009533/1.228, allocations: 6.407 MB / 0.8027 GB, free: 77.27 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001118/1.229, allocations: 93.7 kB / 0.8027 GB, free: 77.18 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002858/1.232, allocations: 5.752 MB / 0.8084 GB, free: 71.45 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002006/1.234, allocations: 1.809 MB / 0.8101 GB, free: 69.66 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00291/1.237, allocations: 2.187 MB / 0.8123 GB, free: 67.47 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.652e-05/1.237, allocations: 309.1 kB / 0.8126 GB, free: 67.17 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005816/1.243, allocations: 4.808 MB / 0.8173 GB, free: 62.36 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009548/1.252, allocations: 10.83 MB / 0.8278 GB, free: 48.68 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01636/1.269, allocations: 17.04 MB / 0.8445 GB, free: 28.73 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001581/1.269, allocations: 60 kB / 0.8445 GB, free: 28.67 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1443) (initialization): time 0.02705/1.296, allocations: 16.9 MB / 0.861 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001527/1.296, allocations: 99.98 kB / 0.8611 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002505/1.297, allocations: 215.4 kB / 0.8613 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004447/1.301, allocations: 1.823 MB / 0.8631 GB, free: 9.602 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007743/1.309, allocations: 2.499 MB / 0.8656 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01749/1.326, allocations: 15.86 MB / 0.881 GB, free: 6.703 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01054/1.337, allocations: 0.6352 MB / 0.8817 GB, free: 6.07 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002294/1.339, allocations: 0.6093 MB / 0.8823 GB, free: 5.461 MB / 0.5763 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.008839/1.348, allocations: 4.072 MB / 0.8862 GB, free: 1.379 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001674/1.35, allocations: 0.6363 MB / 0.8869 GB, free: 0.7383 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01664/1.366, allocations: 9.506 MB / 0.8961 GB, free: 7.406 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001393/1.367, allocations: 83.98 kB / 0.8962 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.857e-05/1.367, allocations: 12 kB / 0.8962 GB, free: 7.312 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.304e-05/1.367, allocations: 27.84 kB / 0.8963 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04166/1.408, allocations: 21.11 MB / 0.9169 GB, free: 1.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.78e-05/1.408, allocations: 12 kB / 0.9169 GB, free: 1.902 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003944/1.412, allocations: 0.7373 MB / 0.9176 GB, free: 1.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004866/1.417, allocations: 1.5 MB / 0.9191 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001137/1.418, allocations: 87.98 kB / 0.9192 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01707/1.436, allocations: 14.82 MB / 0.9336 GB, free: 192 kB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.4e-05/1.436, allocations: 15.94 kB / 0.9336 GB, free: 176 kB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02568/1.461, allocations: 15.22 MB / 0.9485 GB, free: 0.7109 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001876/1.463, allocations: 0.6492 MB / 0.9491 GB, free: 40 kB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002142/1.465, allocations: 88.05 kB / 0.9492 GB, free: 15.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004128/1.47, allocations: 291.6 kB / 0.9495 GB, free: 15.66 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001303/1.471, allocations: 293.8 kB / 0.9498 GB, free: 15.38 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007952/1.472, allocations: 131.9 kB / 0.9499 GB, free: 15.25 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.008183/1.48, allocations: 3.992 MB / 0.9538 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of sort global known variables: time 4.71e-07/1.48, allocations: 0 / 0.9538 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01318/1.493, allocations: 1.945 MB / 0.9557 GB, free: 9.32 MB / 0.6544 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.3507/1.844, allocations: 15.93 MB / 0.9713 GB, free: 229.1 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.01853/1.862, allocations: 11.91 MB / 0.9829 GB, free: 224.8 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-05/1.862, allocations: 7.844 kB / 0.9829 GB, free: 224.8 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.006157/1.869, allocations: 4.789 MB / 0.9876 GB, free: 222.8 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005448/1.874, allocations: 0.8163 MB / 0.9884 GB, free: 222.4 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1425/2.017, allocations: 93.78 MB / 1.08 GB, free: 132.8 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01153/2.028, allocations: 5.926 MB / 1.086 GB, free: 126.8 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.009467/2.038, allocations: 4 MB / 1.09 GB, free: 122.8 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006242/2.044, allocations: 3.912 MB / 1.093 GB, free: 118.9 MB / 0.6544 GB Notification: Performance of SimCode: time 1.363e-06/2.044, allocations: 7.938 kB / 1.093 GB, free: 118.9 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4408/2.485, allocations: 131 MB / 1.221 GB, free: 222.7 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 47.92/50.41, allocations: 4.797 kB / 1.221 GB, free: 222.7 MB / 0.6544 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