Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 107.1 kB / 17.33 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 205.8 kB / 18.26 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2337/0.2337, allocations: 46.1 MB / 343.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 72.42 kB / 417 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1266, allocations: 62.45 MB / 479.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.3377/0.4644, allocations: 65.52 MB / 0.5322 GB, free: 6.879 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03487/0.4993, allocations: 13.06 MB / 0.545 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01634/0.5156, allocations: 291.6 kB / 0.5453 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00796/0.5237, allocations: 4.043 MB / 0.5492 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007159/0.5309, allocations: 1.989 MB / 0.5512 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002859/0.5338, allocations: 0.878 MB / 0.552 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01089/0.5447, allocations: 6.521 MB / 0.5584 GB, free: 6.516 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009588/0.5543, allocations: 5.471 MB / 0.5637 GB, free: 1.008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004965/0.5593, allocations: 2.161 MB / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005004/0.5644, allocations: 3.1 MB / 0.5689 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001763/0.5662, allocations: 472 kB / 0.5693 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003685/0.5699, allocations: 1.362 MB / 0.5707 GB, free: 9.906 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003979/0.5739, allocations: 2.533 MB / 0.5731 GB, free: 7.367 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006484/0.5804, allocations: 2.871 MB / 0.5759 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01218/0.5926, allocations: 8.844 MB / 0.5846 GB, free: 11.61 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.5926, allocations: 0 / 0.5846 GB, free: 11.61 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5926, allocations: 0 / 0.5846 GB, free: 11.61 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002969/0.5929, allocations: 0 / 0.5846 GB, free: 11.61 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01363/0.6066, allocations: 6.071 MB / 0.5905 GB, free: 5.465 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.6066, allocations: 8.031 kB / 0.5905 GB, free: 5.457 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01103/0.6177, allocations: 2.583 MB / 0.593 GB, free: 2.863 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007684/0.6254, allocations: 3.738 MB / 0.5967 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002178/0.6256, allocations: 304.1 kB / 0.597 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001009/0.6266, allocations: 428 kB / 0.5974 GB, free: 14.36 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01924/0.6459, allocations: 11.55 MB / 0.6087 GB, free: 2.055 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001463/0.6461, allocations: 51.5 kB / 0.6087 GB, free: 2.004 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004983/0.6466, allocations: 187.9 kB / 0.6089 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003165/0.6498, allocations: 2.03 MB / 0.6109 GB, free: 15.78 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01802/0.6678, allocations: 9.945 MB / 0.6206 GB, free: 5.82 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05686/0.7247, allocations: 45.52 MB / 0.665 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/0.7359, allocations: 4.37 MB / 0.6693 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003514/0.7394, allocations: 2.476 MB / 0.6717 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01738/0.7568, allocations: 9.839 MB / 0.6813 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.07e-05/0.7569, allocations: 47.56 kB / 0.6814 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=171): time 3.857e-06/0.7569, allocations: 0 / 0.6814 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of matching and sorting (n=197): time 0.0624/0.8193, allocations: 19.91 MB / 0.7008 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002408/0.8196, allocations: 209.2 kB / 0.701 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009821/0.8295, allocations: 4.693 MB / 0.7056 GB, free: 12.89 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006149/0.8301, allocations: 61.69 kB / 0.7057 GB, free: 12.82 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003295/0.8335, allocations: 3.552 MB / 0.7091 GB, free: 9.223 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001294/0.8348, allocations: 0.7598 MB / 0.7099 GB, free: 8.453 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003091/0.8379, allocations: 1.336 MB / 0.7112 GB, free: 7.105 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001081/0.838, allocations: 305.1 kB / 0.7115 GB, free: 6.805 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003963/0.842, allocations: 2.406 MB / 0.7138 GB, free: 4.395 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2682/1.11, allocations: 6.239 MB / 0.7199 GB, free: 191.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0119/1.122, allocations: 9.301 MB / 0.729 GB, free: 184.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002225/1.122, allocations: 38.31 kB / 0.729 GB, free: 184.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.02391/1.146, allocations: 9.766 MB / 0.7386 GB, free: 181.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001794/1.147, allocations: 63.36 kB / 0.7386 GB, free: 181.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002549/1.147, allocations: 138.8 kB / 0.7388 GB, free: 181.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005017/1.152, allocations: 1.615 MB / 0.7403 GB, free: 181 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00525/1.157, allocations: 1.488 MB / 0.7418 GB, free: 180.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/1.168, allocations: 10.26 MB / 0.7518 GB, free: 175.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005097/1.173, allocations: 357.4 kB / 0.7522 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007266/1.174, allocations: 395.8 kB / 0.7525 GB, free: 174.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.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 (793): * Single equations (assignments): 788 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003592/1.177, allocations: 2.458 MB / 0.7549 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007587/1.178, allocations: 406.6 kB / 0.7553 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006684/1.185, allocations: 4.23 MB / 0.7594 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.689e-05/1.185, allocations: 25.2 kB / 0.7595 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.702e-05/1.185, allocations: 7.562 kB / 0.7595 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.992e-05/1.185, allocations: 15.14 kB / 0.7595 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/1.199, allocations: 9.719 MB / 0.769 GB, free: 164.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/1.199, allocations: 0.875 kB / 0.769 GB, free: 164.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001353/1.201, allocations: 299.5 kB / 0.7693 GB, free: 164.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003458/1.204, allocations: 1.36 MB / 0.7706 GB, free: 162.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001838/1.204, allocations: 32 kB / 0.7706 GB, free: 162.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009359/1.214, allocations: 9.403 MB / 0.7798 GB, free: 153.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/1.214, allocations: 0 / 0.7798 GB, free: 153.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009441/1.223, allocations: 6.97 MB / 0.7866 GB, free: 146.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001436/1.225, allocations: 455.7 kB / 0.7871 GB, free: 145.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005482/1.225, allocations: 28 kB / 0.7871 GB, free: 145.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/1.227, allocations: 124.7 kB / 0.7872 GB, free: 145.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004115/1.227, allocations: 132.7 kB / 0.7873 GB, free: 145.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/1.227, allocations: 44 kB / 0.7874 GB, free: 145.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003639/1.231, allocations: 2.964 MB / 0.7903 GB, free: 142.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/1.231, allocations: 0 / 0.7903 GB, free: 142.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00582/1.237, allocations: 1.183 MB / 0.7914 GB, free: 141.3 MB / 0.545 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004688/1.237, allocations: 163.1 kB / 0.7916 GB, free: 141.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01033/1.247, allocations: 7.011 MB / 0.7984 GB, free: 134.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/1.247, allocations: 0.5 kB / 0.7984 GB, free: 134.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002558/1.25, allocations: 2.011 MB / 0.8004 GB, free: 132.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003133/1.253, allocations: 0.5372 MB / 0.8009 GB, free: 131.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01782/1.271, allocations: 13.55 MB / 0.8141 GB, free: 118 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003668/1.275, allocations: 3.818 MB / 0.8179 GB, free: 114.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004548/1.279, allocations: 1.991 MB / 0.8198 GB, free: 112.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009321/1.28, allocations: 271.4 kB / 0.8201 GB, free: 111.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.633e-06/1.28, allocations: 0 / 0.8201 GB, free: 111.9 MB / 0.545 GB Notification: Performance of Templates: time 0.07121/1.352, allocations: 45.14 MB / 0.8642 GB, free: 66.98 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches