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.01342/0.01342, allocations: 99 kB / 15.73 MB, free: 6.004 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.002183/0.002183, allocations: 195.3 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.995/2.995, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.427/0.427, allocations: 9.095 MB / 299.6 MB, free: 1.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00314/0.00314, allocations: 67.91 kB / 414.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7733/0.7765, allocations: 51.43 MB / 465.6 MB, free: 17.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.03249/0.8091, allocations: 12.92 MB / 478.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02091/0.8301, allocations: 3.58 MB / 482.1 MB, free: 6.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00727/0.8375, allocations: 53.53 kB / 482.1 MB, free: 6.156 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005768/0.8435, allocations: 0.7519 MB / 482.9 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01379/0.8574, allocations: 2.102 MB / 485 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002493/0.8599, allocations: 146.5 kB / 485.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01544/0.8754, allocations: 4.097 MB / 489.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007796/0.8833, allocations: 1.972 MB / 491.2 MB, free: 280 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006834/0.8902, allocations: 1.41 MB / 492.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008251/0.8986, allocations: 2.018 MB / 494.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003176/0.9019, allocations: 317.7 kB / 494.9 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00686/0.9088, allocations: 0.8943 MB / 495.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005525/0.9144, allocations: 1.897 MB / 497.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009209/0.9237, allocations: 2.457 MB / 0.4885 GB, free: 9.508 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02327/0.9471, allocations: 7.683 MB / 0.496 GB, free: 1.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.26e-05/0.9472, allocations: 4 kB / 0.496 GB, free: 1.789 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.9472, allocations: 0 / 0.496 GB, free: 1.789 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005608/0.9478, allocations: 0 / 0.496 GB, free: 1.789 MB / 366.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.05284/1.001, allocations: 7.201 MB / 0.503 GB, free: 10.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001166/1.001, allocations: 8.031 kB / 0.503 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005151/1.006, allocations: 0.8829 MB / 0.5039 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02276/1.029, allocations: 3.293 MB / 0.5071 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01095/1.04, allocations: 2.083 MB / 0.5091 GB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007557/1.041, allocations: 233.7 kB / 0.5094 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003268/1.044, allocations: 303.7 kB / 0.5096 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05126/1.095, allocations: 13.46 MB / 0.5228 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006612/1.096, allocations: 59.5 kB / 0.5228 GB, free: 5.234 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004208/1.1, allocations: 159.8 kB / 0.523 GB, free: 5.078 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01284/1.113, allocations: 3.08 MB / 0.526 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05212/1.166, allocations: 11.95 MB / 0.5377 GB, free: 6.031 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1354/1.301, allocations: 47.89 MB / 0.5844 GB, free: 4.871 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02191/1.323, allocations: 3.78 MB / 0.5881 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.5178/1.841, allocations: 1.371 MB / 0.5895 GB, free: 108.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03811/1.879, allocations: 9.215 MB / 0.5985 GB, free: 103.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001132/1.879, allocations: 54 kB / 0.5985 GB, free: 103.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=202): time 1.446e-05/1.879, allocations: 0.8438 kB / 0.5985 GB, free: 103.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=211): time 0.05303/1.932, allocations: 10.52 MB / 0.6088 GB, free: 98.61 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001724/1.933, allocations: 151.2 kB / 0.6089 GB, free: 98.45 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02052/1.953, allocations: 5.156 MB / 0.614 GB, free: 96.67 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006739/1.954, allocations: 52.39 kB / 0.614 GB, free: 96.62 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.007118/1.961, allocations: 4.106 MB / 0.618 GB, free: 93.52 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002514/1.964, allocations: 0.8681 MB / 0.6189 GB, free: 92.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007687/1.972, allocations: 1.615 MB / 0.6205 GB, free: 92.11 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/1.972, allocations: 306.3 kB / 0.6207 GB, free: 91.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00882/1.981, allocations: 2.245 MB / 0.6229 GB, free: 91.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0151/1.996, allocations: 7.318 MB / 0.6301 GB, free: 83.46 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0205/2.016, allocations: 10.4 MB / 0.6402 GB, free: 73.98 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000592/2.017, allocations: 56.62 kB / 0.6403 GB, free: 73.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.03307/2.05, allocations: 9.21 MB / 0.6493 GB, free: 67.96 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003199/2.051, allocations: 84 kB / 0.6494 GB, free: 67.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003857/2.051, allocations: 182.2 kB / 0.6495 GB, free: 67.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003098/2.051, allocations: 236 kB / 0.6498 GB, free: 67.47 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01092/2.062, allocations: 1.848 MB / 0.6516 GB, free: 65.62 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005504/2.063, allocations: 350.7 kB / 0.6519 GB, free: 65.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01342/2.076, allocations: 379.7 kB / 0.6523 GB, free: 64.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00237/2.079, allocations: 0.4922 MB / 0.6527 GB, free: 64.41 MB / 462.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.009952/2.089, allocations: 2.654 MB / 0.6553 GB, free: 61.75 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002417/2.091, allocations: 441 kB / 0.6558 GB, free: 61.32 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007107/2.098, allocations: 1.962 MB / 0.6577 GB, free: 59.35 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002027/2.099, allocations: 43.97 kB / 0.6577 GB, free: 59.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.186e-05/2.099, allocations: 0 / 0.6577 GB, free: 59.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.747e-05/2.099, allocations: 11.97 kB / 0.6577 GB, free: 59.29 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03408/2.133, allocations: 7.761 MB / 0.6653 GB, free: 51.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000119/2.133, allocations: 16 kB / 0.6653 GB, free: 51.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002335/2.135, allocations: 303.5 kB / 0.6656 GB, free: 51.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000415/2.136, allocations: 32.84 kB / 0.6656 GB, free: 50.99 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005596/2.136, allocations: 55.5 kB / 0.6657 GB, free: 50.94 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001779/2.138, allocations: 1.391 MB / 0.6671 GB, free: 49.41 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.244e-05/2.138, allocations: 30.36 kB / 0.6671 GB, free: 49.38 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01175/2.15, allocations: 4.396 MB / 0.6714 GB, free: 44.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004953/2.155, allocations: 0.6971 MB / 0.6721 GB, free: 44.08 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002819/2.158, allocations: 59.34 kB / 0.6721 GB, free: 44.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004805/2.163, allocations: 67.94 kB / 0.6722 GB, free: 43.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006208/2.164, allocations: 144.1 kB / 0.6723 GB, free: 43.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002512/2.164, allocations: 84.66 kB / 0.6724 GB, free: 43.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.01148/2.175, allocations: 3.214 MB / 0.6755 GB, free: 40.53 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.214e-06/2.175, allocations: 0 / 0.6755 GB, free: 40.53 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01601/2.192, allocations: 1.101 MB / 0.6766 GB, free: 39.43 MB / 462.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.01295/2.205, allocations: 5.1 MB / 0.6816 GB, free: 34.13 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01514/2.22, allocations: 5.206 MB / 0.6867 GB, free: 28.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.092e-05/2.22, allocations: 4 kB / 0.6867 GB, free: 28.96 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003332/2.223, allocations: 1.238 MB / 0.6879 GB, free: 27.72 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01247/2.236, allocations: 0.5643 MB / 0.6884 GB, free: 27.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1827/2.419, allocations: 54.34 MB / 0.7415 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01563/2.434, allocations: 3.767 MB / 0.7452 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.01302/2.447, allocations: 2.448 MB / 0.7476 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007747/2.455, allocations: 2.202 MB / 0.7497 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of SimCode: time 5.19e-06/2.455, allocations: 4 kB / 0.7497 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8886/3.344, allocations: 70.99 MB / 0.819 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 43.93/47.27, allocations: 4.062 kB / 0.8191 GB, free: 164.3 MB / 0.5294 GB (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)