Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.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.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_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.001465/0.001465, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001725/0.001725, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2351/0.2351, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 78.12 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1159, allocations: 62.45 MB / 480.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01521/0.1311, allocations: 13.48 MB / 493.6 MB, free: 7.621 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01048/0.1417, allocations: 4.555 MB / 498.2 MB, free: 3.051 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003209/0.1449, allocations: 95.69 kB / 498.3 MB, free: 2.957 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008292/0.1533, allocations: 4.178 MB / 0.4907 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005749/0.1591, allocations: 2.14 MB / 0.4928 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002306/0.1614, allocations: 0.9203 MB / 0.4937 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007846/0.1693, allocations: 6.121 MB / 0.4996 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006972/0.1763, allocations: 5.215 MB / 0.5047 GB, free: 288 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2208/0.3971, allocations: 2.104 MB / 0.5068 GB, free: 16.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005455/0.4026, allocations: 2.795 MB / 0.5095 GB, free: 16.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002223/0.4049, allocations: 470.5 kB / 0.51 GB, free: 16.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004295/0.4092, allocations: 1.341 MB / 0.5113 GB, free: 16.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003883/0.4131, allocations: 2.49 MB / 0.5137 GB, free: 16.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005521/0.4187, allocations: 2.902 MB / 0.5165 GB, free: 15.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009942/0.4286, allocations: 8.931 MB / 0.5253 GB, free: 13.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.4287, allocations: 0 / 0.5253 GB, free: 13.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.4287, allocations: 0 / 0.5253 GB, free: 13.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000308/0.429, allocations: 1.375 kB / 0.5253 GB, free: 13.22 MB / 382.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.01879/0.4478, allocations: 6.262 MB / 0.5314 GB, free: 9.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.4479, allocations: 10.19 kB / 0.5314 GB, free: 9.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002823/0.4507, allocations: 0.8342 MB / 0.5322 GB, free: 8.977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03819/0.4889, allocations: 6.063 MB / 0.5381 GB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01007/0.499, allocations: 4.124 MB / 0.5421 GB, free: 3.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002131/0.4993, allocations: 306.4 kB / 0.5424 GB, free: 3.562 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001996/0.5013, allocations: 431.3 kB / 0.5429 GB, free: 3.441 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02478/0.5261, allocations: 11.42 MB / 0.554 GB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003541/0.5265, allocations: 47.81 kB / 0.5541 GB, free: 8.207 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001865/0.5284, allocations: 192 kB / 0.5542 GB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004244/0.5326, allocations: 2.02 MB / 0.5562 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02349/0.5562, allocations: 9.683 MB / 0.5657 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07075/0.6269, allocations: 44.97 MB / 0.6096 GB, free: 14.86 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01161/0.6386, allocations: 4.247 MB / 0.6137 GB, free: 10.47 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003457/0.6421, allocations: 2.338 MB / 0.616 GB, free: 8.125 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01893/0.6611, allocations: 9.446 MB / 0.6252 GB, free: 14.58 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.985e-05/0.6612, allocations: 43.56 kB / 0.6253 GB, free: 14.53 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 5.621e-06/0.6612, allocations: 0 / 0.6253 GB, free: 14.53 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.06134/0.7225, allocations: 18.17 MB / 0.643 GB, free: 12.32 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/0.7227, allocations: 201.2 kB / 0.6432 GB, free: 12.08 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01039/0.7331, allocations: 4.701 MB / 0.6478 GB, free: 7.371 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004686/0.7336, allocations: 57.7 kB / 0.6479 GB, free: 7.309 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003584/0.7372, allocations: 3.6 MB / 0.6514 GB, free: 3.707 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001329/0.7386, allocations: 0.7583 MB / 0.6521 GB, free: 2.957 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003945/0.7425, allocations: 1.257 MB / 0.6533 GB, free: 1.688 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.7427, allocations: 305.1 kB / 0.6536 GB, free: 1.387 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004936/0.7477, allocations: 2.179 MB / 0.6558 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007316/0.755, allocations: 6.004 MB / 0.6616 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01273/0.7678, allocations: 8.899 MB / 0.6703 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001598/0.768, allocations: 36 kB / 0.6703 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of matching and sorting (n=815) (initialization): time 0.02092/0.7889, allocations: 8.762 MB / 0.6789 GB, free: 4.461 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001924/0.7891, allocations: 66.53 kB / 0.679 GB, free: 4.398 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00024/0.7894, allocations: 136 kB / 0.6791 GB, free: 4.266 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003448/0.7928, allocations: 1.085 MB / 0.6802 GB, free: 3.176 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005134/0.798, allocations: 1.419 MB / 0.6815 GB, free: 1.754 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01358/0.8116, allocations: 8.862 MB / 0.6902 GB, free: 8.617 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006683/0.8183, allocations: 335.4 kB / 0.6905 GB, free: 8.289 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001637/0.82, allocations: 387.1 kB / 0.6909 GB, free: 7.914 MB / 0.5294 GB 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.007757/0.8278, allocations: 2.447 MB / 0.6933 GB, free: 5.453 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001726/0.8295, allocations: 418.6 kB / 0.6937 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009419/0.839, allocations: 3.495 MB / 0.6971 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.748e-05/0.8391, allocations: 20 kB / 0.6971 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.023e-05/0.8391, allocations: 8 kB / 0.6971 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.14e-05/0.8392, allocations: 7.969 kB / 0.6971 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02589/0.8651, allocations: 8.998 MB / 0.7059 GB, free: 8.457 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-05/0.8652, allocations: 7.938 kB / 0.7059 GB, free: 8.449 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/0.8668, allocations: 295.6 kB / 0.7062 GB, free: 8.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00296/0.8698, allocations: 0.8573 MB / 0.707 GB, free: 7.297 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00025/0.8701, allocations: 35.98 kB / 0.7071 GB, free: 7.262 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2351/1.105, allocations: 7.915 MB / 0.7148 GB, free: 189.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/1.105, allocations: 2.203 kB / 0.7148 GB, free: 189.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009911/1.115, allocations: 6.045 MB / 0.7207 GB, free: 188.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/1.117, allocations: 450.8 kB / 0.7211 GB, free: 188.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007382/1.117, allocations: 36.31 kB / 0.7212 GB, free: 188.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001647/1.119, allocations: 96.34 kB / 0.7213 GB, free: 188.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003859/1.119, allocations: 129.8 kB / 0.7214 GB, free: 188.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001403/1.12, allocations: 49.41 kB / 0.7214 GB, free: 188.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006058/1.126, allocations: 2.979 MB / 0.7243 GB, free: 187.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.51e-07/1.126, allocations: 0.5 kB / 0.7243 GB, free: 187.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007786/1.134, allocations: 1.121 MB / 0.7254 GB, free: 187.6 MB / 0.545 GB 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.01028/1.144, allocations: 6.707 MB / 0.732 GB, free: 184.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01042/1.154, allocations: 6.569 MB / 0.7384 GB, free: 182.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/1.154, allocations: 0 / 0.7384 GB, free: 182.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002868/1.157, allocations: 1.89 MB / 0.7402 GB, free: 182 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003653/1.161, allocations: 0.5807 MB / 0.7408 GB, free: 181.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08638/1.247, allocations: 59.46 MB / 0.7989 GB, free: 121.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006927/1.254, allocations: 3.82 MB / 0.8026 GB, free: 117.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005277/1.26, allocations: 1.992 MB / 0.8046 GB, free: 115.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003435/1.263, allocations: 2.323 MB / 0.8068 GB, free: 113 MB / 0.545 GB Notification: Performance of SimCode: time 1.373e-06/1.263, allocations: 0 / 0.8068 GB, free: 113 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.123/1.386, allocations: 86.64 MB / 0.8914 GB, free: 26.76 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/13.31, allocations: 7.516 kB / 0.8914 GB, free: 26.75 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.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_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches