Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.GearConstraint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001463/0.001463, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001394/0.001394, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2181/0.2181, allocations: 46.12 MB / 344.4 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002361/0.002361, allocations: 84.14 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3437, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.01628/0.36, allocations: 13.5 MB / 0.5438 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.3702, allocations: 4.549 MB / 0.5482 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002711/0.3729, allocations: 90.19 kB / 0.5483 GB, free: 15.17 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008042/0.381, allocations: 4.172 MB / 0.5524 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006391/0.3875, allocations: 2.136 MB / 0.5545 GB, free: 9.203 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002576/0.3901, allocations: 0.936 MB / 0.5554 GB, free: 8.266 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009526/0.3996, allocations: 6.123 MB / 0.5614 GB, free: 2.133 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007332/0.407, allocations: 5.211 MB / 0.5665 GB, free: 12.86 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003972/0.411, allocations: 2.111 MB / 0.5685 GB, free: 10.74 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004762/0.4158, allocations: 2.796 MB / 0.5713 GB, free: 7.934 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001586/0.4175, allocations: 472 kB / 0.5717 GB, free: 7.473 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00356/0.421, allocations: 1.342 MB / 0.573 GB, free: 6.129 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003246/0.4243, allocations: 2.494 MB / 0.5755 GB, free: 3.629 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004964/0.4293, allocations: 2.906 MB / 0.5783 GB, free: 0.707 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01271/0.4421, allocations: 9.196 MB / 0.5873 GB, free: 7.473 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.4421, allocations: 0 / 0.5873 GB, free: 7.473 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4421, allocations: 3.938 kB / 0.5873 GB, free: 7.469 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003204/0.4425, allocations: 0 / 0.5873 GB, free: 7.469 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: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01714/0.4596, allocations: 6.414 MB / 0.5935 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/0.4597, allocations: 8.031 kB / 0.5935 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002282/0.462, allocations: 0.8307 MB / 0.5944 GB, free: 128 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0412/0.5032, allocations: 6.1 MB / 0.6003 GB, free: 10.01 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009334/0.5126, allocations: 4.221 MB / 0.6044 GB, free: 5.734 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002934/0.5129, allocations: 301.3 kB / 0.6047 GB, free: 5.441 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001663/0.5146, allocations: 427.7 kB / 0.6051 GB, free: 5.023 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02341/0.538, allocations: 11.42 MB / 0.6163 GB, free: 8.852 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002181/0.5383, allocations: 51.64 kB / 0.6163 GB, free: 8.801 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0011/0.5394, allocations: 183.9 kB / 0.6165 GB, free: 8.621 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003822/0.5432, allocations: 2.034 MB / 0.6185 GB, free: 6.582 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02154/0.5648, allocations: 9.682 MB / 0.628 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06454/0.6294, allocations: 44.86 MB / 0.6718 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01146/0.6409, allocations: 4.237 MB / 0.6759 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003522/0.6445, allocations: 2.352 MB / 0.6782 GB, free: 7.926 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01696/0.6615, allocations: 9.432 MB / 0.6874 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.523e-05/0.6616, allocations: 55.5 kB / 0.6875 GB, free: 14.27 MB / 0.545 GB Notification: Performance of pre-optimization done (n=171): time 6.412e-06/0.6616, allocations: 0 / 0.6875 GB, free: 14.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=197): time 0.05391/0.7156, allocations: 18.46 MB / 0.7055 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001566/0.7158, allocations: 201.2 kB / 0.7057 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008174/0.7239, allocations: 4.717 MB / 0.7103 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004083/0.7244, allocations: 53.7 kB / 0.7103 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003408/0.7278, allocations: 3.74 MB / 0.714 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001245/0.7291, allocations: 0.7908 MB / 0.7148 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002296/0.7314, allocations: 1.262 MB / 0.716 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.7316, allocations: 301.1 kB / 0.7163 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2855/1.017, allocations: 2.184 MB / 0.7184 GB, free: 164.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006061/1.023, allocations: 6.004 MB / 0.7243 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01015/1.033, allocations: 8.9 MB / 0.733 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002371/1.034, allocations: 38.81 kB / 0.733 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=815) (initialization): time 0.01588/1.05, allocations: 8.779 MB / 0.7416 GB, free: 147.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.891e-05/1.05, allocations: 66.91 kB / 0.7416 GB, free: 147.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000167/1.05, allocations: 133.8 kB / 0.7418 GB, free: 147.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/1.053, allocations: 1.075 MB / 0.7428 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004328/1.057, allocations: 1.42 MB / 0.7442 GB, free: 147.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008923/1.066, allocations: 8.847 MB / 0.7528 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005267/1.071, allocations: 341.8 kB / 0.7532 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009979/1.072, allocations: 380.2 kB / 0.7535 GB, free: 139.1 MB / 0.5606 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 (753): * Single equations (assignments): 748 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0042/1.077, allocations: 2.455 MB / 0.7559 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009006/1.078, allocations: 432.2 kB / 0.7563 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005676/1.083, allocations: 3.497 MB / 0.7598 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.691e-05/1.083, allocations: 24 kB / 0.7598 GB, free: 132.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/1.083, allocations: 4 kB / 0.7598 GB, free: 132.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.653e-05/1.083, allocations: 14.64 kB / 0.7598 GB, free: 132.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/1.098, allocations: 8.944 MB / 0.7685 GB, free: 124 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/1.098, allocations: 5.406 kB / 0.7685 GB, free: 124 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/1.099, allocations: 300.1 kB / 0.7688 GB, free: 123.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00249/1.102, allocations: 0.8399 MB / 0.7696 GB, free: 122.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002589/1.102, allocations: 39.98 kB / 0.7697 GB, free: 122.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007461/1.11, allocations: 7.927 MB / 0.7774 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/1.11, allocations: 4 kB / 0.7774 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007605/1.117, allocations: 6.078 MB / 0.7834 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/1.118, allocations: 482.8 kB / 0.7838 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005771/1.119, allocations: 28 kB / 0.7839 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001525/1.121, allocations: 103.9 kB / 0.7839 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003683/1.121, allocations: 117.1 kB / 0.7841 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/1.121, allocations: 51.98 kB / 0.7841 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003947/1.125, allocations: 2.977 MB / 0.787 GB, free: 105 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/1.125, allocations: 3.938 kB / 0.787 GB, free: 105 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005549/1.131, allocations: 1.121 MB / 0.7881 GB, free: 103.9 MB / 0.5606 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.00892/1.14, allocations: 6.727 MB / 0.7947 GB, free: 97.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007892/1.148, allocations: 5.538 MB / 0.8001 GB, free: 91.56 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/1.148, allocations: 4 kB / 0.8001 GB, free: 91.56 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002536/1.15, allocations: 1.883 MB / 0.8019 GB, free: 89.65 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003471/1.154, allocations: 0.579 MB / 0.8025 GB, free: 89.09 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06733/1.221, allocations: 51.16 MB / 0.8525 GB, free: 31.93 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003734/1.225, allocations: 3.812 MB / 0.8562 GB, free: 28.08 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003798/1.229, allocations: 1.988 MB / 0.8581 GB, free: 26.09 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002499/1.231, allocations: 2.331 MB / 0.8604 GB, free: 23.75 MB / 0.5606 GB Notification: Performance of SimCode: time 1.042e-06/1.231, allocations: 0 / 0.8604 GB, free: 23.75 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1517/1.383, allocations: 83.04 MB / 0.9415 GB, free: 5.176 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.85/28.23, allocations: 8.047 kB / 0.9415 GB, free: 5.168 MB / 0.6231 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.pipe 2>&1)