Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Bevel1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Bevel1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001602/0.001602, allocations: 119 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001988, allocations: 204.7 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2175/0.2175, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 71.89 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3757, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D): time 0.01633/0.3921, allocations: 13.42 MB / 0.5436 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.4038, allocations: 4.528 MB / 0.548 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003833/0.4077, allocations: 93.56 kB / 0.5481 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008175/0.4159, allocations: 4.183 MB / 0.5522 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006472/0.4224, allocations: 2.182 MB / 0.5544 GB, free: 9.312 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002546/0.425, allocations: 0.9243 MB / 0.5553 GB, free: 8.387 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009057/0.4341, allocations: 6.076 MB / 0.5612 GB, free: 2.297 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006632/0.4408, allocations: 5.169 MB / 0.5662 GB, free: 13.06 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004608/0.4454, allocations: 2.099 MB / 0.5683 GB, free: 10.96 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004637/0.4501, allocations: 2.804 MB / 0.571 GB, free: 8.145 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001678/0.4518, allocations: 468 kB / 0.5715 GB, free: 7.688 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003483/0.4553, allocations: 1.346 MB / 0.5728 GB, free: 6.34 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003551/0.4589, allocations: 2.521 MB / 0.5752 GB, free: 3.812 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005757/0.4647, allocations: 2.879 MB / 0.5781 GB, free: 0.918 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01351/0.4783, allocations: 9.177 MB / 0.587 GB, free: 7.703 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.4783, allocations: 0 / 0.587 GB, free: 7.703 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4784, allocations: 0 / 0.587 GB, free: 7.703 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004286/0.4788, allocations: 0 / 0.587 GB, free: 7.703 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1722 * Number of variables: 1722 Notification: Performance of Generate backend data structure: time 0.01893/0.4977, allocations: 6.406 MB / 0.5933 GB, free: 1.215 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.4978, allocations: 8.031 kB / 0.5933 GB, free: 1.207 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002655/0.5005, allocations: 0.8265 MB / 0.5941 GB, free: 380 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03945/0.54, allocations: 6.094 MB / 0.6 GB, free: 10.26 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0103/0.5503, allocations: 4.217 MB / 0.6042 GB, free: 5.992 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003073/0.5507, allocations: 304.1 kB / 0.6045 GB, free: 5.695 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00163/0.5523, allocations: 407.7 kB / 0.6048 GB, free: 5.297 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02121/0.5735, allocations: 11.15 MB / 0.6157 GB, free: 9.391 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001823/0.5738, allocations: 59.53 kB / 0.6158 GB, free: 9.332 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000649/0.5744, allocations: 187.9 kB / 0.616 GB, free: 9.148 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00328/0.5777, allocations: 2.022 MB / 0.6179 GB, free: 7.121 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01775/0.5955, allocations: 9.276 MB / 0.627 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05829/0.6538, allocations: 44.42 MB / 0.6704 GB, free: 52 kB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01033/0.6642, allocations: 4.025 MB / 0.6743 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00316/0.6674, allocations: 2.218 MB / 0.6765 GB, free: 9.645 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01589/0.6833, allocations: 8.968 MB / 0.6852 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.255e-05/0.6835, allocations: 51.55 kB / 0.6853 GB, free: 468 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=169): time 5.801e-06/0.6835, allocations: 0 / 0.6853 GB, free: 468 kB / 0.5294 GB Notification: Performance of matching and sorting (n=191): time 0.05291/0.7364, allocations: 18.15 MB / 0.703 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.7365, allocations: 197.2 kB / 0.7032 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007858/0.7444, allocations: 4.71 MB / 0.7078 GB, free: 9.254 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004258/0.7449, allocations: 57.64 kB / 0.7079 GB, free: 9.191 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003012/0.7479, allocations: 3.728 MB / 0.7115 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001244/0.7492, allocations: 0.7675 MB / 0.7122 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001994/0.7512, allocations: 1.266 MB / 0.7135 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.624e-05/0.7513, allocations: 305.1 kB / 0.7138 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003527/0.7549, allocations: 2.155 MB / 0.7159 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.275/1.03, allocations: 5.963 MB / 0.7217 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/1.04, allocations: 8.825 MB / 0.7303 GB, free: 151.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000287/1.041, allocations: 39.09 kB / 0.7304 GB, free: 151.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=807) (initialization): time 0.01832/1.059, allocations: 8.705 MB / 0.7389 GB, free: 148.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002151/1.059, allocations: 62.09 kB / 0.7389 GB, free: 148.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003155/1.06, allocations: 134.2 kB / 0.739 GB, free: 148.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00312/1.063, allocations: 1.06 MB / 0.7401 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004325/1.067, allocations: 1.407 MB / 0.7415 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009161/1.076, allocations: 8.579 MB / 0.7498 GB, free: 142.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00499/1.081, allocations: 335 kB / 0.7501 GB, free: 142.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00102/1.082, allocations: 390.6 kB / 0.7505 GB, free: 141.9 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 (747): * Single equations (assignments): 742 * 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,33,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004315/1.087, allocations: 2.444 MB / 0.7529 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009548/1.088, allocations: 434.9 kB / 0.7533 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005559/1.093, allocations: 3.433 MB / 0.7567 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.404e-05/1.093, allocations: 24 kB / 0.7567 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/1.093, allocations: 4 kB / 0.7567 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.32e-05/1.093, allocations: 7.969 kB / 0.7567 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01595/1.109, allocations: 8.795 MB / 0.7653 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.758e-05/1.109, allocations: 4 kB / 0.7653 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/1.111, allocations: 283.5 kB / 0.7656 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002469/1.113, allocations: 0.8634 MB / 0.7664 GB, free: 126.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002542/1.113, allocations: 32 kB / 0.7664 GB, free: 126.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007766/1.121, allocations: 7.915 MB / 0.7742 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/1.121, allocations: 4.062 kB / 0.7742 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007832/1.129, allocations: 5.994 MB / 0.78 GB, free: 112.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001349/1.131, allocations: 469 kB / 0.7805 GB, free: 111.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007449/1.131, allocations: 32 kB / 0.7805 GB, free: 111.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001768/1.133, allocations: 95.88 kB / 0.7806 GB, free: 111.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004068/1.133, allocations: 117.4 kB / 0.7807 GB, free: 111.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/1.134, allocations: 51.75 kB / 0.7808 GB, free: 111.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004379/1.138, allocations: 2.977 MB / 0.7837 GB, free: 108.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.01e-07/1.138, allocations: 0 / 0.7837 GB, free: 108.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006035/1.144, allocations: 1.114 MB / 0.7848 GB, free: 107.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (141): * Single equations (assignments): 136 * 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.008541/1.153, allocations: 6.63 MB / 0.7912 GB, free: 100.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008047/1.161, allocations: 5.452 MB / 0.7966 GB, free: 95.29 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/1.161, allocations: 320 / 0.7966 GB, free: 95.29 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002641/1.163, allocations: 1.854 MB / 0.7984 GB, free: 93.42 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003762/1.167, allocations: 0.5703 MB / 0.7989 GB, free: 92.86 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07501/1.242, allocations: 50.75 MB / 0.8485 GB, free: 36.16 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005239/1.248, allocations: 3.826 MB / 0.8522 GB, free: 32.29 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004597/1.252, allocations: 1.984 MB / 0.8542 GB, free: 30.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003438/1.256, allocations: 2.315 MB / 0.8564 GB, free: 27.98 MB / 0.5606 GB Notification: Performance of SimCode: time 2.445e-06/1.256, allocations: 0 / 0.8564 GB, free: 27.98 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1363/1.392, allocations: 82.61 MB / 0.9371 GB, free: 9.805 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.54/27.93, allocations: 4.312 kB / 0.9371 GB, free: 9.805 MB / 0.6231 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Bevel1D.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Bevel1D/Bevel1D.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches