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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009222/0.0009221, allocations: 95.7 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001158, allocations: 176.4 kB / 18.25 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 223.2 MB / 242.3 MB, free: 14.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2233/0.2233, allocations: 44.24 MB / 337.7 MB, free: 2.461 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003299/0.00033, allocations: 8 kB / 410.3 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1333, allocations: 61.92 MB / 472.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.3585/0.4919, allocations: 67.88 MB / 0.5275 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.038/0.5299, allocations: 13.88 MB / 0.541 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0194/0.5493, allocations: 308.9 kB / 0.5413 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002658/0.5521, allocations: 0.5011 MB / 0.5418 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00813/0.5602, allocations: 2.057 MB / 0.5438 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002642/0.5629, allocations: 0.8629 MB / 0.5447 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01042/0.5733, allocations: 8.778 MB / 0.5532 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0129/0.5863, allocations: 7.363 MB / 0.5604 GB, free: 9.207 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005169/0.5915, allocations: 1.524 MB / 0.5619 GB, free: 7.742 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005802/0.5973, allocations: 2.55 MB / 0.5644 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001815/0.5992, allocations: 180 kB / 0.5646 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004352/0.6035, allocations: 1.145 MB / 0.5657 GB, free: 4.078 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003581/0.6072, allocations: 2.215 MB / 0.5679 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004766/0.6119, allocations: 2.505 MB / 0.5703 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009956/0.6219, allocations: 8.544 MB / 0.5786 GB, free: 7.008 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.622, allocations: 0 / 0.5786 GB, free: 7.008 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.622, allocations: 0 / 0.5786 GB, free: 7.008 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000298/0.6223, allocations: 0 / 0.5786 GB, free: 7.008 MB / 414.1 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.01191/0.6342, allocations: 5.035 MB / 0.5836 GB, free: 1.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.6343, allocations: 16.02 kB / 0.5836 GB, free: 1.914 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01233/0.6466, allocations: 2.629 MB / 0.5861 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009505/0.6561, allocations: 3.808 MB / 0.5899 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003296/0.6565, allocations: 302.2 kB / 0.5902 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001823/0.6584, allocations: 437.2 kB / 0.5906 GB, free: 10.81 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02385/0.6822, allocations: 11.75 MB / 0.602 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001781/0.6824, allocations: 59.58 kB / 0.6021 GB, free: 14.37 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005615/0.683, allocations: 186 kB / 0.6023 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003477/0.6865, allocations: 2.084 MB / 0.6043 GB, free: 12.15 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01974/0.7063, allocations: 10.13 MB / 0.6142 GB, free: 2.004 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0608/0.7671, allocations: 45.98 MB / 0.6591 GB, free: 2.863 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01141/0.7786, allocations: 4.381 MB / 0.6634 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003559/0.7821, allocations: 2.477 MB / 0.6658 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01737/0.7995, allocations: 9.847 MB / 0.6754 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.925e-05/0.7996, allocations: 51.56 kB / 0.6755 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=171): time 4.628e-06/0.7996, allocations: 0 / 0.6755 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=197): time 0.06055/0.8602, allocations: 19.99 MB / 0.695 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.8603, allocations: 201.2 kB / 0.6952 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008269/0.8686, allocations: 4.713 MB / 0.6998 GB, free: 8.742 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004192/0.8691, allocations: 53.7 kB / 0.6998 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002792/0.8719, allocations: 3.599 MB / 0.7034 GB, free: 5.035 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009019/0.8728, allocations: 0.7636 MB / 0.7041 GB, free: 4.262 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009157/0.8737, allocations: 0.5709 MB / 0.7047 GB, free: 3.684 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.8738, allocations: 305.1 kB / 0.7049 GB, free: 3.383 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003998/0.8778, allocations: 2.414 MB / 0.7073 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.258/1.136, allocations: 6.276 MB / 0.7134 GB, free: 185 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01071/1.147, allocations: 9.336 MB / 0.7226 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002044/1.147, allocations: 39.03 kB / 0.7226 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=858) (initialization): time 0.02113/1.168, allocations: 9.803 MB / 0.7322 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001102/1.168, allocations: 65.09 kB / 0.7322 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001709/1.168, allocations: 136.1 kB / 0.7324 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004218/1.173, allocations: 1.612 MB / 0.7339 GB, free: 174 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004679/1.177, allocations: 1.494 MB / 0.7354 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/1.188, allocations: 9.554 MB / 0.7447 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00546/1.193, allocations: 374.4 kB / 0.7451 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/1.194, allocations: 398.1 kB / 0.7455 GB, free: 168.4 MB / 0.5294 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 (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.004662/1.199, allocations: 2.478 MB / 0.7479 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009568/1.2, allocations: 407.4 kB / 0.7483 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007384/1.207, allocations: 4.247 MB / 0.7524 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.195e-05/1.207, allocations: 23.33 kB / 0.7524 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.618e-05/1.207, allocations: 14.5 kB / 0.7524 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-05/1.207, allocations: 6.75 kB / 0.7525 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01597/1.223, allocations: 9.78 MB / 0.762 GB, free: 154 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.031e-05/1.224, allocations: 16.83 kB / 0.762 GB, free: 154 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/1.225, allocations: 295.6 kB / 0.7623 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003583/1.228, allocations: 1.362 MB / 0.7636 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000207/1.229, allocations: 37.52 kB / 0.7637 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00892/1.238, allocations: 8.738 MB / 0.7722 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/1.238, allocations: 6.188 kB / 0.7722 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009722/1.247, allocations: 6.994 MB / 0.779 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/1.249, allocations: 463.6 kB / 0.7795 GB, free: 136 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005257/1.249, allocations: 28 kB / 0.7795 GB, free: 136 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/1.251, allocations: 128.7 kB / 0.7796 GB, free: 135.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003844/1.251, allocations: 121.1 kB / 0.7797 GB, free: 135.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/1.251, allocations: 52.55 kB / 0.7798 GB, free: 135.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003999/1.255, allocations: 2.972 MB / 0.7827 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/1.255, allocations: 0 / 0.7827 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005768/1.261, allocations: 1.204 MB / 0.7839 GB, free: 131.5 MB / 0.5294 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.0004656/1.262, allocations: 168.8 kB / 0.784 GB, free: 131.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008841/1.27, allocations: 5.985 MB / 0.7899 GB, free: 125.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/1.27, allocations: 0 / 0.7899 GB, free: 125.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002732/1.273, allocations: 2.016 MB / 0.7918 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00389/1.277, allocations: 0.5135 MB / 0.7923 GB, free: 122.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01926/1.296, allocations: 13.76 MB / 0.8058 GB, free: 109 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003795/1.3, allocations: 3.852 MB / 0.8095 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004569/1.305, allocations: 1.996 MB / 0.8115 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007938/1.306, allocations: 271.4 kB / 0.8118 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of SimCode: time 2.064e-06/1.306, allocations: 0 / 0.8118 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.07328/1.379, allocations: 43.1 MB / 0.8538 GB, free: 59.99 MB / 0.5294 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches