Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_3_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.001393/0.001393, allocations: 113.2 kB / 17.73 MB, free: 5.336 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.001257/0.001257, allocations: 180.2 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.314/1.314, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 56.3 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07978/0.08113, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.1865/0.2677, allocations: 14.23 MB / 388.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009563/0.2773, allocations: 4.633 MB / 393.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003223/0.2806, allocations: 96.06 kB / 393.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007798/0.2884, allocations: 4.227 MB / 397.8 MB, free: 200 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007007/0.2954, allocations: 2.256 MB / 400.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002491/0.298, allocations: 0.9395 MB / 401 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009651/0.3076, allocations: 5.892 MB / 406.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007514/0.3152, allocations: 5.315 MB / 412.2 MB, free: 8.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00403/0.3193, allocations: 2.201 MB / 414.4 MB, free: 7.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004856/0.3242, allocations: 2.938 MB / 417.4 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001292/0.3255, allocations: 496 kB / 417.9 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003071/0.3286, allocations: 1.37 MB / 419.2 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002638/0.3312, allocations: 2.638 MB / 421.9 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004682/0.3359, allocations: 3.069 MB / 424.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01183/0.3478, allocations: 9.718 MB / 434.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.3478, allocations: 0 / 434.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3478, allocations: 0 / 434.6 MB, free: 3.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003329/0.3482, allocations: 0 / 434.6 MB, free: 3.695 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01341/0.3616, allocations: 6.538 MB / 441.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3617, allocations: 12.03 kB / 441.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001367/0.363, allocations: 0.8804 MB / 442.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.038/0.4011, allocations: 6.093 MB / 448.2 MB, free: 6.062 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0106/0.4117, allocations: 4.813 MB / 453 MB, free: 1.191 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002555/0.412, allocations: 316.7 kB / 453.3 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001504/0.4135, allocations: 459.5 kB / 453.7 MB, free: 440 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02078/0.4343, allocations: 12.11 MB / 465.8 MB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000167/0.4345, allocations: 55.44 kB / 465.9 MB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006395/0.4352, allocations: 195.8 kB / 466.1 MB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003573/0.4388, allocations: 2.203 MB / 468.3 MB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02006/0.4588, allocations: 10.29 MB / 478.6 MB, free: 6.797 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06379/0.5227, allocations: 46.79 MB / 0.5131 GB, free: 6.598 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0117/0.5344, allocations: 4.485 MB / 0.5174 GB, free: 1.965 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003608/0.5381, allocations: 2.518 MB / 0.5199 GB, free: 15.44 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01835/0.5565, allocations: 10.03 MB / 0.5297 GB, free: 5.238 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.913e-05/0.5566, allocations: 51.88 kB / 0.5297 GB, free: 5.18 MB / 462.1 MB Notification: Performance of pre-optimization done (n=192): time 6.863e-06/0.5566, allocations: 0 / 0.5297 GB, free: 5.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=218): time 0.05766/0.6143, allocations: 19.52 MB / 0.5488 GB, free: 1.57 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.6144, allocations: 205.2 kB / 0.549 GB, free: 1.324 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1875/0.8019, allocations: 4.836 MB / 0.5537 GB, free: 149.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003955/0.8023, allocations: 57.61 kB / 0.5538 GB, free: 149.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002486/0.8048, allocations: 3.758 MB / 0.5574 GB, free: 147.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001005/0.8058, allocations: 0.8317 MB / 0.5583 GB, free: 146.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001737/0.8076, allocations: 1.313 MB / 0.5595 GB, free: 145.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.547e-05/0.8076, allocations: 303.6 kB / 0.5598 GB, free: 145.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003605/0.8112, allocations: 2.354 MB / 0.5621 GB, free: 144.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004883/0.8161, allocations: 6.316 MB / 0.5683 GB, free: 138.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009693/0.8259, allocations: 9.41 MB / 0.5775 GB, free: 130.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001932/0.8261, allocations: 39.81 kB / 0.5775 GB, free: 130.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.0166/0.8427, allocations: 9.251 MB / 0.5866 GB, free: 127.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001745/0.8429, allocations: 68.25 kB / 0.5866 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001944/0.8431, allocations: 138.8 kB / 0.5868 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002936/0.846, allocations: 1.077 MB / 0.5878 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005454/0.8515, allocations: 1.503 MB / 0.5893 GB, free: 126.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008973/0.8605, allocations: 8.851 MB / 0.5979 GB, free: 121.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005138/0.8657, allocations: 364.8 kB / 0.5983 GB, free: 120.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001226/0.867, allocations: 395.1 kB / 0.5986 GB, free: 120.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 45 (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 (794): * Single equations (assignments): 789 * 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.004892/0.8719, allocations: 2.57 MB / 0.6012 GB, free: 118.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001172/0.8731, allocations: 441.6 kB / 0.6016 GB, free: 117.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007355/0.8804, allocations: 3.882 MB / 0.6054 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.239e-05/0.8805, allocations: 24 kB / 0.6054 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.226e-05/0.8806, allocations: 9.562 kB / 0.6054 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-05/0.8806, allocations: 11.31 kB / 0.6054 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01821/0.8988, allocations: 9.709 MB / 0.6149 GB, free: 105.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.879e-05/0.8989, allocations: 5.438 kB / 0.6149 GB, free: 105.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001556/0.9004, allocations: 343.5 kB / 0.6152 GB, free: 104.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002394/0.9028, allocations: 0.8553 MB / 0.6161 GB, free: 103.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001694/0.903, allocations: 39.98 kB / 0.6161 GB, free: 103.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007249/0.9103, allocations: 7.921 MB / 0.6238 GB, free: 95.63 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.9103, allocations: 0 / 0.6238 GB, free: 95.63 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008295/0.9186, allocations: 6.652 MB / 0.6303 GB, free: 88.95 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001893/0.9205, allocations: 0.7569 MB / 0.6311 GB, free: 88.17 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004655/0.921, allocations: 32.75 kB / 0.6311 GB, free: 88.14 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/0.9225, allocations: 107.9 kB / 0.6312 GB, free: 88.04 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003516/0.9229, allocations: 137.7 kB / 0.6313 GB, free: 87.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.923, allocations: 63.58 kB / 0.6314 GB, free: 87.84 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00355/0.9266, allocations: 3.067 MB / 0.6344 GB, free: 84.79 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.9266, allocations: 0 / 0.6344 GB, free: 84.79 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005259/0.9318, allocations: 1.201 MB / 0.6356 GB, free: 83.59 MB / 478.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 (169): * Single equations (assignments): 164 * 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.008344/0.9402, allocations: 7.311 MB / 0.6427 GB, free: 76.24 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008156/0.9484, allocations: 5.955 MB / 0.6485 GB, free: 70.29 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.9484, allocations: 3.188 kB / 0.6485 GB, free: 70.29 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002621/0.9511, allocations: 2.065 MB / 0.6505 GB, free: 68.19 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003046/0.9541, allocations: 0.5858 MB / 0.6511 GB, free: 67.62 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0678/1.022, allocations: 53.82 MB / 0.7037 GB, free: 7.578 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005501/1.027, allocations: 4 MB / 0.7076 GB, free: 3.551 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00463/1.032, allocations: 2.091 MB / 0.7096 GB, free: 1.457 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003441/1.036, allocations: 2.475 MB / 0.712 GB, free: 15.04 MB / 494.1 MB Notification: Performance of SimCode: time 9.42e-07/1.036, allocations: 0 / 0.712 GB, free: 15.04 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3134/1.349, allocations: 86.54 MB / 0.7965 GB, free: 133.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.26/21.61, allocations: 11.45 kB / 0.7966 GB, free: 133.6 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches