Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001513/0.001513, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.352/1.352, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001049/0.001049, allocations: 50.84 kB / 300.6 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1096, allocations: 49.46 MB / 350.1 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01755/0.1272, allocations: 13.56 MB / 363.6 MB, free: 6.789 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.1372, allocations: 4.552 MB / 368.2 MB, free: 2.223 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002677/0.1399, allocations: 99.56 kB / 368.3 MB, free: 2.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2108/0.3508, allocations: 4.187 MB / 372.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007178/0.358, allocations: 2.188 MB / 374.7 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002384/0.3604, allocations: 0.927 MB / 375.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009763/0.3702, allocations: 6.059 MB / 381.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00719/0.3775, allocations: 5.232 MB / 386.9 MB, free: 7.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003933/0.3814, allocations: 2.13 MB / 389 MB, free: 6.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004437/0.3859, allocations: 2.813 MB / 391.8 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00188/0.3878, allocations: 474.3 kB / 392.3 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00466/0.3925, allocations: 1.369 MB / 393.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003545/0.396, allocations: 2.538 MB / 396.2 MB, free: 3.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005928/0.402, allocations: 2.883 MB / 399.1 MB, free: 360 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01205/0.414, allocations: 8.93 MB / 408 MB, free: 7.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.798e-06/0.4141, allocations: 4 kB / 408 MB, free: 7.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.4141, allocations: 0 / 408 MB, free: 7.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002989/0.4144, allocations: 0.75 kB / 408 MB, free: 7.609 MB / 318.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.01448/0.4289, allocations: 6.133 MB / 414.1 MB, free: 1.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.429, allocations: 11.89 kB / 414.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01185/0.4408, allocations: 2.583 MB / 416.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008984/0.4499, allocations: 3.804 MB / 420.5 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002651/0.4502, allocations: 310.7 kB / 420.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001587/0.4518, allocations: 424.7 kB / 421.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0196/0.4714, allocations: 11.73 MB / 433 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001369/0.4716, allocations: 54.5 kB / 433 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004867/0.4721, allocations: 193.8 kB / 433.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003351/0.4754, allocations: 2.09 MB / 435.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01898/0.4944, allocations: 10.08 MB / 445.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05473/0.5492, allocations: 45.96 MB / 491.4 MB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01092/0.5602, allocations: 4.374 MB / 495.7 MB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003184/0.5634, allocations: 2.471 MB / 498.2 MB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01474/0.5781, allocations: 9.855 MB / 0.4962 GB, free: 1.625 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.419e-05/0.5782, allocations: 51.56 kB / 0.4962 GB, free: 1.562 MB / 414.1 MB Notification: Performance of pre-optimization done (n=171): time 3.466e-06/0.5782, allocations: 0 / 0.4962 GB, free: 1.562 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.05816/0.6364, allocations: 19.95 MB / 0.5157 GB, free: 13.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.6365, allocations: 205.2 kB / 0.5159 GB, free: 13.26 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007718/0.6443, allocations: 4.705 MB / 0.5205 GB, free: 8.543 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003404/0.6446, allocations: 57.7 kB / 0.5205 GB, free: 8.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002665/0.6473, allocations: 3.595 MB / 0.524 GB, free: 4.887 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001071/0.6484, allocations: 0.7643 MB / 0.5248 GB, free: 4.129 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00238/0.6508, allocations: 1.34 MB / 0.5261 GB, free: 2.777 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.6509, allocations: 309.1 kB / 0.5264 GB, free: 2.473 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003585/0.6545, allocations: 2.406 MB / 0.5287 GB, free: 64 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1758/0.8303, allocations: 6.273 MB / 0.5349 GB, free: 141 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/0.8404, allocations: 9.322 MB / 0.544 GB, free: 133.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001422/0.8406, allocations: 38.16 kB / 0.544 GB, free: 133.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01857/0.8592, allocations: 9.797 MB / 0.5536 GB, free: 130 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.61e-05/0.8593, allocations: 62.94 kB / 0.5536 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001353/0.8595, allocations: 134.4 kB / 0.5538 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004184/0.8636, allocations: 1.618 MB / 0.5553 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005075/0.8687, allocations: 1.489 MB / 0.5568 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/0.8796, allocations: 10.26 MB / 0.5668 GB, free: 123.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004805/0.8844, allocations: 357.8 kB / 0.5672 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008789/0.8853, allocations: 394.3 kB / 0.5675 GB, free: 123.6 MB / 446.1 MB 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.003254/0.8886, allocations: 2.486 MB / 0.57 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006007/0.8892, allocations: 410.5 kB / 0.5704 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006656/0.8959, allocations: 4.23 MB / 0.5745 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-05/0.8959, allocations: 33 kB / 0.5745 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.8959, allocations: 4 kB / 0.5745 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.896, allocations: 12.48 kB / 0.5745 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01306/0.909, allocations: 9.763 MB / 0.5841 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.909, allocations: 7.938 kB / 0.5841 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/0.9104, allocations: 295.6 kB / 0.5844 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003551/0.9139, allocations: 1.36 MB / 0.5857 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001787/0.9141, allocations: 40.3 kB / 0.5857 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00925/0.9234, allocations: 9.395 MB / 0.5949 GB, free: 98.42 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.9234, allocations: 0 / 0.5949 GB, free: 98.42 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009786/0.9332, allocations: 6.967 MB / 0.6017 GB, free: 91.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/0.9349, allocations: 459.7 kB / 0.6021 GB, free: 91.08 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006915/0.9356, allocations: 28 kB / 0.6022 GB, free: 91.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.9372, allocations: 123.8 kB / 0.6023 GB, free: 90.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004123/0.9376, allocations: 117.1 kB / 0.6024 GB, free: 90.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.9377, allocations: 59.5 kB / 0.6025 GB, free: 90.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003871/0.9416, allocations: 2.968 MB / 0.6054 GB, free: 87.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.9416, allocations: 0 / 0.6054 GB, free: 87.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005733/0.9473, allocations: 1.203 MB / 0.6065 GB, free: 86.6 MB / 446.1 MB 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.0004098/0.9478, allocations: 173.1 kB / 0.6067 GB, free: 86.42 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01007/0.9578, allocations: 7.025 MB / 0.6136 GB, free: 79.42 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.9579, allocations: 4 kB / 0.6136 GB, free: 79.41 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002528/0.9604, allocations: 2.011 MB / 0.6155 GB, free: 77.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002934/0.9634, allocations: 0.5376 MB / 0.6161 GB, free: 76.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01497/0.9783, allocations: 11.27 MB / 0.6271 GB, free: 65.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003144/0.9815, allocations: 3.86 MB / 0.6308 GB, free: 61.67 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00429/0.9858, allocations: 1.989 MB / 0.6328 GB, free: 59.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006977/0.9865, allocations: 271.4 kB / 0.633 GB, free: 59.41 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.9865, allocations: 0 / 0.633 GB, free: 59.41 MB / 446.1 MB Notification: Performance of Templates: time 0.06721/1.054, allocations: 45.51 MB / 0.6775 GB, free: 14.15 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches