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.001027/0.001027, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001142/0.001142, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2271/0.2271, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3432, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.01939/0.3626, allocations: 18.58 MB / 0.5487 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01418/0.3769, allocations: 5.312 MB / 0.5539 GB, free: 9.816 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005948/0.3829, allocations: 119.7 kB / 0.554 GB, free: 9.699 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01015/0.3931, allocations: 4.766 MB / 0.5586 GB, free: 4.918 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009071/0.4022, allocations: 3.125 MB / 0.5617 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002673/0.4049, allocations: 0.9165 MB / 0.5626 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01188/0.4168, allocations: 8.424 MB / 0.5708 GB, free: 8.426 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009068/0.4259, allocations: 6.41 MB / 0.5771 GB, free: 1.941 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005426/0.4314, allocations: 2.932 MB / 0.5799 GB, free: 15 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006367/0.4378, allocations: 3.949 MB / 0.5838 GB, free: 11.04 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002387/0.4402, allocations: 0.6172 MB / 0.5844 GB, free: 10.42 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004112/0.4443, allocations: 1.448 MB / 0.5858 GB, free: 8.973 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005238/0.4496, allocations: 3.655 MB / 0.5894 GB, free: 5.309 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007969/0.4576, allocations: 4.279 MB / 0.5935 GB, free: 1.004 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01763/0.4753, allocations: 13.63 MB / 0.6069 GB, free: 3.312 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.4753, allocations: 0 / 0.6069 GB, free: 3.312 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4753, allocations: 0 / 0.6069 GB, free: 3.312 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005725/0.4759, allocations: 0 / 0.6069 GB, free: 3.312 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.0268/0.5027, allocations: 9.154 MB / 0.6158 GB, free: 10.05 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.609e-05/0.5028, allocations: 12.03 kB / 0.6158 GB, free: 10.04 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004294/0.5071, allocations: 1.394 MB / 0.6172 GB, free: 8.637 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04847/0.5556, allocations: 8.962 MB / 0.6259 GB, free: 15.66 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01372/0.5694, allocations: 5.331 MB / 0.6311 GB, free: 10.24 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003943/0.5698, allocations: 435.5 kB / 0.6315 GB, free: 9.816 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002755/0.5726, allocations: 0.5816 MB / 0.6321 GB, free: 9.234 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0355/0.6081, allocations: 19.71 MB / 0.6514 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002451/0.6084, allocations: 67.41 kB / 0.6514 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00143/0.6098, allocations: 275.7 kB / 0.6517 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006785/0.6166, allocations: 4.172 MB / 0.6558 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03294/0.6496, allocations: 17.39 MB / 0.6727 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.658/1.308, allocations: 72.75 MB / 0.7438 GB, free: 115 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01621/1.324, allocations: 7.802 MB / 0.7514 GB, free: 113.1 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005801/1.33, allocations: 5.055 MB / 0.7563 GB, free: 111 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000324/1.33, allocations: 67.14 kB / 0.7564 GB, free: 111 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.325e-05/1.33, allocations: 73.41 kB / 0.7565 GB, free: 110.9 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=429): time 9.959e-06/1.33, allocations: 0 / 0.7565 GB, free: 110.9 MB / 0.5607 GB Notification: Performance of matching and sorting (n=476): time 0.09203/1.422, allocations: 40.67 MB / 0.7962 GB, free: 82.09 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.122e-05/1.422, allocations: 218.8 kB / 0.7964 GB, free: 81.83 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007235/1.429, allocations: 6.414 MB / 0.8027 GB, free: 75.54 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0008179/1.43, allocations: 85.7 kB / 0.8027 GB, free: 75.45 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002418/1.433, allocations: 5.755 MB / 0.8084 GB, free: 70.24 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001614/1.434, allocations: 1.811 MB / 0.8101 GB, free: 68.45 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002399/1.437, allocations: 2.194 MB / 0.8123 GB, free: 66.25 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.874e-05/1.437, allocations: 305.1 kB / 0.8126 GB, free: 65.95 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005253/1.442, allocations: 4.808 MB / 0.8173 GB, free: 61.14 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007539/1.45, allocations: 10.84 MB / 0.8278 GB, free: 47.46 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01615/1.466, allocations: 17.04 MB / 0.8445 GB, free: 27.52 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001505/1.466, allocations: 60 kB / 0.8445 GB, free: 27.46 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1443) (initialization): time 0.02548/1.492, allocations: 16.9 MB / 0.861 GB, free: 10.52 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001647/1.492, allocations: 96 kB / 0.8611 GB, free: 10.43 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002694/1.492, allocations: 211.9 kB / 0.8613 GB, free: 10.22 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004171/1.496, allocations: 1.82 MB / 0.8631 GB, free: 8.391 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007933/1.504, allocations: 2.499 MB / 0.8656 GB, free: 5.887 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01622/1.52, allocations: 15.86 MB / 0.881 GB, free: 5.496 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008126/1.529, allocations: 0.6361 MB / 0.8817 GB, free: 4.859 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002223/1.531, allocations: 0.613 MB / 0.8823 GB, free: 4.25 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.01055/1.541, allocations: 4.075 MB / 0.8862 GB, free: 168 kB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003252/1.545, allocations: 0.6402 MB / 0.8869 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02079/1.565, allocations: 9.451 MB / 0.8961 GB, free: 6.008 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001474/1.566, allocations: 91.97 kB / 0.8962 GB, free: 5.918 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.113e-05/1.566, allocations: 8 kB / 0.8962 GB, free: 5.91 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.927e-05/1.566, allocations: 27.86 kB / 0.8962 GB, free: 5.883 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04957/1.615, allocations: 21.11 MB / 0.9168 GB, free: 0.625 MB / 0.6076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.423e-05/1.615, allocations: 16 kB / 0.9168 GB, free: 0.6094 MB / 0.6076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003835/1.619, allocations: 0.7371 MB / 0.9176 GB, free: 15.87 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004507/1.624, allocations: 1.504 MB / 0.919 GB, free: 14.36 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008495/1.625, allocations: 87.73 kB / 0.9191 GB, free: 14.27 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01801/1.643, allocations: 14.81 MB / 0.9336 GB, free: 14.91 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-05/1.643, allocations: 19.92 kB / 0.9336 GB, free: 14.89 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02677/1.67, allocations: 15.22 MB / 0.9485 GB, free: 15.44 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002759/1.672, allocations: 0.6568 MB / 0.9491 GB, free: 14.76 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002492/1.675, allocations: 79.98 kB / 0.9492 GB, free: 14.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004522/1.679, allocations: 295.6 kB / 0.9495 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001426/1.681, allocations: 293.7 kB / 0.9497 GB, free: 14.11 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009263/1.682, allocations: 120 kB / 0.9499 GB, free: 13.99 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.008953/1.691, allocations: 3.996 MB / 0.9538 GB, free: 10 MB / 0.6544 GB Notification: Performance of sort global known variables: time 5.61e-07/1.691, allocations: 0 / 0.9538 GB, free: 10 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01191/1.703, allocations: 1.944 MB / 0.9557 GB, free: 8.059 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.3184/2.021, allocations: 15.94 MB / 0.9712 GB, free: 227.8 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.01705/2.038, allocations: 11.92 MB / 0.9829 GB, free: 223.5 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.849e-05/2.038, allocations: 0 / 0.9829 GB, free: 223.5 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.006875/2.045, allocations: 4.793 MB / 0.9875 GB, free: 221.5 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007039/2.052, allocations: 0.8097 MB / 0.9883 GB, free: 221.1 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1311/2.184, allocations: 93.79 MB / 1.08 GB, free: 129.9 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009783/2.193, allocations: 5.918 MB / 1.086 GB, free: 124 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.009094/2.202, allocations: 4 MB / 1.09 GB, free: 119.9 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006227/2.209, allocations: 3.92 MB / 1.093 GB, free: 116 MB / 0.6544 GB Notification: Performance of SimCode: time 2.625e-06/2.209, allocations: 0 / 1.093 GB, free: 116 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.493/2.702, allocations: 131 MB / 1.221 GB, free: 219 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 50.27/52.97, allocations: 12.72 kB / 1.221 GB, free: 219 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