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.001134/0.001134, allocations: 113.7 kB / 17.74 MB, free: 5.43 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.00132/0.00132, allocations: 188 kB / 18.66 MB, free: 4.508 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.391/1.391, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2265/0.2265, allocations: 44.18 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 63.89 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4039/0.4054, allocations: 60.82 MB / 0.5188 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01549/0.4209, allocations: 13.62 MB / 0.5321 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01203/0.433, allocations: 4.541 MB / 0.5366 GB, free: 6.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004018/0.4371, allocations: 93.81 kB / 0.5367 GB, free: 6.227 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008264/0.4454, allocations: 4.202 MB / 0.5408 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009272/0.4547, allocations: 2.175 MB / 0.5429 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003061/0.4578, allocations: 0.9339 MB / 0.5438 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01064/0.4684, allocations: 6.072 MB / 0.5497 GB, free: 12.4 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006777/0.4753, allocations: 5.221 MB / 0.5548 GB, free: 7.113 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004584/0.4799, allocations: 2.138 MB / 0.5569 GB, free: 4.969 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004729/0.4846, allocations: 2.808 MB / 0.5597 GB, free: 2.152 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00168/0.4863, allocations: 476 kB / 0.5601 GB, free: 1.688 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003372/0.4897, allocations: 1.369 MB / 0.5615 GB, free: 324 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002918/0.4927, allocations: 2.533 MB / 0.5639 GB, free: 13.78 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003663/0.4964, allocations: 2.89 MB / 0.5668 GB, free: 10.87 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01122/0.5076, allocations: 9.173 MB / 0.5757 GB, free: 1.668 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.051e-05/0.5077, allocations: 3.984 kB / 0.5757 GB, free: 1.664 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.5077, allocations: 0 / 0.5757 GB, free: 1.664 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000336/0.508, allocations: 0 / 0.5757 GB, free: 1.664 MB / 430.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.0154/0.5234, allocations: 6.138 MB / 0.5817 GB, free: 11.45 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.5235, allocations: 11.97 kB / 0.5817 GB, free: 11.44 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01227/0.5358, allocations: 2.587 MB / 0.5843 GB, free: 8.844 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009265/0.5451, allocations: 3.871 MB / 0.588 GB, free: 4.918 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003088/0.5454, allocations: 304.2 kB / 0.5883 GB, free: 4.621 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001716/0.5472, allocations: 431.8 kB / 0.5887 GB, free: 4.199 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02188/0.569, allocations: 11.74 MB / 0.6002 GB, free: 7.719 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001588/0.5692, allocations: 59.44 kB / 0.6003 GB, free: 7.66 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000528/0.5698, allocations: 183.9 kB / 0.6004 GB, free: 7.48 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003555/0.5733, allocations: 2.085 MB / 0.6025 GB, free: 5.387 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02035/0.5937, allocations: 10.09 MB / 0.6123 GB, free: 11.28 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07167/0.6654, allocations: 45.76 MB / 0.657 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01573/0.6812, allocations: 4.37 MB / 0.6613 GB, free: 7.609 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003773/0.685, allocations: 2.474 MB / 0.6637 GB, free: 5.129 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02372/0.7088, allocations: 9.848 MB / 0.6733 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.961e-05/0.7089, allocations: 51.56 kB / 0.6734 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 8.306e-06/0.7089, allocations: 3.938 kB / 0.6734 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.07087/0.7798, allocations: 19.96 MB / 0.6929 GB, free: 6.961 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.78, allocations: 201.2 kB / 0.693 GB, free: 6.719 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008457/0.7884, allocations: 4.717 MB / 0.6977 GB, free: 1.992 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003996/0.7888, allocations: 53.7 kB / 0.6977 GB, free: 1.934 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002976/0.7918, allocations: 3.595 MB / 0.7012 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0013/0.7931, allocations: 0.7676 MB / 0.702 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002801/0.796, allocations: 1.34 MB / 0.7033 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.877e-05/0.7961, allocations: 305.1 kB / 0.7036 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004062/0.8001, allocations: 2.414 MB / 0.7059 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006789/0.8069, allocations: 6.267 MB / 0.712 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01181/0.8188, allocations: 9.321 MB / 0.7211 GB, free: 6.039 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001472/0.819, allocations: 44 kB / 0.7212 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of matching and sorting (n=858) (initialization): time 0.3456/1.165, allocations: 9.792 MB / 0.7308 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/1.165, allocations: 62 kB / 0.7308 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002114/1.165, allocations: 136.2 kB / 0.7309 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00469/1.17, allocations: 1.609 MB / 0.7325 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005107/1.175, allocations: 1.491 MB / 0.734 GB, free: 176.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01384/1.189, allocations: 10.26 MB / 0.744 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005641/1.194, allocations: 369.7 kB / 0.7443 GB, free: 171.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009316/1.195, allocations: 392.4 kB / 0.7447 GB, free: 171 MB / 0.5762 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.004113/1.199, allocations: 2.48 MB / 0.7471 GB, free: 170 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007492/1.2, allocations: 412.3 kB / 0.7475 GB, free: 170 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007116/1.207, allocations: 4.235 MB / 0.7517 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.807e-05/1.207, allocations: 19.47 kB / 0.7517 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/1.207, allocations: 7.906 kB / 0.7517 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/1.207, allocations: 11.53 kB / 0.7517 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01477/1.222, allocations: 9.722 MB / 0.7612 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.628e-05/1.222, allocations: 5.719 kB / 0.7612 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001407/1.224, allocations: 294.3 kB / 0.7615 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00367/1.227, allocations: 1.362 MB / 0.7628 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001893/1.227, allocations: 34.66 kB / 0.7628 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009369/1.237, allocations: 9.387 MB / 0.772 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/1.237, allocations: 3.938 kB / 0.772 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009733/1.247, allocations: 6.977 MB / 0.7788 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001475/1.248, allocations: 466.5 kB / 0.7793 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007729/1.249, allocations: 32 kB / 0.7793 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001886/1.251, allocations: 111.8 kB / 0.7794 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004459/1.251, allocations: 117.1 kB / 0.7795 GB, free: 147 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/1.251, allocations: 55.98 kB / 0.7796 GB, free: 147 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00423/1.256, allocations: 2.964 MB / 0.7825 GB, free: 144 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/1.256, allocations: 0 / 0.7825 GB, free: 144 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00717/1.263, allocations: 1.208 MB / 0.7836 GB, free: 142.8 MB / 0.5762 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.0006962/1.264, allocations: 165 kB / 0.7838 GB, free: 142.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01085/1.274, allocations: 5.978 MB / 0.7896 GB, free: 136.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/1.274, allocations: 4 kB / 0.7896 GB, free: 136.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003376/1.278, allocations: 2.019 MB / 0.7916 GB, free: 134.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005031/1.283, allocations: 0.5432 MB / 0.7921 GB, free: 134.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01788/1.301, allocations: 11.12 MB / 0.803 GB, free: 122.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004134/1.305, allocations: 3.864 MB / 0.8068 GB, free: 119 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004108/1.309, allocations: 1.988 MB / 0.8087 GB, free: 117 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008201/1.31, allocations: 267.4 kB / 0.809 GB, free: 116.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.272e-06/1.31, allocations: 4 kB / 0.809 GB, free: 116.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.07256/1.383, allocations: 39.98 MB / 0.848 GB, free: 77.14 MB / 0.5762 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/GearConstraint/GearConstraint.csv","/var/lib/jenkins/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