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.001049/0.001049, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.23/0.23, allocations: 46.1 MB / 344.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 71.02 kB / 419 MB, free: 18.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1091, allocations: 62.46 MB / 481.5 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01372/0.1229, allocations: 13.48 MB / 495 MB, free: 6.957 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008934/0.1319, allocations: 4.555 MB / 499.5 MB, free: 2.387 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00184/0.1337, allocations: 95.69 kB / 499.6 MB, free: 2.293 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007334/0.1411, allocations: 4.182 MB / 0.492 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005278/0.1464, allocations: 2.128 MB / 0.4941 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002068/0.1485, allocations: 0.932 MB / 0.495 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008492/0.157, allocations: 6.117 MB / 0.5009 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2184/0.3754, allocations: 5.199 MB / 0.506 GB, free: 15.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005001/0.3804, allocations: 2.117 MB / 0.5081 GB, free: 15.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005993/0.3865, allocations: 2.793 MB / 0.5108 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002329/0.3888, allocations: 474.4 kB / 0.5113 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004086/0.3929, allocations: 1.338 MB / 0.5126 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004181/0.3971, allocations: 2.49 MB / 0.515 GB, free: 14.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006046/0.4032, allocations: 2.838 MB / 0.5178 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01111/0.4143, allocations: 9.027 MB / 0.5266 GB, free: 11.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.4144, allocations: 2.156 kB / 0.5266 GB, free: 11.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4144, allocations: 0 / 0.5266 GB, free: 11.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000284/0.4147, allocations: 1.5 kB / 0.5266 GB, free: 11.52 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: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01476/0.4294, allocations: 6.077 MB / 0.5325 GB, free: 7.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.4295, allocations: 9.156 kB / 0.5325 GB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0107/0.4402, allocations: 2.583 MB / 0.5351 GB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008844/0.4491, allocations: 3.803 MB / 0.5388 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/0.4493, allocations: 304.2 kB / 0.5391 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001474/0.4508, allocations: 436.1 kB / 0.5395 GB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01906/0.4698, allocations: 11.54 MB / 0.5507 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001518/0.47, allocations: 51.88 kB / 0.5508 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005089/0.4705, allocations: 192.7 kB / 0.551 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003152/0.4737, allocations: 2.024 MB / 0.553 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01813/0.4918, allocations: 9.943 MB / 0.5627 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06051/0.5524, allocations: 45.34 MB / 0.6069 GB, free: 1.207 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01066/0.5631, allocations: 4.365 MB / 0.6112 GB, free: 12.7 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003262/0.5664, allocations: 2.474 MB / 0.6136 GB, free: 10.22 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01534/0.5817, allocations: 9.849 MB / 0.6232 GB, free: 264 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.5818, allocations: 50.19 kB / 0.6233 GB, free: 208 kB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.329e-06/0.5818, allocations: 4 kB / 0.6233 GB, free: 204 kB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.05044/0.6323, allocations: 19.91 MB / 0.6427 GB, free: 12.23 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.6324, allocations: 205.2 kB / 0.6429 GB, free: 11.99 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006585/0.639, allocations: 4.684 MB / 0.6475 GB, free: 7.301 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004352/0.6395, allocations: 57.7 kB / 0.6476 GB, free: 7.238 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002214/0.6417, allocations: 3.558 MB / 0.651 GB, free: 3.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008042/0.6425, allocations: 0.7683 MB / 0.6518 GB, free: 2.918 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001653/0.6442, allocations: 1.329 MB / 0.6531 GB, free: 1.578 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.457e-05/0.6442, allocations: 305.1 kB / 0.6534 GB, free: 1.277 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00325/0.6475, allocations: 2.406 MB / 0.6557 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005551/0.6531, allocations: 6.251 MB / 0.6618 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/0.6643, allocations: 9.288 MB / 0.6709 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001145/0.6645, allocations: 43.75 kB / 0.6709 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01981/0.6843, allocations: 9.769 MB / 0.6805 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.238e-05/0.6844, allocations: 68.06 kB / 0.6805 GB, free: 2.277 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001625/0.6846, allocations: 136 kB / 0.6807 GB, free: 2.145 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004281/0.6889, allocations: 1.612 MB / 0.6822 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004856/0.6937, allocations: 1.478 MB / 0.6837 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01246/0.7062, allocations: 10.25 MB / 0.6937 GB, free: 4.516 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00507/0.7113, allocations: 365.2 kB / 0.694 GB, free: 4.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/0.7125, allocations: 392 kB / 0.6944 GB, free: 3.777 MB / 0.5294 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.004578/0.7171, allocations: 2.454 MB / 0.6968 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008039/0.7179, allocations: 402.8 kB / 0.6972 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007705/0.7257, allocations: 4.235 MB / 0.7013 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.822e-05/0.7257, allocations: 30.09 kB / 0.7014 GB, free: 12.63 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/0.7257, allocations: 8 kB / 0.7014 GB, free: 12.62 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-05/0.7258, allocations: 11.91 kB / 0.7014 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01923/0.745, allocations: 9.668 MB / 0.7108 GB, free: 2.898 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.745, allocations: 0 / 0.7108 GB, free: 2.898 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001461/0.7465, allocations: 307.6 kB / 0.7111 GB, free: 2.598 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003919/0.7504, allocations: 1.36 MB / 0.7125 GB, free: 1.23 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001875/0.7506, allocations: 34.66 kB / 0.7125 GB, free: 1.199 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2096/0.9602, allocations: 9.379 MB / 0.7216 GB, free: 187.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.9603, allocations: 3.969 kB / 0.7216 GB, free: 187.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01134/0.9716, allocations: 6.966 MB / 0.7284 GB, free: 185.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001203/0.9728, allocations: 452 kB / 0.7289 GB, free: 185.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004425/0.9733, allocations: 34.78 kB / 0.7289 GB, free: 185.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.9748, allocations: 116.5 kB / 0.729 GB, free: 185 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004676/0.9753, allocations: 124.6 kB / 0.7291 GB, free: 185 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001706/0.9754, allocations: 52.42 kB / 0.7292 GB, free: 185 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005668/0.9811, allocations: 2.959 MB / 0.7321 GB, free: 184 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.464e-06/0.9811, allocations: 0 / 0.7321 GB, free: 184 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005539/0.9867, allocations: 1.185 MB / 0.7332 GB, free: 183.9 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.0004536/0.9872, allocations: 167.3 kB / 0.7334 GB, free: 183.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007661/0.9948, allocations: 5.978 MB / 0.7392 GB, free: 181.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.9949, allocations: 3.812 kB / 0.7392 GB, free: 181.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002656/0.9975, allocations: 2.008 MB / 0.7412 GB, free: 180.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002958/1, allocations: 0.5397 MB / 0.7417 GB, free: 180.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01701/1.018, allocations: 11.03 MB / 0.7525 GB, free: 173.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003732/1.021, allocations: 3.822 MB / 0.7562 GB, free: 170.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00388/1.025, allocations: 1.978 MB / 0.7582 GB, free: 169.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007547/1.026, allocations: 267.1 kB / 0.7584 GB, free: 169.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.322e-06/1.026, allocations: 2.953 kB / 0.7584 GB, free: 169.2 MB / 0.545 GB Notification: Performance of Templates: time 0.06679/1.093, allocations: 39.7 MB / 0.7972 GB, free: 131 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 -s gbode -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/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_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches