Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.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.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001808/0.001808, allocations: 198.3 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 226.6 MB / 243.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007627/0.000763, allocations: 97.44 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2816/0.2816, allocations: 44.81 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002691/0.0002691, allocations: 8 kB / 465.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2651, allocations: 62.96 MB / 0.5159 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.04446/0.3097, allocations: 63.15 MB / 0.5776 GB, free: 7.945 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03145/0.3412, allocations: 13.31 MB / 0.5906 GB, free: 12.41 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01293/0.3541, allocations: 303.2 kB / 0.5908 GB, free: 12.12 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009795/0.364, allocations: 3.299 MB / 0.5941 GB, free: 9.188 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02559/0.3896, allocations: 9.677 MB / 0.6035 GB, free: 15.48 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004355/0.394, allocations: 0.8543 MB / 0.6043 GB, free: 14.62 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.07268/0.4667, allocations: 62.15 MB / 0.665 GB, free: 404 kB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01071/0.4774, allocations: 7.048 MB / 0.6719 GB, free: 9.258 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003264/0.4807, allocations: 1.666 MB / 0.6735 GB, free: 7.586 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004175/0.4849, allocations: 2.524 MB / 0.676 GB, free: 5.055 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001338/0.4863, allocations: 184 kB / 0.6762 GB, free: 4.875 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002995/0.4893, allocations: 1.108 MB / 0.6773 GB, free: 3.766 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002901/0.4923, allocations: 2.174 MB / 0.6794 GB, free: 1.586 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.2367/0.729, allocations: 2.364 MB / 0.6817 GB, free: 66.7 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009509/0.7386, allocations: 7.112 MB / 0.6886 GB, free: 66.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.7386, allocations: 1.531 kB / 0.6886 GB, free: 66.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.7386, allocations: 0 / 0.6886 GB, free: 66.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003994/0.739, allocations: 0.5 kB / 0.6886 GB, free: 66.3 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.01385/0.7529, allocations: 5.066 MB / 0.6936 GB, free: 64.05 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.7529, allocations: 9.125 kB / 0.6936 GB, free: 64.05 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01206/0.765, allocations: 2.669 MB / 0.6962 GB, free: 63.71 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008806/0.7738, allocations: 3.749 MB / 0.6999 GB, free: 63.02 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005843/0.7745, allocations: 304.1 kB / 0.7002 GB, free: 63.01 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002909/0.7774, allocations: 438 kB / 0.7006 GB, free: 63 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02394/0.8014, allocations: 11.73 MB / 0.712 GB, free: 60.92 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001884/0.8016, allocations: 54.22 kB / 0.7121 GB, free: 60.91 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008341/0.8024, allocations: 187.3 kB / 0.7123 GB, free: 60.91 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003168/0.8056, allocations: 2.084 MB / 0.7143 GB, free: 60.89 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01877/0.8244, allocations: 10.07 MB / 0.7241 GB, free: 59.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04942/0.8739, allocations: 45.99 MB / 0.769 GB, free: 22.67 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009829/0.8837, allocations: 4.363 MB / 0.7733 GB, free: 19.18 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002854/0.8866, allocations: 2.476 MB / 0.7757 GB, free: 17.73 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0142/0.9009, allocations: 9.851 MB / 0.7853 GB, free: 10.84 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.9009, allocations: 49.09 kB / 0.7854 GB, free: 10.79 MB / 490.7 MB Notification: Performance of pre-optimization done (n=171): time 5.651e-06/0.901, allocations: 0 / 0.7854 GB, free: 10.79 MB / 490.7 MB Notification: Performance of matching and sorting (n=197): time 0.05042/0.9514, allocations: 19.97 MB / 0.8049 GB, free: 7.871 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.325e-05/0.9515, allocations: 201.2 kB / 0.8051 GB, free: 7.633 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00694/0.9585, allocations: 4.684 MB / 0.8097 GB, free: 2.945 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000457/0.959, allocations: 59.56 kB / 0.8097 GB, free: 2.883 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002724/0.9617, allocations: 3.603 MB / 0.8132 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001091/0.9628, allocations: 0.7547 MB / 0.814 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004285/0.9632, allocations: 132 kB / 0.8141 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003764/0.9636, allocations: 0.5829 MB / 0.8147 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003859/0.9675, allocations: 2.394 MB / 0.817 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006842/0.9743, allocations: 6.257 MB / 0.8231 GB, free: 3.328 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01115/0.9855, allocations: 9.297 MB / 0.8322 GB, free: 8.691 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001205/0.9857, allocations: 40 kB / 0.8322 GB, free: 8.652 MB / 0.5261 GB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01926/1.005, allocations: 9.761 MB / 0.8418 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/1.005, allocations: 64 kB / 0.8418 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000164/1.005, allocations: 132 kB / 0.842 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00441/1.01, allocations: 1.616 MB / 0.8435 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004929/1.015, allocations: 1.492 MB / 0.845 GB, free: 12.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01198/1.027, allocations: 9.533 MB / 0.8543 GB, free: 2.809 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004984/1.032, allocations: 367.3 kB / 0.8546 GB, free: 2.449 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001159/1.033, allocations: 392 kB / 0.855 GB, free: 2.066 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.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 (796): * Single equations (assignments): 791 * 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 {(3,77.8%) 31,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005033/1.038, allocations: 2.483 MB / 0.8574 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008899/1.039, allocations: 406.8 kB / 0.8578 GB, free: 15.3 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007938/1.047, allocations: 4.242 MB / 0.862 GB, free: 11.06 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.493e-05/1.047, allocations: 24.72 kB / 0.862 GB, free: 11.04 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.599e-05/1.047, allocations: 14.7 kB / 0.862 GB, free: 11.03 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.073e-05/1.047, allocations: 7.969 kB / 0.862 GB, free: 11.02 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01791/1.065, allocations: 9.781 MB / 0.8716 GB, free: 1.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.629e-05/1.065, allocations: 0 / 0.8716 GB, free: 1.25 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001429/1.066, allocations: 306 kB / 0.8719 GB, free: 0.9648 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003845/1.07, allocations: 1.353 MB / 0.8732 GB, free: 15.61 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002801/1.07, allocations: 43.94 kB / 0.8732 GB, free: 15.56 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01055/1.081, allocations: 8.733 MB / 0.8818 GB, free: 6.582 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.081, allocations: 0 / 0.8818 GB, free: 6.582 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/1.092, allocations: 6.971 MB / 0.8886 GB, free: 15.6 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/1.093, allocations: 462.9 kB / 0.889 GB, free: 15.12 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006136/1.094, allocations: 35.59 kB / 0.889 GB, free: 15.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/1.095, allocations: 123.8 kB / 0.8892 GB, free: 14.97 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003675/1.096, allocations: 117.1 kB / 0.8893 GB, free: 14.86 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001508/1.096, allocations: 53.64 kB / 0.8893 GB, free: 14.81 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.004789/1.101, allocations: 2.948 MB / 0.8922 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.31e-07/1.101, allocations: 3.844 kB / 0.8922 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.005749/1.106, allocations: 1.211 MB / 0.8934 GB, free: 10.65 MB / 0.5886 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.0004843/1.107, allocations: 163.1 kB / 0.8935 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00922/1.116, allocations: 5.95 MB / 0.8993 GB, free: 4.918 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/1.116, allocations: 0 / 0.8993 GB, free: 4.918 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002926/1.119, allocations: 2.01 MB / 0.9013 GB, free: 2.91 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003475/1.123, allocations: 0.5065 MB / 0.9018 GB, free: 2.41 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2188/1.341, allocations: 13.66 MB / 0.9151 GB, free: 231.9 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005482/1.347, allocations: 3.848 MB / 0.9189 GB, free: 231.1 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/1.348, allocations: 312.5 kB / 0.9192 GB, free: 231.1 MB / 0.5886 GB Notification: Performance of SimCode: time 7.62e-07/1.348, allocations: 0 / 0.9192 GB, free: 231.1 MB / 0.5886 GB Notification: Performance of Templates: time 0.123/1.471, allocations: 112.1 MB / 1.029 GB, free: 136.6 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches