Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 173.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 221.5 MB / 230.7 MB, free: 7.535 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008329/0.0008329, allocations: 98.8 kB / 281.6 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.179/0.179, allocations: 44.15 MB / 376.5 MB, free: 3.07 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.02e-05/2.022e-05, allocations: 4.219 kB / 444.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1296, allocations: 61.91 MB / 0.4947 GB, free: 1.277 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4053/0.5349, allocations: 109.2 MB / 0.6013 GB, free: 3.352 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.5352, allocations: 83.95 kB / 0.6014 GB, free: 3.27 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5225/1.058, allocations: 102.2 MB / 0.7012 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.913e-06/1.058, allocations: 0 / 0.7012 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003599/1.058, allocations: 109.6 kB / 0.7013 GB, free: 105.6 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01824/1.076, allocations: 5.099 MB / 0.7063 GB, free: 104 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/1.076, allocations: 17.02 kB / 0.7063 GB, free: 104 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02956/1.106, allocations: 6.897 MB / 0.713 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01828/1.124, allocations: 6.489 MB / 0.7194 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003831/1.125, allocations: 166.2 kB / 0.7195 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002798/1.128, allocations: 314.7 kB / 0.7198 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01385/1.141, allocations: 7.226 MB / 0.7269 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01781/1.159, allocations: 10.91 MB / 0.7375 GB, free: 99.87 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001858/1.16, allocations: 73.08 kB / 0.7376 GB, free: 99.86 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005587/1.16, allocations: 39.44 kB / 0.7376 GB, free: 99.86 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001076/1.161, allocations: 1.063 MB / 0.7387 GB, free: 99.85 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04647/1.208, allocations: 54.57 MB / 0.792 GB, free: 60.6 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003464/1.211, allocations: 3.292 MB / 0.7952 GB, free: 58.81 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001966/1.213, allocations: 2.117 MB / 0.7972 GB, free: 57.86 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003705/1.214, allocations: 338.4 kB / 0.7976 GB, free: 57.57 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/1.214, allocations: 58.66 kB / 0.7976 GB, free: 57.51 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=180): time 4.558e-06/1.214, allocations: 0 / 0.7976 GB, free: 57.51 MB / 0.4948 GB Notification: Performance of matching and sorting (n=207): time 0.03407/1.248, allocations: 18.97 MB / 0.8161 GB, free: 47.46 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/1.248, allocations: 211.5 kB / 0.8163 GB, free: 47.21 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004667/1.252, allocations: 3.571 MB / 0.8198 GB, free: 44.06 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003603/1.253, allocations: 25.7 kB / 0.8199 GB, free: 44.03 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001598/1.254, allocations: 3.704 MB / 0.8235 GB, free: 40.67 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007596/1.255, allocations: 0.7647 MB / 0.8242 GB, free: 39.98 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002348/1.255, allocations: 4 kB / 0.8242 GB, free: 39.98 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002746/1.256, allocations: 0.5802 MB / 0.8248 GB, free: 39.47 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002326/1.258, allocations: 2.007 MB / 0.8268 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003678/1.262, allocations: 5.949 MB / 0.8326 GB, free: 30.07 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004005/1.266, allocations: 3.437 MB / 0.8359 GB, free: 27.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.217e-05/1.266, allocations: 40 kB / 0.836 GB, free: 27.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=853) (initialization): time 0.01318/1.279, allocations: 7.8 MB / 0.8436 GB, free: 20.32 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.424e-05/1.279, allocations: 64 kB / 0.8436 GB, free: 20.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001132/1.279, allocations: 144.2 kB / 0.8438 GB, free: 20.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00231/1.282, allocations: 0.9445 MB / 0.8447 GB, free: 19.38 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004639/1.286, allocations: 1.49 MB / 0.8462 GB, free: 18.08 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007088/1.293, allocations: 7.243 MB / 0.8532 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005186/1.299, allocations: 215.3 kB / 0.8534 GB, free: 11.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001298/1.3, allocations: 399.2 kB / 0.8538 GB, free: 10.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * Number of states: 0 () * Number of discrete variables: 47 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 786 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001204/1.301, allocations: 482.8 kB / 0.8543 GB, free: 10.33 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/1.302, allocations: 387 kB / 0.8546 GB, free: 9.949 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005123/1.307, allocations: 3.129 MB / 0.8577 GB, free: 7.391 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.822e-05/1.307, allocations: 20.62 kB / 0.8577 GB, free: 7.371 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/1.307, allocations: 8 kB / 0.8577 GB, free: 7.363 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.898e-05/1.307, allocations: 14.17 kB / 0.8577 GB, free: 7.359 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01272/1.32, allocations: 7.918 MB / 0.8655 GB, free: 0.8984 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/1.32, allocations: 0 / 0.8655 GB, free: 0.8984 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001429/1.322, allocations: 316.6 kB / 0.8658 GB, free: 0.6445 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001917/1.324, allocations: 0.6741 MB / 0.8664 GB, free: 164 kB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/1.324, allocations: 11.47 kB / 0.8664 GB, free: 156 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007477/1.331, allocations: 6.198 MB / 0.8725 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.135e-05/1.331, allocations: 4 kB / 0.8725 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009391/1.341, allocations: 5.766 MB / 0.8781 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/1.342, allocations: 427.7 kB / 0.8785 GB, free: 4.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004292/1.342, allocations: 4 kB / 0.8785 GB, free: 4.336 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/1.344, allocations: 71.89 kB / 0.8786 GB, free: 4.266 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003169/1.344, allocations: 133 kB / 0.8787 GB, free: 4.137 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/1.344, allocations: 52 kB / 0.8788 GB, free: 4.086 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003888/1.348, allocations: 2.43 MB / 0.8812 GB, free: 1.652 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.2e-07/1.348, allocations: 0 / 0.8812 GB, free: 1.652 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005673/1.354, allocations: 0.9804 MB / 0.8821 GB, free: 0.6719 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004756/1.354, allocations: 159 kB / 0.8823 GB, free: 0.5117 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008475/1.363, allocations: 5.082 MB / 0.8872 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.513e-06/1.363, allocations: 0 / 0.8872 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002839/1.366, allocations: 1.769 MB / 0.889 GB, free: 9.656 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002917/1.369, allocations: 448.2 kB / 0.8894 GB, free: 9.23 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01964/1.388, allocations: 8.773 MB / 0.898 GB, free: 416 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2713/1.66, allocations: 3.973 MB / 0.9018 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007029/1.667, allocations: 2.078 MB / 0.9039 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001135/1.668, allocations: 257.6 kB / 0.9041 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of SimCode: time 1.614e-06/1.668, allocations: 1.5 kB / 0.9041 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of Templates: time 0.06845/1.736, allocations: 35.08 MB / 0.9384 GB, free: 118.1 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches