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.001627/0.001628, allocations: 103.2 kB / 17.58 MB, free: 5.422 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.001808/0.001808, allocations: 187.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.788/2.788, allocations: 205.1 MB / 224.4 MB, free: 12.33 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.006624/0.006624, allocations: 56.14 kB / 280.8 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.1818, allocations: 46.63 MB / 327.4 MB, free: 4.398 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.02417/0.206, allocations: 14.22 MB / 341.6 MB, free: 6.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01596/0.222, allocations: 4.657 MB / 346.3 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004994/0.2271, allocations: 95.75 kB / 346.4 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01178/0.2389, allocations: 4.225 MB / 350.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01008/0.2491, allocations: 2.26 MB / 352.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003667/0.2528, allocations: 0.9243 MB / 353.8 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01366/0.2665, allocations: 5.903 MB / 359.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01101/0.2775, allocations: 5.305 MB / 365 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006469/0.2841, allocations: 2.204 MB / 367.2 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008194/0.2923, allocations: 2.933 MB / 370.1 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003235/0.2956, allocations: 496 kB / 370.6 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005789/0.3014, allocations: 1.362 MB / 372 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00648/0.3079, allocations: 2.638 MB / 374.6 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01023/0.3182, allocations: 3.069 MB / 377.7 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4373/0.7556, allocations: 9.46 MB / 387.1 MB, free: 25.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.521e-05/0.7557, allocations: 1.156 kB / 387.1 MB, free: 25.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.7557, allocations: 6.844 kB / 387.1 MB, free: 25.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000639/0.7564, allocations: 0 / 387.1 MB, free: 25.07 MB / 318.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.06221/0.8186, allocations: 6.532 MB / 393.7 MB, free: 22.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001019/0.8187, allocations: 9.969 kB / 393.7 MB, free: 22.63 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006837/0.8256, allocations: 0.8831 MB / 394.6 MB, free: 22.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08064/0.9063, allocations: 6.097 MB / 400.7 MB, free: 21.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0222/0.9286, allocations: 4.751 MB / 405.4 MB, free: 19.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000675/0.9293, allocations: 316 kB / 405.7 MB, free: 19.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004214/0.9336, allocations: 446.5 kB / 406.1 MB, free: 18.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05756/0.9912, allocations: 12.1 MB / 418.3 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007041/0.992, allocations: 62.95 kB / 418.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004256/0.9963, allocations: 198.7 kB / 418.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007212/1.004, allocations: 2.205 MB / 420.7 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03918/1.043, allocations: 10.27 MB / 431 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1371/1.18, allocations: 47.02 MB / 478 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02364/1.204, allocations: 4.47 MB / 482.5 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007457/1.211, allocations: 2.512 MB / 485 MB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03616/1.248, allocations: 10.04 MB / 495 MB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001029/1.248, allocations: 50.97 kB / 495.1 MB, free: 13.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=192): time 1.065e-05/1.248, allocations: 0 / 495.1 MB, free: 13.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=218): time 0.1179/1.366, allocations: 19.52 MB / 0.5025 GB, free: 10 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002005/1.366, allocations: 204.6 kB / 0.5027 GB, free: 9.762 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0205/1.386, allocations: 4.848 MB / 0.5075 GB, free: 4.922 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00095/1.387, allocations: 57.7 kB / 0.5075 GB, free: 4.859 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006779/1.394, allocations: 3.759 MB / 0.5112 GB, free: 1.117 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00244/1.397, allocations: 0.8315 MB / 0.512 GB, free: 300 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007031/1.404, allocations: 1.318 MB / 0.5133 GB, free: 14.97 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/1.404, allocations: 305.1 kB / 0.5136 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00857/1.413, allocations: 2.359 MB / 0.5159 GB, free: 12.31 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0149/1.428, allocations: 6.304 MB / 0.522 GB, free: 4.109 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4257/1.853, allocations: 9.406 MB / 0.5312 GB, free: 139.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004827/1.854, allocations: 39.5 kB / 0.5313 GB, free: 139.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04278/1.897, allocations: 9.252 MB / 0.5403 GB, free: 136.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003698/1.897, allocations: 64.12 kB / 0.5404 GB, free: 136.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000439/1.898, allocations: 140.5 kB / 0.5405 GB, free: 136.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006726/1.905, allocations: 1.076 MB / 0.5415 GB, free: 136.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01099/1.916, allocations: 1.504 MB / 0.543 GB, free: 136.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02138/1.937, allocations: 8.873 MB / 0.5517 GB, free: 130.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01196/1.949, allocations: 357.1 kB / 0.552 GB, free: 130.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002527/1.952, allocations: 397.7 kB / 0.5524 GB, free: 130.7 MB / 430.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.01118/1.963, allocations: 2.578 MB / 0.5549 GB, free: 129.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002376/1.965, allocations: 427.6 kB / 0.5553 GB, free: 129.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01185/1.977, allocations: 3.895 MB / 0.5591 GB, free: 126.1 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.347e-05/1.977, allocations: 20 kB / 0.5591 GB, free: 126.1 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.252e-05/1.977, allocations: 8 kB / 0.5592 GB, free: 126.1 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.463e-05/1.977, allocations: 11.53 kB / 0.5592 GB, free: 126.1 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0258/2.003, allocations: 9.759 MB / 0.5687 GB, free: 117.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.017e-05/2.003, allocations: 0 / 0.5687 GB, free: 117.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001811/2.005, allocations: 343.8 kB / 0.569 GB, free: 116.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002662/2.008, allocations: 0.8555 MB / 0.5699 GB, free: 115.9 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002799/2.008, allocations: 43.98 kB / 0.5699 GB, free: 115.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008323/2.016, allocations: 7.92 MB / 0.5776 GB, free: 107.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/2.017, allocations: 4 kB / 0.5776 GB, free: 107.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/2.027, allocations: 6.644 MB / 0.5841 GB, free: 101.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002869/2.029, allocations: 0.7631 MB / 0.5849 GB, free: 100.4 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00145/2.031, allocations: 32 kB / 0.5849 GB, free: 100.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002611/2.034, allocations: 109.5 kB / 0.585 GB, free: 100.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004946/2.034, allocations: 137.8 kB / 0.5851 GB, free: 100.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/2.034, allocations: 55.98 kB / 0.5852 GB, free: 100 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.006661/2.041, allocations: 3.067 MB / 0.5882 GB, free: 96.99 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.263e-06/2.041, allocations: 0 / 0.5882 GB, free: 96.99 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01021/2.051, allocations: 1.203 MB / 0.5894 GB, free: 95.79 MB / 430.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.01875/2.07, allocations: 7.321 MB / 0.5965 GB, free: 88.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.02378/2.094, allocations: 7.331 MB / 0.6037 GB, free: 81.12 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.51e-05/2.094, allocations: 0 / 0.6037 GB, free: 81.12 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007179/2.101, allocations: 2.082 MB / 0.6057 GB, free: 79.01 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01408/2.115, allocations: 0.5958 MB / 0.6063 GB, free: 78.43 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1528/2.268, allocations: 63.12 MB / 0.6679 GB, free: 6.641 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01148/2.28, allocations: 3.995 MB / 0.6718 GB, free: 2.613 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.008002/2.288, allocations: 2.096 MB / 0.6739 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009326/2.297, allocations: 2.465 MB / 0.6763 GB, free: 14.05 MB / 446.1 MB Notification: Performance of SimCode: time 3.877e-06/2.297, allocations: 0 / 0.6763 GB, free: 14.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.575/2.872, allocations: 90.32 MB / 0.7645 GB, free: 99.42 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.87/22.75, allocations: 7.859 kB / 0.7645 GB, free: 99.41 MB / 446.1 MB (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