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.001363/0.001362, allocations: 103.3 kB / 18.4 MB, free: 4.57 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.001336/0.001336, allocations: 188 kB / 19.34 MB, free: 3.641 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.355/1.355, allocations: 222.9 MB / 243 MB, free: 15.14 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.2074/0.2074, allocations: 44.18 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001287, allocations: 70.36 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1561, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.0165/0.1727, allocations: 13.61 MB / 484.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.1853, allocations: 4.547 MB / 488.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003319/0.1887, allocations: 95.69 kB / 489 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008115/0.1968, allocations: 4.209 MB / 493.2 MB, free: 7.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006631/0.2035, allocations: 2.182 MB / 495.4 MB, free: 4.902 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002589/0.2062, allocations: 0.9281 MB / 496.3 MB, free: 3.973 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009153/0.2153, allocations: 6.069 MB / 0.4906 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00665/0.222, allocations: 5.227 MB / 0.4957 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004135/0.2262, allocations: 2.134 MB / 0.4978 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004944/0.2311, allocations: 2.827 MB / 0.5005 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001829/0.233, allocations: 476 kB / 0.501 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003755/0.2368, allocations: 1.346 MB / 0.5023 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2498/0.4866, allocations: 2.533 MB / 0.5048 GB, free: 21.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007985/0.4947, allocations: 2.884 MB / 0.5076 GB, free: 20.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01874/0.5135, allocations: 9.177 MB / 0.5166 GB, free: 19.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.5135, allocations: 0 / 0.5166 GB, free: 19.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5135, allocations: 0 / 0.5166 GB, free: 19.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004253/0.514, allocations: 0.7188 kB / 0.5166 GB, free: 19.23 MB / 382.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.0232/0.5372, allocations: 6.149 MB / 0.5226 GB, free: 16.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.5372, allocations: 9.656 kB / 0.5226 GB, free: 16.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.012/0.5492, allocations: 2.585 MB / 0.5251 GB, free: 16.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01142/0.5607, allocations: 3.865 MB / 0.5289 GB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003997/0.5611, allocations: 306.2 kB / 0.5292 GB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002861/0.564, allocations: 436.1 kB / 0.5296 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02346/0.5875, allocations: 11.73 MB / 0.541 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002019/0.5877, allocations: 48.09 kB / 0.5411 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006883/0.5884, allocations: 188.4 kB / 0.5413 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002965/0.5914, allocations: 2.098 MB / 0.5433 GB, free: 6.902 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01902/0.6104, allocations: 10.09 MB / 0.5532 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06523/0.6757, allocations: 45.76 MB / 0.5978 GB, free: 15.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/0.6868, allocations: 4.37 MB / 0.6021 GB, free: 11.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003951/0.6908, allocations: 2.471 MB / 0.6045 GB, free: 8.691 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01723/0.7081, allocations: 9.859 MB / 0.6142 GB, free: 14.73 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.657e-05/0.7082, allocations: 51.56 kB / 0.6142 GB, free: 14.67 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 5.029e-06/0.7082, allocations: 0 / 0.6142 GB, free: 14.67 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.05483/0.763, allocations: 19.96 MB / 0.6337 GB, free: 10.65 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.7632, allocations: 197.2 kB / 0.6339 GB, free: 10.41 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007926/0.7711, allocations: 4.709 MB / 0.6385 GB, free: 5.695 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000714/0.7718, allocations: 53.7 kB / 0.6385 GB, free: 5.637 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003264/0.7751, allocations: 3.595 MB / 0.642 GB, free: 2.043 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001216/0.7763, allocations: 0.7635 MB / 0.6428 GB, free: 1.285 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001966/0.7783, allocations: 1.347 MB / 0.6441 GB, free: 15.94 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.7784, allocations: 305.1 kB / 0.6444 GB, free: 15.64 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00341/0.7818, allocations: 2.413 MB / 0.6468 GB, free: 13.23 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005729/0.7876, allocations: 6.267 MB / 0.6529 GB, free: 5.117 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/0.7983, allocations: 9.325 MB / 0.662 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001053/0.7985, allocations: 40 kB / 0.662 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01803/0.8165, allocations: 9.798 MB / 0.6716 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.8166, allocations: 64 kB / 0.6716 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001738/0.8168, allocations: 139.8 kB / 0.6718 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004841/0.8217, allocations: 1.62 MB / 0.6734 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005588/0.8273, allocations: 1.486 MB / 0.6748 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01425/0.8416, allocations: 10.25 MB / 0.6848 GB, free: 3.141 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006381/0.848, allocations: 363.4 kB / 0.6852 GB, free: 2.785 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002054/0.8501, allocations: 395.1 kB / 0.6855 GB, free: 2.402 MB / 0.5137 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.008713/0.8588, allocations: 2.482 MB / 0.688 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001783/0.8606, allocations: 406.8 kB / 0.6884 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01015/0.8708, allocations: 4.243 MB / 0.6925 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.233e-05/0.8708, allocations: 20 kB / 0.6925 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.163e-05/0.8709, allocations: 8 kB / 0.6925 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.631e-05/0.8709, allocations: 7.969 kB / 0.6925 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0234/0.8943, allocations: 9.721 MB / 0.702 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.748e-05/0.8944, allocations: 0 / 0.702 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001482/0.8958, allocations: 303.5 kB / 0.7023 GB, free: 1.148 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2721/1.168, allocations: 1.352 MB / 0.7036 GB, free: 185.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006359/1.169, allocations: 36.45 kB / 0.7037 GB, free: 185.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0152/1.184, allocations: 9.386 MB / 0.7128 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/1.184, allocations: 5.969 kB / 0.7128 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01101/1.195, allocations: 6.969 MB / 0.7196 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/1.197, allocations: 457.1 kB / 0.7201 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005857/1.197, allocations: 31.88 kB / 0.7201 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/1.199, allocations: 121.2 kB / 0.7202 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004775/1.199, allocations: 122.2 kB / 0.7203 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/1.199, allocations: 53.42 kB / 0.7204 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004899/1.204, allocations: 2.97 MB / 0.7233 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.61e-07/1.204, allocations: 0 / 0.7233 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006253/1.211, allocations: 1.201 MB / 0.7245 GB, free: 178.3 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.0004652/1.211, allocations: 165.5 kB / 0.7246 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008585/1.22, allocations: 5.991 MB / 0.7305 GB, free: 176 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/1.22, allocations: 0 / 0.7305 GB, free: 176 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002788/1.223, allocations: 2.012 MB / 0.7324 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004938/1.227, allocations: 0.5513 MB / 0.733 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02414/1.252, allocations: 11.11 MB / 0.7438 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007411/1.259, allocations: 3.86 MB / 0.7476 GB, free: 162.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005038/1.264, allocations: 1.995 MB / 0.7496 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00112/1.265, allocations: 271.4 kB / 0.7498 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of SimCode: time 9.82e-07/1.265, allocations: 0 / 0.7498 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.07733/1.343, allocations: 39.96 MB / 0.7888 GB, free: 121.1 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 -s cvode -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