Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.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_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") translateModel(ModelicaTest.MultiBody.Joints.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_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001612/0.001617, allocations: 186.3 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.026/2.026, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2843/0.2843, allocations: 43.56 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000477/0.0004771, allocations: 19.98 kB / 431.4 MB, free: 20.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1163, allocations: 58.85 MB / 490.2 MB, free: 9.344 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.4339/0.5503, allocations: 70.42 MB / 0.5475 GB, free: 8.688 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04666/0.5971, allocations: 15.96 MB / 0.5631 GB, free: 13.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0203/0.6174, allocations: 353.9 kB / 0.5634 GB, free: 13.9 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01431/0.6318, allocations: 3.595 MB / 0.5669 GB, free: 11.3 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04259/0.6744, allocations: 10.15 MB / 0.5769 GB, free: 3.652 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006305/0.6808, allocations: 0.7886 MB / 0.5776 GB, free: 2.863 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.07551/0.7563, allocations: 28.05 MB / 0.605 GB, free: 6.789 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01695/0.7733, allocations: 7.809 MB / 0.6126 GB, free: 14.92 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005279/0.7787, allocations: 1.989 MB / 0.6146 GB, free: 12.92 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006003/0.7847, allocations: 2.655 MB / 0.6172 GB, free: 10.26 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001936/0.7867, allocations: 288 kB / 0.6174 GB, free: 9.977 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004158/0.7909, allocations: 0.9911 MB / 0.6184 GB, free: 8.984 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00563/0.7966, allocations: 3.094 MB / 0.6214 GB, free: 5.883 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00348/0.8001, allocations: 1.645 MB / 0.623 GB, free: 4.227 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01882/0.819, allocations: 10.97 MB / 0.6338 GB, free: 9.23 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.8191, allocations: 0 / 0.6338 GB, free: 9.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.8191, allocations: 0 / 0.6338 GB, free: 9.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005021/0.8196, allocations: 0 / 0.6338 GB, free: 9.23 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.02713/0.8467, allocations: 7.74 MB / 0.6413 GB, free: 1.402 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.8468, allocations: 8.031 kB / 0.6413 GB, free: 1.395 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1095/0.9563, allocations: 11.53 MB / 0.6526 GB, free: 5.84 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01847/0.9749, allocations: 5.369 MB / 0.6578 GB, free: 396 kB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007333/0.9756, allocations: 451.5 kB / 0.6582 GB, free: 15.95 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003346/0.979, allocations: 0.5855 MB / 0.6588 GB, free: 15.36 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06049/1.04, allocations: 20.54 MB / 0.6789 GB, free: 9.754 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000436/1.04, allocations: 67.41 kB / 0.6789 GB, free: 9.688 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003252/1.043, allocations: 287.7 kB / 0.6792 GB, free: 9.406 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01298/1.056, allocations: 4.349 MB / 0.6835 GB, free: 5.055 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05952/1.116, allocations: 18.14 MB / 0.7012 GB, free: 2.898 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7936/1.91, allocations: 75.21 MB / 0.7746 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02712/1.937, allocations: 8.135 MB / 0.7826 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005657/1.937, allocations: 64.75 kB / 0.7826 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.679e-05/1.937, allocations: 81.22 kB / 0.7827 GB, free: 125 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=450): time 1.033e-05/1.937, allocations: 0 / 0.7827 GB, free: 125 MB / 0.5105 GB Notification: Performance of matching and sorting (n=497): time 0.1651/2.103, allocations: 42.72 MB / 0.8244 GB, free: 90.47 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/2.103, allocations: 234.9 kB / 0.8246 GB, free: 90.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0126/2.115, allocations: 6.74 MB / 0.8312 GB, free: 83.46 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001215/2.117, allocations: 100.2 kB / 0.8313 GB, free: 83.36 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004177/2.121, allocations: 5.53 MB / 0.8367 GB, free: 77.83 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002788/2.124, allocations: 1.804 MB / 0.8385 GB, free: 76.04 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00124/2.125, allocations: 221.7 kB / 0.8387 GB, free: 75.83 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007512/2.126, allocations: 0.7981 MB / 0.8395 GB, free: 75.02 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01169/2.137, allocations: 4.941 MB / 0.8443 GB, free: 70.07 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0157/2.153, allocations: 11.07 MB / 0.8551 GB, free: 56.06 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01636/2.17, allocations: 7.366 MB / 0.8623 GB, free: 48.69 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001732/2.17, allocations: 60 kB / 0.8624 GB, free: 48.63 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.04494/2.215, allocations: 17.07 MB / 0.879 GB, free: 31.53 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001421/2.215, allocations: 100.1 kB / 0.8791 GB, free: 31.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002855/2.215, allocations: 212 kB / 0.8793 GB, free: 31.23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008126/2.223, allocations: 1.857 MB / 0.8811 GB, free: 29.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01629/2.24, allocations: 2.593 MB / 0.8837 GB, free: 26.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02515/2.265, allocations: 15.04 MB / 0.8984 GB, free: 11.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0115/2.277, allocations: 0.6646 MB / 0.899 GB, free: 10.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002387/2.279, allocations: 0.6262 MB / 0.8996 GB, free: 9.898 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 51 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1360): * Single equations (assignments): 1347 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01075/2.29, allocations: 4.196 MB / 0.9037 GB, free: 5.695 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001588/2.291, allocations: 0.6131 MB / 0.9043 GB, free: 5.074 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.029/2.32, allocations: 9.835 MB / 0.9139 GB, free: 11.18 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002072/2.321, allocations: 86.06 kB / 0.914 GB, free: 11.1 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.833e-05/2.321, allocations: 15.98 kB / 0.914 GB, free: 11.09 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001293/2.321, allocations: 19.92 kB / 0.914 GB, free: 11.07 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4252/2.746, allocations: 21.93 MB / 0.9355 GB, free: 173.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.892e-05/2.746, allocations: 11.86 kB / 0.9355 GB, free: 173.2 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007879/2.754, allocations: 0.79 MB / 0.9362 GB, free: 173.1 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007867/2.762, allocations: 1.509 MB / 0.9377 GB, free: 172.8 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00123/2.763, allocations: 91.75 kB / 0.9378 GB, free: 172.7 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02469/2.788, allocations: 14.04 MB / 0.9515 GB, free: 163.9 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.718e-05/2.788, allocations: 19.89 kB / 0.9515 GB, free: 163.9 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03854/2.827, allocations: 17.52 MB / 0.9686 GB, free: 155.7 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005343/2.832, allocations: 1.41 MB / 0.97 GB, free: 155.3 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002203/2.834, allocations: 85.45 kB / 0.9701 GB, free: 155.3 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006502/2.841, allocations: 307.8 kB / 0.9704 GB, free: 155.2 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001974/2.843, allocations: 293.7 kB / 0.9707 GB, free: 155.2 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007164/2.844, allocations: 134.3 kB / 0.9708 GB, free: 155.1 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01021/2.854, allocations: 4.229 MB / 0.9749 GB, free: 152.8 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.923e-06/2.854, allocations: 7.938 kB / 0.9749 GB, free: 152.8 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01334/2.867, allocations: 2.063 MB / 0.977 GB, free: 150.7 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (381): * Single equations (assignments): 368 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001811/2.869, allocations: 273.8 kB / 0.9772 GB, free: 150.5 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.02731/2.896, allocations: 12.21 MB / 0.9891 GB, free: 139.7 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/2.896, allocations: 4 kB / 0.9891 GB, free: 139.7 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.01191/2.908, allocations: 4.962 MB / 0.994 GB, free: 135.1 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00642/2.915, allocations: 0.7274 MB / 0.9947 GB, free: 134.4 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0558/2.971, allocations: 24.96 MB / 1.019 GB, free: 109.4 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01276/2.983, allocations: 6.277 MB / 1.025 GB, free: 103.1 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004179/2.988, allocations: 0.5345 MB / 1.026 GB, free: 102.6 MB / 0.5262 GB Notification: Performance of SimCode: time 1.884e-06/2.988, allocations: 0 / 1.026 GB, free: 102.6 MB / 0.5262 GB Notification: Performance of Templates: time 0.7851/3.773, allocations: 258.5 MB / 1.278 GB, free: 19.04 MB / 0.5262 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches