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.001035/0.001035, allocations: 177.9 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.219/1.219, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009159/0.0009158, allocations: 93.69 kB / 292.1 MB, free: 10.94 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.2972/0.2972, allocations: 44.22 MB / 387.5 MB, free: 39.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004172/0.0004172, allocations: 12 kB / 459.9 MB, free: 1.789 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3649, allocations: 61.9 MB / 0.5096 GB, free: 38.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1321/0.4971, allocations: 109.9 MB / 0.6169 GB, free: 1.246 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.4973, allocations: 87.95 kB / 0.617 GB, free: 1.16 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5052/1.003, allocations: 104.5 MB / 0.719 GB, free: 95.02 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.757e-06/1.003, allocations: 1.188 kB / 0.719 GB, free: 95.02 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005799/1.003, allocations: 108.7 kB / 0.7191 GB, free: 95.01 MB / 490.7 MB 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.01809/1.021, allocations: 5.56 MB / 0.7245 GB, free: 92.71 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/1.021, allocations: 8.531 kB / 0.7245 GB, free: 92.71 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02551/1.047, allocations: 6.894 MB / 0.7313 GB, free: 91.71 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01972/1.067, allocations: 6.525 MB / 0.7376 GB, free: 89.34 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004076/1.067, allocations: 388.9 kB / 0.738 GB, free: 89.18 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002893/1.07, allocations: 0.515 MB / 0.7385 GB, free: 89.03 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02594/1.096, allocations: 12.32 MB / 0.7505 GB, free: 82.54 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003806/1.096, allocations: 70.25 kB / 0.7506 GB, free: 82.5 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001897/1.098, allocations: 249.7 kB / 0.7508 GB, free: 82.36 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001569/1.1, allocations: 1.074 MB / 0.7519 GB, free: 82.15 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01936/1.119, allocations: 10.05 MB / 0.7617 GB, free: 78.89 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05643/1.176, allocations: 55.58 MB / 0.816 GB, free: 24.98 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008772/1.185, allocations: 4.185 MB / 0.8201 GB, free: 20.65 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01367/1.198, allocations: 9.361 MB / 0.8292 GB, free: 11.18 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/1.198, allocations: 51.5 kB / 0.8293 GB, free: 11.12 MB / 490.7 MB Notification: Performance of pre-optimization done (n=171): time 5.35e-06/1.198, allocations: 7.938 kB / 0.8293 GB, free: 11.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=197): time 0.04985/1.248, allocations: 17.7 MB / 0.8466 GB, free: 9.246 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/1.248, allocations: 201.2 kB / 0.8468 GB, free: 9.004 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008122/1.257, allocations: 4.144 MB / 0.8508 GB, free: 4.859 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004806/1.257, allocations: 53.7 kB / 0.8508 GB, free: 4.801 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003361/1.261, allocations: 3.652 MB / 0.8544 GB, free: 1.148 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00119/1.262, allocations: 0.7556 MB / 0.8552 GB, free: 408 kB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003549/1.262, allocations: 128 kB / 0.8553 GB, free: 280 kB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004005/1.262, allocations: 0.5744 MB / 0.8558 GB, free: 15.69 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003178/1.266, allocations: 2.097 MB / 0.8579 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005822/1.272, allocations: 5.931 MB / 0.8637 GB, free: 5.734 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005086/1.277, allocations: 3.465 MB / 0.8671 GB, free: 2.273 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.79e-05/1.277, allocations: 40 kB / 0.8671 GB, free: 2.234 MB / 0.5105 GB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01634/1.293, allocations: 8.504 MB / 0.8754 GB, free: 9.711 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.972e-05/1.293, allocations: 70.44 kB / 0.8755 GB, free: 9.645 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000139/1.293, allocations: 140 kB / 0.8756 GB, free: 9.508 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002615/1.296, allocations: 0.9403 MB / 0.8765 GB, free: 8.562 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004749/1.301, allocations: 1.427 MB / 0.8779 GB, free: 7.133 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2942/1.595, allocations: 7.608 MB / 0.8853 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005539/1.601, allocations: 337.7 kB / 0.8857 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001339/1.602, allocations: 383.9 kB / 0.886 GB, free: 122.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 755 * 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.004623/1.607, allocations: 2.484 MB / 0.8885 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008109/1.607, allocations: 415.2 kB / 0.8889 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005521/1.613, allocations: 3.228 MB / 0.892 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-05/1.613, allocations: 21.94 kB / 0.892 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/1.613, allocations: 8.125 kB / 0.892 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/1.613, allocations: 10.73 kB / 0.892 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01588/1.629, allocations: 8.586 MB / 0.9004 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/1.629, allocations: 0 / 0.9004 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/1.63, allocations: 303 kB / 0.9007 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002067/1.632, allocations: 0.694 MB / 0.9014 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001618/1.633, allocations: 32.28 kB / 0.9014 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007016/1.64, allocations: 6.728 MB / 0.908 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/1.64, allocations: 3.375 kB / 0.908 GB, free: 118.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007649/1.647, allocations: 5.782 MB / 0.9136 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/1.649, allocations: 462.5 kB / 0.9141 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005994/1.649, allocations: 27.62 kB / 0.9141 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/1.651, allocations: 109 kB / 0.9142 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003127/1.651, allocations: 115.4 kB / 0.9143 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001368/1.651, allocations: 49.45 kB / 0.9144 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004534/1.656, allocations: 2.937 MB / 0.9172 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.6e-07/1.656, allocations: 0 / 0.9172 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006814/1.663, allocations: 1.135 MB / 0.9184 GB, free: 114.6 MB / 0.5261 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 (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.0005298/1.663, allocations: 171.4 kB / 0.9185 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008655/1.672, allocations: 5.356 MB / 0.9237 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/1.672, allocations: 3.938 kB / 0.9238 GB, free: 112.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002843/1.675, allocations: 1.816 MB / 0.9255 GB, free: 112 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/1.677, allocations: 0.5259 MB / 0.926 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02046/1.698, allocations: 12.74 MB / 0.9385 GB, free: 105.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004566/1.703, allocations: 3.967 MB / 0.9424 GB, free: 104 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004631/1.707, allocations: 2.008 MB / 0.9443 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006696/1.708, allocations: 269.5 kB / 0.9446 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of SimCode: time 8.12e-07/1.708, allocations: 0 / 0.9446 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of Templates: time 0.06439/1.772, allocations: 39.35 MB / 0.983 GB, free: 94.82 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