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.001057/0.001057, allocations: 112.7 kB / 18.45 MB, free: 4.621 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.001027/0.001027, allocations: 185.2 kB / 19.38 MB, free: 3.699 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.262/1.262, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.1892/0.1892, allocations: 44.19 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 63.91 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2897, allocations: 60.82 MB / 0.5196 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01314/0.3029, allocations: 13.62 MB / 0.5329 GB, free: 9.832 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009566/0.3125, allocations: 4.541 MB / 0.5373 GB, free: 6.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002615/0.3151, allocations: 93.91 kB / 0.5374 GB, free: 6.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007781/0.3229, allocations: 4.202 MB / 0.5415 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005777/0.3287, allocations: 2.174 MB / 0.5436 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002274/0.331, allocations: 0.9377 MB / 0.5445 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008634/0.3397, allocations: 6.075 MB / 0.5505 GB, free: 12.37 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006849/0.3466, allocations: 5.217 MB / 0.5556 GB, free: 7.086 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0036/0.3502, allocations: 2.142 MB / 0.5577 GB, free: 4.938 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004086/0.3543, allocations: 2.82 MB / 0.5604 GB, free: 2.109 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001356/0.3557, allocations: 476 kB / 0.5609 GB, free: 1.645 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003152/0.3589, allocations: 1.362 MB / 0.5622 GB, free: 288 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002995/0.3619, allocations: 2.552 MB / 0.5647 GB, free: 13.72 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004073/0.366, allocations: 2.89 MB / 0.5675 GB, free: 10.82 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009546/0.3755, allocations: 9.181 MB / 0.5765 GB, free: 1.605 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3756, allocations: 0 / 0.5765 GB, free: 1.605 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3756, allocations: 4 kB / 0.5765 GB, free: 1.602 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001906/0.3758, allocations: 4 kB / 0.5765 GB, free: 1.598 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01168/0.3875, allocations: 6.126 MB / 0.5825 GB, free: 11.4 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3875, allocations: 15.97 kB / 0.5825 GB, free: 11.38 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01125/0.3988, allocations: 2.579 MB / 0.585 GB, free: 8.793 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007811/0.4066, allocations: 3.883 MB / 0.5888 GB, free: 4.855 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002349/0.4069, allocations: 300.2 kB / 0.5891 GB, free: 4.562 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001374/0.4083, allocations: 431.8 kB / 0.5895 GB, free: 4.141 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01979/0.4281, allocations: 11.73 MB / 0.601 GB, free: 7.66 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001483/0.4283, allocations: 59.44 kB / 0.601 GB, free: 7.602 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005167/0.4288, allocations: 187.8 kB / 0.6012 GB, free: 7.418 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003278/0.4321, allocations: 2.089 MB / 0.6032 GB, free: 5.32 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01777/0.4499, allocations: 10.09 MB / 0.6131 GB, free: 11.21 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0502/0.5001, allocations: 45.75 MB / 0.6578 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01034/0.5105, allocations: 4.37 MB / 0.662 GB, free: 7.551 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00289/0.5134, allocations: 2.467 MB / 0.6644 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01342/0.5269, allocations: 9.855 MB / 0.6741 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.5269, allocations: 51.56 kB / 0.6741 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 4.067e-06/0.5269, allocations: 0 / 0.6741 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.05408/0.581, allocations: 19.96 MB / 0.6936 GB, free: 6.91 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.5812, allocations: 201.2 kB / 0.6938 GB, free: 6.668 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006882/0.5881, allocations: 4.717 MB / 0.6984 GB, free: 1.941 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003526/0.5884, allocations: 49.7 kB / 0.6984 GB, free: 1.887 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002531/0.591, allocations: 3.599 MB / 0.702 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001079/0.5921, allocations: 0.7637 MB / 0.7027 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002331/0.5944, allocations: 1.344 MB / 0.704 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.193e-05/0.5945, allocations: 305.1 kB / 0.7043 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00353/0.5981, allocations: 2.414 MB / 0.7067 GB, free: 9.387 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005817/0.6039, allocations: 6.267 MB / 0.7128 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009823/0.6137, allocations: 9.326 MB / 0.7219 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/0.6139, allocations: 40 kB / 0.7219 GB, free: 5.949 MB / 0.5762 GB Notification: Performance of matching and sorting (n=858) (initialization): time 0.2502/0.864, allocations: 9.788 MB / 0.7315 GB, free: 176.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001208/0.8642, allocations: 62.59 kB / 0.7316 GB, free: 176.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002947/0.8645, allocations: 136.2 kB / 0.7317 GB, free: 176.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004996/0.8695, allocations: 1.613 MB / 0.7333 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00461/0.8742, allocations: 1.491 MB / 0.7347 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0112/0.8854, allocations: 10.27 MB / 0.7447 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004615/0.89, allocations: 367.2 kB / 0.7451 GB, free: 171.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008605/0.8909, allocations: 392.2 kB / 0.7455 GB, free: 171.1 MB / 0.5762 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.003087/0.894, allocations: 2.48 MB / 0.7479 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005398/0.8945, allocations: 404.6 kB / 0.7483 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006594/0.9011, allocations: 4.244 MB / 0.7524 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-05/0.9012, allocations: 23.16 kB / 0.7524 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.9012, allocations: 7.812 kB / 0.7524 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.9012, allocations: 7.781 kB / 0.7525 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/0.9145, allocations: 9.721 MB / 0.7619 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/0.9145, allocations: 0 / 0.7619 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001329/0.9158, allocations: 295.9 kB / 0.7622 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003472/0.9193, allocations: 1.358 MB / 0.7636 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002007/0.9195, allocations: 30.97 kB / 0.7636 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008775/0.9283, allocations: 9.398 MB / 0.7728 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.9284, allocations: 3.938 kB / 0.7728 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008678/0.937, allocations: 6.973 MB / 0.7796 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009415/0.938, allocations: 458.8 kB / 0.78 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005289/0.9386, allocations: 31.98 kB / 0.78 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/0.94, allocations: 119.8 kB / 0.7802 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003328/0.9404, allocations: 117.1 kB / 0.7803 GB, free: 147 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.9405, allocations: 59.34 kB / 0.7803 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003319/0.9438, allocations: 2.964 MB / 0.7832 GB, free: 143.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9439, allocations: 0 / 0.7832 GB, free: 143.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004849/0.9487, allocations: 1.208 MB / 0.7844 GB, free: 142.7 MB / 0.5762 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.000469/0.9492, allocations: 172.8 kB / 0.7846 GB, free: 142.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007341/0.9565, allocations: 5.972 MB / 0.7904 GB, free: 136.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.9566, allocations: 2.734 kB / 0.7904 GB, free: 136.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002398/0.959, allocations: 2.015 MB / 0.7924 GB, free: 134.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.9618, allocations: 0.5546 MB / 0.7929 GB, free: 134 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/0.9768, allocations: 11.61 MB / 0.8042 GB, free: 122.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003144/0.98, allocations: 3.836 MB / 0.808 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001011/0.9811, allocations: 315.4 kB / 0.8083 GB, free: 118.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.092e-06/0.9811, allocations: 0 / 0.8083 GB, free: 118.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.0996/1.081, allocations: 113.7 MB / 0.9193 GB, free: 4.531 MB / 0.5762 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/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