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.001641/0.001641, allocations: 108 kB / 15.61 MB, free: 152 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.001961/0.001961, allocations: 194.6 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.396/1.396, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1681/0.1681, allocations: 9.098 MB / 299.5 MB, free: 1.793 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001577, allocations: 63.89 kB / 362 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1082, allocations: 51.43 MB / 413.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.2447/0.3529, allocations: 12.93 MB / 426.4 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008687/0.3617, allocations: 3.563 MB / 430 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002859/0.3646, allocations: 59.69 kB / 430 MB, free: 36.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001971/0.3666, allocations: 0.7529 MB / 430.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005598/0.3722, allocations: 2.049 MB / 432.8 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006989/0.373, allocations: 141.1 kB / 433 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005074/0.378, allocations: 4.08 MB / 437.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004083/0.3822, allocations: 1.987 MB / 439 MB, free: 32.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002957/0.3852, allocations: 1.393 MB / 440.4 MB, free: 32.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003193/0.3884, allocations: 2.024 MB / 442.5 MB, free: 31.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001228/0.3896, allocations: 316.6 kB / 442.8 MB, free: 31.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002258/0.3919, allocations: 0.8781 MB / 443.6 MB, free: 31.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001486/0.3934, allocations: 1.904 MB / 445.5 MB, free: 30.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00273/0.3962, allocations: 2.455 MB / 448 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007021/0.4032, allocations: 7.247 MB / 455.2 MB, free: 25.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.4032, allocations: 4 kB / 455.3 MB, free: 25.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4032, allocations: 3.094 kB / 455.3 MB, free: 25.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002506/0.4035, allocations: 0 / 455.3 MB, free: 25.93 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.02595/0.4295, allocations: 7.049 MB / 462.3 MB, free: 22.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.4295, allocations: 9.25 kB / 462.3 MB, free: 22.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002418/0.432, allocations: 0.8809 MB / 463.2 MB, free: 22.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01307/0.445, allocations: 3.264 MB / 466.5 MB, free: 21.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005262/0.4503, allocations: 2.058 MB / 468.5 MB, free: 20.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003088/0.4507, allocations: 234.5 kB / 468.7 MB, free: 20.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001565/0.4522, allocations: 312 kB / 469 MB, free: 20.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02301/0.4753, allocations: 13.45 MB / 482.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001383/0.4754, allocations: 56.55 kB / 482.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007006/0.4762, allocations: 158.6 kB / 482.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004779/0.4809, allocations: 3.092 MB / 485.8 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02288/0.5038, allocations: 11.93 MB / 497.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07085/0.5747, allocations: 47.95 MB / 0.5329 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01254/0.5873, allocations: 3.782 MB / 0.5366 GB, free: 10.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002702/0.5901, allocations: 1.383 MB / 0.5379 GB, free: 8.625 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01556/0.6057, allocations: 9.217 MB / 0.5469 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.501e-05/0.6057, allocations: 55.55 kB / 0.547 GB, free: 14.61 MB / 430.1 MB Notification: Performance of pre-optimization done (n=202): time 5.911e-06/0.6057, allocations: 0 / 0.547 GB, free: 14.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=211): time 0.02345/0.6292, allocations: 10.23 MB / 0.557 GB, free: 4.238 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.6293, allocations: 145.8 kB / 0.5571 GB, free: 4.062 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008226/0.6375, allocations: 5.15 MB / 0.5622 GB, free: 14.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002003/0.6378, allocations: 53.7 kB / 0.5622 GB, free: 14.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002732/0.6405, allocations: 3.936 MB / 0.5661 GB, free: 10.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009154/0.6414, allocations: 0.8295 MB / 0.5669 GB, free: 10.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002673/0.6441, allocations: 1.602 MB / 0.5684 GB, free: 8.402 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.51e-05/0.6442, allocations: 309.1 kB / 0.5687 GB, free: 8.098 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003889/0.6481, allocations: 2.241 MB / 0.5709 GB, free: 5.852 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2105/0.8586, allocations: 7.317 MB / 0.5781 GB, free: 117.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/0.8687, allocations: 10.38 MB / 0.5882 GB, free: 109.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001942/0.8689, allocations: 51.09 kB / 0.5882 GB, free: 109.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01776/0.8867, allocations: 9.19 MB / 0.5972 GB, free: 106.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001331/0.8869, allocations: 82.53 kB / 0.5973 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002445/0.8871, allocations: 180.3 kB / 0.5975 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002149/0.8874, allocations: 240.3 kB / 0.5977 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005692/0.8931, allocations: 1.843 MB / 0.5995 GB, free: 106 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002766/0.8934, allocations: 351.7 kB / 0.5998 GB, free: 105.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005429/0.8988, allocations: 378 kB / 0.6002 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001161/0.9, allocations: 0.4999 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.004608/0.9046, allocations: 2.642 MB / 0.6033 GB, free: 104.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000911/0.9055, allocations: 418.2 kB / 0.6037 GB, free: 104.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003473/0.909, allocations: 1.966 MB / 0.6056 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001168/0.9092, allocations: 38.19 kB / 0.6056 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.9092, allocations: 10.16 kB / 0.6056 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.027e-05/0.9092, allocations: 12 kB / 0.6056 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01588/0.9251, allocations: 7.762 MB / 0.6132 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.878e-05/0.9251, allocations: 13.38 kB / 0.6132 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.9263, allocations: 309.5 kB / 0.6135 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000167/0.9265, allocations: 38.08 kB / 0.6136 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/0.9266, allocations: 56.45 kB / 0.6136 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008215/0.9274, allocations: 1.389 MB / 0.615 GB, free: 99.22 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.52e-05/0.9275, allocations: 18.94 kB / 0.615 GB, free: 99.22 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005466/0.9329, allocations: 4.384 MB / 0.6193 GB, free: 97.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001658/0.9346, allocations: 0.6805 MB / 0.6199 GB, free: 96.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006342/0.9353, allocations: 51.53 kB / 0.62 GB, free: 96.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/0.9367, allocations: 67.48 kB / 0.6201 GB, free: 96.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/0.9369, allocations: 150.4 kB / 0.6202 GB, free: 96.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/0.9371, allocations: 76.23 kB / 0.6203 GB, free: 96.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005772/0.9428, allocations: 3.21 MB / 0.6234 GB, free: 95.42 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.9429, allocations: 7.969 kB / 0.6234 GB, free: 95.42 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007085/0.95, allocations: 1.096 MB / 0.6245 GB, free: 95.28 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.005767/0.9557, allocations: 5.086 MB / 0.6294 GB, free: 92.44 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009217/0.965, allocations: 6.082 MB / 0.6354 GB, free: 90.69 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/0.965, allocations: 3.281 kB / 0.6354 GB, free: 90.69 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001692/0.9667, allocations: 1.225 MB / 0.6366 GB, free: 89.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003219/0.97, allocations: 0.5767 MB / 0.6372 GB, free: 89.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07891/1.049, allocations: 62.79 MB / 0.6985 GB, free: 19.17 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005729/1.055, allocations: 3.77 MB / 0.7021 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006267/1.061, allocations: 2.452 MB / 0.7045 GB, free: 12.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003659/1.065, allocations: 2.202 MB / 0.7067 GB, free: 10.72 MB / 446.1 MB Notification: Performance of SimCode: time 1.503e-06/1.065, allocations: 0 / 0.7067 GB, free: 10.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3134/1.378, allocations: 76.36 MB / 0.7813 GB, free: 143.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/13.08, allocations: 1.156 kB / 0.7813 GB, free: 143.2 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear.fmu > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1)