Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001469/0.001469, allocations: 100.6 kB / 16.94 MB, free: 6.184 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.001664/0.001664, allocations: 191.4 kB / 17.86 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2156/0.2156, allocations: 43.52 MB / 314.6 MB, free: 0.5234 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001686, allocations: 69.72 kB / 383.4 MB, free: 56.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09258/0.09428, allocations: 57.8 MB / 441.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01374/0.1081, allocations: 14.26 MB / 455.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009673/0.1178, allocations: 4.657 MB / 460.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00257/0.1204, allocations: 91.75 kB / 460.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007843/0.1282, allocations: 4.229 MB / 464.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006155/0.1345, allocations: 2.26 MB / 466.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002294/0.1368, allocations: 0.9282 MB / 467.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008217/0.145, allocations: 5.894 MB / 473.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006494/0.1516, allocations: 5.313 MB / 478.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003919/0.1555, allocations: 2.212 MB / 481 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004502/0.1601, allocations: 2.933 MB / 484 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00143/0.1615, allocations: 496 kB / 484.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002909/0.1644, allocations: 1.366 MB / 485.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002848/0.1673, allocations: 2.626 MB / 488.5 MB, free: 7.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004115/0.1714, allocations: 3.018 MB / 491.5 MB, free: 4.395 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009836/0.1813, allocations: 9.296 MB / 0.489 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.727e-06/0.1813, allocations: 4 kB / 0.489 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.1814, allocations: 4 kB / 0.489 GB, free: 11.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002777/0.1816, allocations: 3.938 kB / 0.489 GB, free: 11.06 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: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01555/0.1972, allocations: 6.338 MB / 0.4952 GB, free: 4.641 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.1973, allocations: 11.89 kB / 0.4952 GB, free: 4.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01297/0.2102, allocations: 2.61 MB / 0.4978 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01072/0.221, allocations: 3.977 MB / 0.5017 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003159/0.2214, allocations: 316.4 kB / 0.502 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001861/0.2232, allocations: 447.8 kB / 0.5024 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02451/0.2478, allocations: 12.23 MB / 0.5144 GB, free: 220 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001974/0.248, allocations: 63.42 kB / 0.5144 GB, free: 156 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008843/0.2489, allocations: 195.8 kB / 0.5146 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003949/0.2529, allocations: 2.199 MB / 0.5168 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02161/0.2745, allocations: 10.54 MB / 0.527 GB, free: 3.207 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2594/0.5339, allocations: 47.57 MB / 0.5735 GB, free: 49.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/0.5445, allocations: 4.594 MB / 0.578 GB, free: 47.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00307/0.5476, allocations: 2.644 MB / 0.5806 GB, free: 45.65 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01407/0.5617, allocations: 10.45 MB / 0.5908 GB, free: 36.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.5618, allocations: 63.69 kB / 0.5908 GB, free: 36.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=192): time 5.861e-06/0.5618, allocations: 0 / 0.5908 GB, free: 36.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=218): time 0.05162/0.6134, allocations: 20.96 MB / 0.6113 GB, free: 15.1 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.6135, allocations: 209.2 kB / 0.6115 GB, free: 14.85 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005386/0.6189, allocations: 4.831 MB / 0.6162 GB, free: 10.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000489/0.6195, allocations: 57.06 kB / 0.6163 GB, free: 9.957 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001684/0.6212, allocations: 3.718 MB / 0.6199 GB, free: 6.238 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008693/0.622, allocations: 0.8302 MB / 0.6207 GB, free: 5.414 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001547/0.6236, allocations: 1.394 MB / 0.6221 GB, free: 4.012 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.449e-05/0.6236, allocations: 301.1 kB / 0.6224 GB, free: 3.715 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003043/0.6267, allocations: 2.582 MB / 0.6249 GB, free: 1.129 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006705/0.6334, allocations: 6.551 MB / 0.6313 GB, free: 8.617 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01257/0.646, allocations: 9.815 MB / 0.6409 GB, free: 12.85 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001567/0.6463, allocations: 36 kB / 0.6409 GB, free: 12.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02157/0.6678, allocations: 10.28 MB / 0.6509 GB, free: 2.527 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002045/0.6681, allocations: 64 kB / 0.651 GB, free: 2.465 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003014/0.6684, allocations: 140 kB / 0.6511 GB, free: 2.328 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004963/0.6734, allocations: 1.623 MB / 0.6527 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005492/0.6789, allocations: 1.567 MB / 0.6543 GB, free: 15.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01428/0.6932, allocations: 10.27 MB / 0.6643 GB, free: 4.582 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005522/0.6988, allocations: 387.4 kB / 0.6646 GB, free: 4.203 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001297/0.7001, allocations: 408 kB / 0.665 GB, free: 3.805 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 45 (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 (834): * Single equations (assignments): 829 * 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.005188/0.7053, allocations: 2.58 MB / 0.6676 GB, free: 1.215 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001175/0.7065, allocations: 422.6 kB / 0.668 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01024/0.7168, allocations: 4.625 MB / 0.6725 GB, free: 12.15 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-05/0.7169, allocations: 24 kB / 0.6725 GB, free: 12.13 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.769e-05/0.7169, allocations: 8 kB / 0.6725 GB, free: 12.12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.625e-05/0.717, allocations: 7.969 kB / 0.6725 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02225/0.7392, allocations: 10.5 MB / 0.6828 GB, free: 1.543 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.272e-05/0.7393, allocations: 4.031 kB / 0.6828 GB, free: 1.539 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001916/0.7412, allocations: 343.5 kB / 0.6831 GB, free: 1.203 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004189/0.7454, allocations: 1.367 MB / 0.6844 GB, free: 15.83 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003623/0.7458, allocations: 39.92 kB / 0.6845 GB, free: 15.79 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01196/0.7578, allocations: 9.378 MB / 0.6936 GB, free: 6.133 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/0.7578, allocations: 3.938 kB / 0.6936 GB, free: 6.129 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01256/0.7704, allocations: 7.555 MB / 0.701 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002145/0.7726, allocations: 0.7806 MB / 0.7018 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008822/0.7735, allocations: 36 kB / 0.7018 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002096/0.7756, allocations: 131.8 kB / 0.7019 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004907/0.7761, allocations: 137.8 kB / 0.7021 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001864/0.7763, allocations: 55.94 kB / 0.7021 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005739/0.7821, allocations: 3.045 MB / 0.7051 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6.31e-07/0.7821, allocations: 0 / 0.7051 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007109/0.7892, allocations: 1.268 MB / 0.7063 GB, free: 9.078 MB / 0.4981 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 (169): * Single equations (assignments): 164 * 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.0007644/0.79, allocations: 165.5 kB / 0.7065 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01444/0.8045, allocations: 7.779 MB / 0.7141 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.8045, allocations: 0 / 0.7141 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004018/0.8085, allocations: 2.195 MB / 0.7162 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004728/0.8133, allocations: 0.5613 MB / 0.7168 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02551/0.8388, allocations: 12.37 MB / 0.7289 GB, free: 1.977 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2179/1.057, allocations: 3.976 MB / 0.7327 GB, free: 176.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001495/1.058, allocations: 338.3 kB / 0.7331 GB, free: 176.7 MB / 0.5137 GB Notification: Performance of SimCode: time 1.112e-06/1.058, allocations: 1.719 kB / 0.7331 GB, free: 176.7 MB / 0.5137 GB Notification: Performance of Templates: time 0.1335/1.192, allocations: 118.2 MB / 0.8485 GB, free: 79.52 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches