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.004752/0.004752, allocations: 99.27 kB / 15.73 MB, free: 6.039 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.001297/0.001297, allocations: 195.2 kB / 16.68 MB, free: 5.961 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1776/0.1776, allocations: 9.094 MB / 299.7 MB, free: 1.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 67.84 kB / 414.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2353, allocations: 51.43 MB / 465.6 MB, free: 17.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01067/0.246, allocations: 12.91 MB / 478.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006999/0.253, allocations: 3.583 MB / 482.1 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002358/0.2555, allocations: 57.38 kB / 482.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001925/0.2574, allocations: 0.7477 MB / 482.9 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004831/0.2623, allocations: 2.039 MB / 484.9 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007376/0.263, allocations: 146 kB / 485.1 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005223/0.2683, allocations: 4.113 MB / 489.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002378/0.2707, allocations: 1.98 MB / 491.2 MB, free: 276 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002618/0.2733, allocations: 1.403 MB / 492.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003647/0.277, allocations: 2.025 MB / 494.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001445/0.2785, allocations: 318.7 kB / 494.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003075/0.2816, allocations: 0.8792 MB / 495.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002842/0.2844, allocations: 1.907 MB / 497.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004102/0.2886, allocations: 2.45 MB / 0.4884 GB, free: 9.543 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01083/0.2994, allocations: 7.691 MB / 0.4959 GB, free: 1.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2995, allocations: 4 kB / 0.4959 GB, free: 1.816 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2995, allocations: 0 / 0.4959 GB, free: 1.816 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002626/0.2997, allocations: 0 / 0.4959 GB, free: 1.816 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.02524/0.325, allocations: 7.194 MB / 0.503 GB, free: 10.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.3251, allocations: 8.031 kB / 0.503 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002203/0.3273, allocations: 0.8829 MB / 0.5038 GB, free: 9.633 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01282/0.3401, allocations: 3.3 MB / 0.5071 GB, free: 6.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004654/0.3448, allocations: 2.078 MB / 0.5091 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002948/0.3451, allocations: 233.7 kB / 0.5093 GB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00133/0.3465, allocations: 307.7 kB / 0.5096 GB, free: 3.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0264/0.3729, allocations: 13.45 MB / 0.5227 GB, free: 5.328 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001943/0.3731, allocations: 55.5 kB / 0.5228 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001258/0.3744, allocations: 159.8 kB / 0.5229 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005918/0.3803, allocations: 3.08 MB / 0.526 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02608/0.4064, allocations: 11.95 MB / 0.5376 GB, free: 6.066 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07125/0.4777, allocations: 47.9 MB / 0.5844 GB, free: 4.902 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01336/0.4911, allocations: 3.774 MB / 0.5881 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2037/0.6948, allocations: 1.374 MB / 0.5894 GB, free: 108.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01442/0.7093, allocations: 9.213 MB / 0.5984 GB, free: 103.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.138e-05/0.7094, allocations: 50.83 kB / 0.5985 GB, free: 103.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=202): time 5.63e-06/0.7094, allocations: 3.062 kB / 0.5985 GB, free: 103.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=211): time 0.02315/0.7326, allocations: 10.52 MB / 0.6088 GB, free: 98.59 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.7327, allocations: 145.2 kB / 0.6089 GB, free: 98.43 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01011/0.7428, allocations: 5.164 MB / 0.6139 GB, free: 96.64 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003324/0.7432, allocations: 49.02 kB / 0.614 GB, free: 96.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00301/0.7462, allocations: 4.097 MB / 0.618 GB, free: 93.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001112/0.7473, allocations: 0.8681 MB / 0.6188 GB, free: 92.88 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003581/0.7509, allocations: 1.615 MB / 0.6204 GB, free: 92.09 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.338e-05/0.751, allocations: 314 kB / 0.6207 GB, free: 91.78 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004037/0.755, allocations: 2.245 MB / 0.6229 GB, free: 91.07 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005987/0.761, allocations: 7.32 MB / 0.63 GB, free: 83.43 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008762/0.7698, allocations: 10.4 MB / 0.6402 GB, free: 73.95 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002455/0.7701, allocations: 53.28 kB / 0.6403 GB, free: 73.95 MB / 462.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01661/0.7868, allocations: 9.208 MB / 0.6492 GB, free: 68.01 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003131/0.7871, allocations: 80 kB / 0.6493 GB, free: 67.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003593/0.7875, allocations: 180 kB / 0.6495 GB, free: 67.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002975/0.7878, allocations: 240 kB / 0.6497 GB, free: 67.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005358/0.7932, allocations: 1.84 MB / 0.6515 GB, free: 65.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002779/0.7935, allocations: 358.6 kB / 0.6519 GB, free: 65.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00586/0.7994, allocations: 375.9 kB / 0.6522 GB, free: 64.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001121/0.8005, allocations: 0.496 MB / 0.6527 GB, free: 64.46 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.00432/0.8048, allocations: 2.651 MB / 0.6553 GB, free: 61.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000972/0.8058, allocations: 437 kB / 0.6557 GB, free: 61.38 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003614/0.8094, allocations: 1.962 MB / 0.6576 GB, free: 59.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001125/0.8096, allocations: 43.8 kB / 0.6577 GB, free: 59.36 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.731e-05/0.8096, allocations: 9.719 kB / 0.6577 GB, free: 59.35 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/0.8096, allocations: 7.969 kB / 0.6577 GB, free: 59.34 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/0.8239, allocations: 7.757 MB / 0.6653 GB, free: 51.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.294e-05/0.824, allocations: 12 kB / 0.6653 GB, free: 51.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/0.8251, allocations: 303.5 kB / 0.6656 GB, free: 51.08 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001818/0.8253, allocations: 36.84 kB / 0.6656 GB, free: 51.04 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001802/0.8255, allocations: 55.89 kB / 0.6656 GB, free: 50.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008537/0.8264, allocations: 1.398 MB / 0.667 GB, free: 49.46 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/0.8264, allocations: 28.03 kB / 0.667 GB, free: 49.43 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005312/0.8317, allocations: 4.389 MB / 0.6713 GB, free: 44.85 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001823/0.8336, allocations: 0.7049 MB / 0.672 GB, free: 44.12 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001189/0.8348, allocations: 51.19 kB / 0.6721 GB, free: 44.08 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002127/0.8369, allocations: 67.94 kB / 0.6721 GB, free: 44.01 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/0.8372, allocations: 144.1 kB / 0.6723 GB, free: 43.87 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/0.8373, allocations: 79.97 kB / 0.6723 GB, free: 43.79 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005288/0.8426, allocations: 3.214 MB / 0.6755 GB, free: 40.59 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.8426, allocations: 0 / 0.6755 GB, free: 40.59 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006624/0.8493, allocations: 1.101 MB / 0.6766 GB, free: 39.49 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.005983/0.8553, allocations: 5.111 MB / 0.6815 GB, free: 34.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007269/0.8626, allocations: 5.205 MB / 0.6866 GB, free: 29.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/0.8626, allocations: 0 / 0.6866 GB, free: 29.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.8643, allocations: 1.232 MB / 0.6878 GB, free: 27.78 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004427/0.8687, allocations: 0.5696 MB / 0.6884 GB, free: 27.22 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08947/0.9582, allocations: 54.33 MB / 0.7414 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006992/0.9653, allocations: 3.771 MB / 0.7451 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006289/0.9716, allocations: 2.453 MB / 0.7475 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003598/0.9752, allocations: 2.202 MB / 0.7497 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of SimCode: time 7.11e-07/0.9752, allocations: 4 kB / 0.7497 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.36/1.335, allocations: 70.99 MB / 0.819 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.41/24.75, allocations: 6.5 kB / 0.819 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)