Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.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/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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: "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.SpurGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.SpurGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001731/0.001731, allocations: 194.1 kB / 16.53 MB, free: 6.664 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.574/1.574, allocations: 222.9 MB / 240.2 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2034/0.2034, allocations: 9.105 MB / 299.5 MB, free: 1.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 67.88 kB / 362.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1235, allocations: 51.43 MB / 413.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.25/0.3736, allocations: 12.92 MB / 426.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009027/0.3827, allocations: 3.569 MB / 430 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002986/0.3857, allocations: 55.66 kB / 430 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002741/0.3886, allocations: 0.7551 MB / 430.8 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007141/0.3957, allocations: 2.05 MB / 432.8 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.3968, allocations: 145.6 kB / 433 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007185/0.404, allocations: 4.086 MB / 437.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003683/0.4077, allocations: 1.97 MB / 439 MB, free: 32.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002867/0.4106, allocations: 1.403 MB / 440.4 MB, free: 32.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003661/0.4143, allocations: 2.016 MB / 442.4 MB, free: 31.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001328/0.4157, allocations: 315.1 kB / 442.8 MB, free: 31.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002549/0.4182, allocations: 0.8935 MB / 443.7 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002299/0.4205, allocations: 1.89 MB / 445.5 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003377/0.4239, allocations: 2.457 MB / 448 MB, free: 28.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008039/0.432, allocations: 7.245 MB / 455.2 MB, free: 25.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.432, allocations: 0 / 455.2 MB, free: 25.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4321, allocations: 0 / 455.2 MB, free: 25.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003339/0.4324, allocations: 0 / 455.2 MB, free: 25.92 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1948 * Number of variables: 1948 Notification: Performance of Generate backend data structure: time 0.02661/0.459, allocations: 7.064 MB / 462.3 MB, free: 22.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.4591, allocations: 10.8 kB / 462.3 MB, free: 22.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003088/0.4622, allocations: 0.8779 MB / 463.2 MB, free: 22.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01387/0.4761, allocations: 3.26 MB / 466.5 MB, free: 21.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006152/0.4823, allocations: 2.058 MB / 468.5 MB, free: 20.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003322/0.4826, allocations: 235.1 kB / 468.7 MB, free: 20.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002184/0.4848, allocations: 315.5 kB / 469.1 MB, free: 20.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0295/0.5143, allocations: 13.44 MB / 482.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001545/0.5146, allocations: 60.23 kB / 482.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006392/0.5152, allocations: 152.5 kB / 482.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005029/0.5202, allocations: 3.092 MB / 485.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02385/0.5441, allocations: 11.94 MB / 497.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0827/0.6269, allocations: 47.96 MB / 0.5329 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01329/0.6402, allocations: 3.775 MB / 0.5366 GB, free: 9.953 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003063/0.6433, allocations: 1.379 MB / 0.5379 GB, free: 8.562 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01907/0.6624, allocations: 9.225 MB / 0.5469 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.871e-05/0.6626, allocations: 51.5 kB / 0.547 GB, free: 14.54 MB / 430.1 MB Notification: Performance of pre-optimization done (n=202): time 7.183e-06/0.6626, allocations: 0 / 0.547 GB, free: 14.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=211): time 0.02471/0.6873, allocations: 10.24 MB / 0.557 GB, free: 4.164 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.6875, allocations: 149.8 kB / 0.5571 GB, free: 3.984 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01036/0.6979, allocations: 5.138 MB / 0.5622 GB, free: 14.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005271/0.6984, allocations: 57.69 kB / 0.5622 GB, free: 14.78 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003995/0.7025, allocations: 3.94 MB / 0.5661 GB, free: 10.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00149/0.704, allocations: 0.8295 MB / 0.5669 GB, free: 9.945 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003225/0.7072, allocations: 1.602 MB / 0.5684 GB, free: 8.332 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.7074, allocations: 305.1 kB / 0.5687 GB, free: 8.031 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004423/0.7118, allocations: 2.241 MB / 0.5709 GB, free: 5.785 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2987/1.011, allocations: 7.315 MB / 0.5781 GB, free: 117.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01222/1.023, allocations: 10.39 MB / 0.5882 GB, free: 109.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002852/1.023, allocations: 50.84 kB / 0.5882 GB, free: 109.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01871/1.042, allocations: 9.188 MB / 0.5972 GB, free: 106.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001327/1.042, allocations: 82.66 kB / 0.5973 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002584/1.042, allocations: 182.8 kB / 0.5975 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000229/1.043, allocations: 242.1 kB / 0.5977 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006123/1.049, allocations: 1.835 MB / 0.5995 GB, free: 106 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002545/1.049, allocations: 357 kB / 0.5998 GB, free: 106 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006127/1.055, allocations: 379.9 kB / 0.6002 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001174/1.056, allocations: 0.4951 MB / 0.6007 GB, free: 105.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 24 (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],gearB_Bearing.cylinderColor[3],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[1],gearB.sphereColor[3],gearB.sphereColor[2],gearB.sphereColor[1],gearA.sphereColor[3],gearA.sphereColor[2],gearA.sphereColor[1],gearA_Bearing.cylinderColor[3],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (994): * Single equations (assignments): 987 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004879/1.061, allocations: 2.646 MB / 0.6033 GB, free: 104.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000881/1.062, allocations: 419.3 kB / 0.6037 GB, free: 104.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00358/1.066, allocations: 1.968 MB / 0.6056 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001306/1.066, allocations: 34.27 kB / 0.6056 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/1.066, allocations: 5.719 kB / 0.6056 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/1.066, allocations: 12.3 kB / 0.6056 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01576/1.082, allocations: 7.768 MB / 0.6132 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.591e-05/1.082, allocations: 11.88 kB / 0.6132 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001218/1.083, allocations: 304.4 kB / 0.6135 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000159/1.083, allocations: 39.8 kB / 0.6136 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001265/1.083, allocations: 58.72 kB / 0.6136 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008634/1.084, allocations: 1.39 MB / 0.615 GB, free: 99.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.88e-05/1.084, allocations: 18.94 kB / 0.615 GB, free: 99.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006099/1.09, allocations: 4.388 MB / 0.6193 GB, free: 97.06 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002051/1.092, allocations: 0.6774 MB / 0.6199 GB, free: 96.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008441/1.093, allocations: 46.86 kB / 0.62 GB, free: 96.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001657/1.095, allocations: 77.14 kB / 0.6201 GB, free: 96.58 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002939/1.095, allocations: 143 kB / 0.6202 GB, free: 96.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001616/1.095, allocations: 82.19 kB / 0.6203 GB, free: 96.53 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007258/1.103, allocations: 3.211 MB / 0.6234 GB, free: 95.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.1e-07/1.103, allocations: 4 kB / 0.6234 GB, free: 95.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00954/1.112, allocations: 1.099 MB / 0.6245 GB, free: 95.29 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 59 * Number of states: 2 (constantSpeed.phi,gearB.phi) * 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 (163): * Single equations (assignments): 155 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006485/1.119, allocations: 5.081 MB / 0.6294 GB, free: 92.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01292/1.132, allocations: 6.085 MB / 0.6354 GB, free: 90.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.327e-05/1.132, allocations: 2.5 kB / 0.6354 GB, free: 90.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002206/1.134, allocations: 1.229 MB / 0.6366 GB, free: 89.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00378/1.138, allocations: 0.5661 MB / 0.6371 GB, free: 89.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08173/1.22, allocations: 62.79 MB / 0.6985 GB, free: 19.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004217/1.224, allocations: 3.768 MB / 0.7021 GB, free: 15.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005775/1.23, allocations: 2.448 MB / 0.7045 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003348/1.233, allocations: 2.202 MB / 0.7067 GB, free: 10.67 MB / 446.1 MB Notification: Performance of SimCode: time 9.71e-07/1.233, allocations: 0 / 0.7067 GB, free: 10.67 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4258/1.659, allocations: 76.37 MB / 0.7813 GB, free: 143.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/13.35, allocations: 0 / 0.7813 GB, free: 143.3 MB / 478.1 MB (rm -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear.fmu > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1)