Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 199.2 kB / 16.79 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 226.5 MB / 244.1 MB, free: 8.086 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008093/0.0008094, allocations: 99.38 kB / 296.1 MB, free: 6.863 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3066/0.3066, allocations: 44.82 MB / 392.9 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002763, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3095, allocations: 62.95 MB / 0.5165 GB, free: 36.98 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1271/0.4366, allocations: 109.8 MB / 0.6237 GB, free: 11.54 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/0.4369, allocations: 87.89 kB / 0.6238 GB, free: 11.46 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5419/0.9788, allocations: 129.3 MB / 0.75 GB, free: 86.71 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.9789, allocations: 0 / 0.75 GB, free: 86.71 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004835/0.9794, allocations: 127 kB / 0.7502 GB, free: 86.71 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: 2149 * Number of variables: 2149 Notification: Performance of Generate backend data structure: time 0.02307/1.002, allocations: 7.074 MB / 0.7571 GB, free: 82.04 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/1.003, allocations: 10.59 kB / 0.7571 GB, free: 82.04 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02748/1.03, allocations: 6.969 MB / 0.7639 GB, free: 78.24 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01587/1.046, allocations: 6.941 MB / 0.7707 GB, free: 71.22 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004678/1.046, allocations: 472.7 kB / 0.7711 GB, free: 70.75 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003153/1.05, allocations: 0.6289 MB / 0.7717 GB, free: 70.12 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03461/1.084, allocations: 15.74 MB / 0.7871 GB, free: 53.14 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005355/1.085, allocations: 83.48 kB / 0.7872 GB, free: 53.06 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002988/1.088, allocations: 291.8 kB / 0.7875 GB, free: 52.78 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002213/1.09, allocations: 1.471 MB / 0.7889 GB, free: 51.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02754/1.118, allocations: 13.69 MB / 0.8023 GB, free: 37.59 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08584/1.204, allocations: 68.94 MB / 0.8696 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01818/1.222, allocations: 6.912 MB / 0.8763 GB, free: 7.617 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007074/1.229, allocations: 5.158 MB / 0.8814 GB, free: 2.445 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2999/1.529, allocations: 17.2 MB / 0.8982 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.71e-05/1.529, allocations: 68.44 kB / 0.8982 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=289): time 5.821e-06/1.529, allocations: 0 / 0.8982 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=373): time 0.1464/1.675, allocations: 55.28 MB / 0.9522 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/1.675, allocations: 330.1 kB / 0.9525 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007184/1.683, allocations: 5.457 MB / 0.9579 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0009612/1.684, allocations: 85.02 kB / 0.958 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00221/1.686, allocations: 4.292 MB / 0.9621 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001535/1.687, allocations: 1.358 MB / 0.9635 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000496/1.688, allocations: 168.1 kB / 0.9636 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000318/1.688, allocations: 0.6462 MB / 0.9643 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005652/1.694, allocations: 4.672 MB / 0.9688 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007374/1.701, allocations: 8.991 MB / 0.9776 GB, free: 92.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0148/1.716, allocations: 14.67 MB / 0.9919 GB, free: 76.86 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001065/1.716, allocations: 44 kB / 0.992 GB, free: 76.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1059) (initialization): time 0.03047/1.747, allocations: 17.78 MB / 1.009 GB, free: 62.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.276e-05/1.747, allocations: 68 kB / 1.009 GB, free: 62.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001336/1.747, allocations: 148 kB / 1.01 GB, free: 61.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01184/1.759, allocations: 4.757 MB / 1.014 GB, free: 57.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006612/1.765, allocations: 1.926 MB / 1.016 GB, free: 55.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03035/1.796, allocations: 25.39 MB / 1.041 GB, free: 29.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007745/1.804, allocations: 0.5889 MB / 1.041 GB, free: 29.13 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001952/1.806, allocations: 483.9 kB / 1.042 GB, free: 28.66 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 676 * Number of states: 0 () * Number of discrete variables: 59 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (956): * Single equations (assignments): 950 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 15,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007435/1.813, allocations: 3.066 MB / 1.045 GB, free: 25.59 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001567/1.815, allocations: 0.5361 MB / 1.045 GB, free: 25.05 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02352/1.838, allocations: 12.67 MB / 1.058 GB, free: 12.31 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-05/1.838, allocations: 40 kB / 1.058 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.605e-05/1.838, allocations: 16 kB / 1.058 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.611e-05/1.838, allocations: 15.94 kB / 1.058 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05237/1.891, allocations: 22.43 MB / 1.08 GB, free: 5.746 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.987e-05/1.891, allocations: 0 / 1.08 GB, free: 5.746 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005209/1.896, allocations: 0.6396 MB / 1.08 GB, free: 5.105 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3054/2.202, allocations: 4.528 MB / 1.085 GB, free: 128.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001119/2.203, allocations: 68.09 kB / 1.085 GB, free: 128.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03124/2.234, allocations: 24.67 MB / 1.109 GB, free: 124.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/2.234, allocations: 1.25 kB / 1.109 GB, free: 124.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0336/2.268, allocations: 18.85 MB / 1.127 GB, free: 119.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/2.269, allocations: 0.5592 MB / 1.128 GB, free: 119.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001703/2.271, allocations: 63.56 kB / 1.128 GB, free: 119.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003512/2.275, allocations: 344.7 kB / 1.128 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001104/2.276, allocations: 237.2 kB / 1.129 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003455/2.276, allocations: 92.98 kB / 1.129 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.005382/2.282, allocations: 3.449 MB / 1.132 GB, free: 118.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.91e-07/2.282, allocations: 0 / 1.132 GB, free: 118.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007761/2.289, allocations: 1.845 MB / 1.134 GB, free: 117.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (283): * Single equations (assignments): 277 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(14,43.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007285/2.29, allocations: 217.1 kB / 1.134 GB, free: 117.7 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01811/2.308, allocations: 12.27 MB / 1.146 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/2.308, allocations: 0 / 1.146 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009712/2.318, allocations: 5.893 MB / 1.152 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005015/2.323, allocations: 0.7462 MB / 1.152 GB, free: 111 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02803/2.351, allocations: 20.42 MB / 1.172 GB, free: 101.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00581/2.357, allocations: 4.8 MB / 1.177 GB, free: 97.47 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00218/2.359, allocations: 433.1 kB / 1.178 GB, free: 97.08 MB / 0.5417 GB Notification: Performance of SimCode: time 8.91e-07/2.359, allocations: 2.078 kB / 1.178 GB, free: 97.08 MB / 0.5417 GB Notification: Performance of Templates: time 0.4975/2.857, allocations: 184.6 MB / 1.358 GB, free: 126.6 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint3/GearConstraint3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w Variables in the result:gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w,time