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.0009294/0.0009292, allocations: 200.4 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 226.6 MB / 243.1 MB, free: 12.56 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008091/0.0008091, allocations: 93.98 kB / 295.1 MB, free: 4.398 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.203/0.203, allocations: 44.84 MB / 392 MB, free: 11.37 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002403/0.0002403, allocations: 11.98 kB / 464.7 MB, free: 68.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09633/0.09658, allocations: 62.96 MB / 0.5153 GB, free: 5.109 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.2482/0.3448, allocations: 63.14 MB / 0.577 GB, free: 8.957 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02493/0.3698, allocations: 13.33 MB / 0.59 GB, free: 460 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01042/0.3802, allocations: 302.9 kB / 0.5903 GB, free: 412 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008766/0.389, allocations: 3.287 MB / 0.5935 GB, free: 14.48 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02249/0.4115, allocations: 9.659 MB / 0.6029 GB, free: 7.891 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003609/0.4152, allocations: 0.8032 MB / 0.6037 GB, free: 7.371 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.06579/0.481, allocations: 62.1 MB / 0.6644 GB, free: 10.2 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009391/0.4904, allocations: 6.559 MB / 0.6708 GB, free: 3.586 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003082/0.4935, allocations: 1.666 MB / 0.6724 GB, free: 1.914 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003609/0.4971, allocations: 2.528 MB / 0.6749 GB, free: 15.38 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009149/0.4981, allocations: 180 kB / 0.675 GB, free: 15.2 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00239/0.5005, allocations: 0.9597 MB / 0.676 GB, free: 14.24 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002412/0.5029, allocations: 2.178 MB / 0.6781 GB, free: 12.06 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001498/0.5044, allocations: 1.041 MB / 0.6791 GB, free: 11.01 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006854/0.5113, allocations: 7.116 MB / 0.6861 GB, free: 3.875 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.5113, allocations: 3.938 kB / 0.6861 GB, free: 3.871 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5113, allocations: 0 / 0.6861 GB, free: 3.871 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001816/0.5115, allocations: 0 / 0.6861 GB, free: 3.871 MB / 474.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.009006/0.5205, allocations: 5.12 MB / 0.6911 GB, free: 14.68 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.5206, allocations: 12.03 kB / 0.6911 GB, free: 14.67 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01129/0.5319, allocations: 2.676 MB / 0.6937 GB, free: 11.98 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009372/0.5413, allocations: 3.68 MB / 0.6973 GB, free: 8.246 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003133/0.5416, allocations: 299.8 kB / 0.6976 GB, free: 7.953 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00147/0.5431, allocations: 435.6 kB / 0.698 GB, free: 7.527 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02236/0.5655, allocations: 11.72 MB / 0.7094 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002371/0.5658, allocations: 59.48 kB / 0.7095 GB, free: 11 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001156/0.5669, allocations: 187.8 kB / 0.7097 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003573/0.5705, allocations: 2.085 MB / 0.7117 GB, free: 8.727 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01911/0.5896, allocations: 10.07 MB / 0.7215 GB, free: 14.63 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2885/0.8782, allocations: 45.95 MB / 0.7664 GB, free: 158.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009996/0.8883, allocations: 4.372 MB / 0.7707 GB, free: 157.7 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002998/0.8913, allocations: 2.469 MB / 0.7731 GB, free: 157 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01289/0.9042, allocations: 9.848 MB / 0.7827 GB, free: 152.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.9043, allocations: 57.25 kB / 0.7828 GB, free: 152.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=171): time 5.361e-06/0.9043, allocations: 0 / 0.7828 GB, free: 152.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=197): time 0.04337/0.9477, allocations: 19.97 MB / 0.8023 GB, free: 142.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/0.9477, allocations: 208.7 kB / 0.8025 GB, free: 142.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004843/0.9526, allocations: 4.686 MB / 0.807 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002888/0.9529, allocations: 57.64 kB / 0.8071 GB, free: 137.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001472/0.9544, allocations: 3.599 MB / 0.8106 GB, free: 133.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004958/0.9549, allocations: 0.7594 MB / 0.8113 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002167/0.9551, allocations: 132 kB / 0.8115 GB, free: 133 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002134/0.9553, allocations: 0.5868 MB / 0.812 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002586/0.9579, allocations: 2.39 MB / 0.8144 GB, free: 130 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003776/0.9617, allocations: 6.259 MB / 0.8205 GB, free: 122 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003987/0.9657, allocations: 3.774 MB / 0.8242 GB, free: 118.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.862e-05/0.9658, allocations: 40 kB / 0.8242 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01298/0.9788, allocations: 9.753 MB / 0.8337 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.312e-05/0.9789, allocations: 64.94 kB / 0.8338 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.498e-05/0.979, allocations: 136 kB / 0.8339 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003636/0.9826, allocations: 1.636 MB / 0.8355 GB, free: 106.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003794/0.9864, allocations: 1.486 MB / 0.837 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009134/0.9955, allocations: 9.54 MB / 0.8463 GB, free: 95.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004178/0.9998, allocations: 367.3 kB / 0.8466 GB, free: 95.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008237/1.001, allocations: 393.8 kB / 0.847 GB, free: 94.69 MB / 0.5261 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.002983/1.004, allocations: 2.489 MB / 0.8495 GB, free: 92.19 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000546/1.004, allocations: 406.8 kB / 0.8498 GB, free: 91.79 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006275/1.01, allocations: 4.244 MB / 0.854 GB, free: 87.53 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.267e-05/1.01, allocations: 20 kB / 0.854 GB, free: 87.51 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/1.01, allocations: 8.469 kB / 0.854 GB, free: 87.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/1.011, allocations: 15.91 kB / 0.854 GB, free: 87.48 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01425/1.025, allocations: 9.767 MB / 0.8636 GB, free: 77.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/1.025, allocations: 0 / 0.8636 GB, free: 77.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001219/1.026, allocations: 307.5 kB / 0.8639 GB, free: 77.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003268/1.029, allocations: 1.358 MB / 0.8652 GB, free: 76.02 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001309/1.029, allocations: 36 kB / 0.8652 GB, free: 75.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008556/1.038, allocations: 8.746 MB / 0.8738 GB, free: 66.97 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/1.038, allocations: 0 / 0.8738 GB, free: 66.97 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009113/1.047, allocations: 6.971 MB / 0.8806 GB, free: 59.97 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/1.048, allocations: 467.6 kB / 0.881 GB, free: 59.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004688/1.049, allocations: 32 kB / 0.881 GB, free: 59.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/1.05, allocations: 119.8 kB / 0.8812 GB, free: 59.34 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003188/1.051, allocations: 129.1 kB / 0.8813 GB, free: 59.22 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/1.051, allocations: 48 kB / 0.8813 GB, free: 59.17 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003641/1.055, allocations: 2.945 MB / 0.8842 GB, free: 56.23 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.51e-07/1.055, allocations: 0 / 0.8842 GB, free: 56.23 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005624/1.06, allocations: 1.202 MB / 0.8854 GB, free: 55.03 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.0004249/1.061, allocations: 167.4 kB / 0.8855 GB, free: 54.86 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008506/1.069, allocations: 5.959 MB / 0.8914 GB, free: 48.91 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/1.069, allocations: 0 / 0.8914 GB, free: 48.91 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002598/1.072, allocations: 2.007 MB / 0.8933 GB, free: 46.88 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002995/1.075, allocations: 0.5131 MB / 0.8938 GB, free: 46.37 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01811/1.093, allocations: 13.66 MB / 0.9072 GB, free: 32.66 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003068/1.096, allocations: 3.846 MB / 0.9109 GB, free: 28.79 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/1.097, allocations: 311.4 kB / 0.9112 GB, free: 28.48 MB / 0.5261 GB Notification: Performance of SimCode: time 8.71e-07/1.097, allocations: 0 / 0.9112 GB, free: 28.48 MB / 0.5261 GB Notification: Performance of Templates: time 0.3188/1.416, allocations: 112.3 MB / 1.021 GB, free: 132.6 MB / 0.5417 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