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.001895/0.001895, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002412/0.002412, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3052/0.3052, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001668, allocations: 75.88 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3648, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01502/0.3799, allocations: 13.49 MB / 0.5437 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0117/0.3916, allocations: 4.545 MB / 0.5481 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003738/0.3954, allocations: 88.84 kB / 0.5482 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00885/0.4043, allocations: 4.181 MB / 0.5523 GB, free: 11.42 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007568/0.4119, allocations: 2.19 MB / 0.5544 GB, free: 9.223 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002838/0.4148, allocations: 0.932 MB / 0.5554 GB, free: 8.289 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009945/0.4248, allocations: 6.13 MB / 0.5613 GB, free: 2.148 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008322/0.4332, allocations: 5.207 MB / 0.5664 GB, free: 12.88 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004674/0.4379, allocations: 2.119 MB / 0.5685 GB, free: 10.75 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004916/0.4428, allocations: 2.796 MB / 0.5712 GB, free: 7.945 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001811/0.4447, allocations: 472 kB / 0.5717 GB, free: 7.484 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003671/0.4484, allocations: 1.354 MB / 0.573 GB, free: 6.129 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003538/0.452, allocations: 2.513 MB / 0.5755 GB, free: 3.609 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005321/0.4573, allocations: 2.902 MB / 0.5783 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01335/0.4707, allocations: 9.188 MB / 0.5873 GB, free: 7.465 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.4708, allocations: 0 / 0.5873 GB, free: 7.465 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4708, allocations: 0 / 0.5873 GB, free: 7.465 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004047/0.4712, allocations: 4 kB / 0.5873 GB, free: 7.461 MB / 446.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.02266/0.4939, allocations: 6.414 MB / 0.5935 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.038e-05/0.4939, allocations: 12.03 kB / 0.5935 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002666/0.4966, allocations: 0.8345 MB / 0.5944 GB, free: 112 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03634/0.533, allocations: 6.093 MB / 0.6003 GB, free: 10 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01101/0.544, allocations: 4.228 MB / 0.6044 GB, free: 5.719 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003443/0.5444, allocations: 305.3 kB / 0.6047 GB, free: 5.422 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001813/0.5463, allocations: 423.7 kB / 0.6051 GB, free: 5.008 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02469/0.571, allocations: 11.42 MB / 0.6163 GB, free: 8.836 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003131/0.5713, allocations: 51.62 kB / 0.6163 GB, free: 8.785 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001437/0.5728, allocations: 191.9 kB / 0.6165 GB, free: 8.598 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003598/0.5764, allocations: 2.026 MB / 0.6185 GB, free: 6.566 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02107/0.5975, allocations: 9.682 MB / 0.6279 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06375/0.6613, allocations: 44.85 MB / 0.6717 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01114/0.6725, allocations: 4.246 MB / 0.6759 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003574/0.6761, allocations: 2.354 MB / 0.6782 GB, free: 7.91 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01679/0.6929, allocations: 9.436 MB / 0.6874 GB, free: 14.31 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.913e-05/0.6931, allocations: 55.5 kB / 0.6875 GB, free: 14.25 MB / 0.545 GB Notification: Performance of pre-optimization done (n=171): time 5.771e-06/0.6931, allocations: 4 kB / 0.6875 GB, free: 14.24 MB / 0.545 GB Notification: Performance of matching and sorting (n=197): time 0.05528/0.7484, allocations: 18.45 MB / 0.7055 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.7485, allocations: 205.2 kB / 0.7057 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008417/0.7569, allocations: 4.714 MB / 0.7103 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004489/0.7574, allocations: 53.7 kB / 0.7103 GB, free: 6.688 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003023/0.7605, allocations: 3.732 MB / 0.714 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001109/0.7616, allocations: 0.7946 MB / 0.7147 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002832/0.7645, allocations: 1.27 MB / 0.716 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.432e-05/0.7646, allocations: 301.1 kB / 0.7163 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2855/1.05, allocations: 2.181 MB / 0.7184 GB, free: 164.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006244/1.056, allocations: 6.007 MB / 0.7243 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01001/1.066, allocations: 8.898 MB / 0.733 GB, free: 151 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002674/1.067, allocations: 38.28 kB / 0.733 GB, free: 151 MB / 0.5606 GB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01683/1.084, allocations: 8.78 MB / 0.7416 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/1.084, allocations: 63 kB / 0.7416 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001732/1.084, allocations: 137 kB / 0.7418 GB, free: 147.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003116/1.087, allocations: 1.073 MB / 0.7428 GB, free: 147.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00482/1.092, allocations: 1.417 MB / 0.7442 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009212/1.101, allocations: 8.86 MB / 0.7528 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006168/1.107, allocations: 336.1 kB / 0.7532 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001459/1.109, allocations: 387.8 kB / 0.7535 GB, free: 139.1 MB / 0.5606 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.00474/1.114, allocations: 2.459 MB / 0.7559 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009256/1.115, allocations: 430.5 kB / 0.7563 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005808/1.12, allocations: 3.497 MB / 0.7598 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.14e-05/1.12, allocations: 20 kB / 0.7598 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/1.12, allocations: 8 kB / 0.7598 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-05/1.121, allocations: 7.969 kB / 0.7598 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01499/1.136, allocations: 8.941 MB / 0.7685 GB, free: 124.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/1.136, allocations: 0 / 0.7685 GB, free: 124.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001353/1.137, allocations: 299.5 kB / 0.7688 GB, free: 123.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002431/1.139, allocations: 0.8477 MB / 0.7696 GB, free: 122.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002469/1.14, allocations: 36 kB / 0.7697 GB, free: 122.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00752/1.147, allocations: 7.931 MB / 0.7774 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/1.147, allocations: 0 / 0.7774 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007968/1.155, allocations: 6.082 MB / 0.7834 GB, free: 108.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/1.156, allocations: 478.3 kB / 0.7838 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007645/1.157, allocations: 32 kB / 0.7838 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00172/1.159, allocations: 99.88 kB / 0.7839 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004245/1.159, allocations: 117.1 kB / 0.7841 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/1.159, allocations: 52.23 kB / 0.7841 GB, free: 108 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004436/1.164, allocations: 2.977 MB / 0.787 GB, free: 105 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.21e-07/1.164, allocations: 0 / 0.787 GB, free: 105 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006511/1.17, allocations: 1.126 MB / 0.7881 GB, free: 103.9 MB / 0.5606 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.008879/1.179, allocations: 6.74 MB / 0.7947 GB, free: 97.15 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008581/1.188, allocations: 5.54 MB / 0.8001 GB, free: 91.61 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/1.188, allocations: 0 / 0.8001 GB, free: 91.61 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002731/1.191, allocations: 1.882 MB / 0.8019 GB, free: 89.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003774/1.195, allocations: 0.5674 MB / 0.8025 GB, free: 89.14 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07786/1.273, allocations: 51.16 MB / 0.8525 GB, free: 31.99 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006478/1.279, allocations: 3.815 MB / 0.8562 GB, free: 28.14 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004954/1.284, allocations: 1.986 MB / 0.8581 GB, free: 26.14 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004008/1.288, allocations: 2.327 MB / 0.8604 GB, free: 23.82 MB / 0.5606 GB Notification: Performance of SimCode: time 1.653e-06/1.288, allocations: 0 / 0.8604 GB, free: 23.82 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1422/1.43, allocations: 83.04 MB / 0.9415 GB, free: 5.215 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.99/28.42, allocations: 16 kB / 0.9415 GB, free: 5.199 MB / 0.6231 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