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.006133/0.006132, allocations: 96.97 kB / 15.73 MB, free: 6.031 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.001553/0.001553, allocations: 196.3 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.48/1.48, allocations: 222.9 MB / 240.4 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.1672/0.1672, allocations: 9.102 MB / 299.6 MB, free: 1.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 79.8 kB / 414.2 MB, free: 8.844 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2588, allocations: 51.42 MB / 465.6 MB, free: 17.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01113/0.27, allocations: 12.92 MB / 478.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007476/0.2775, allocations: 3.589 MB / 482.1 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00233/0.2799, allocations: 58.16 kB / 482.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001751/0.2817, allocations: 0.7472 MB / 482.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00495/0.2867, allocations: 2.043 MB / 484.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007586/0.2874, allocations: 147 kB / 485.1 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00532/0.2928, allocations: 4.099 MB / 489.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002497/0.2953, allocations: 1.976 MB / 491.2 MB, free: 276 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002896/0.2982, allocations: 1.408 MB / 492.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004022/0.3023, allocations: 2.018 MB / 494.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001528/0.3038, allocations: 323.9 kB / 494.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002709/0.3066, allocations: 0.8846 MB / 495.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002903/0.3095, allocations: 1.901 MB / 497.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004316/0.3139, allocations: 2.457 MB / 0.4884 GB, free: 9.594 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01219/0.3261, allocations: 7.687 MB / 0.4959 GB, free: 1.875 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.3262, allocations: 0 / 0.4959 GB, free: 1.875 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3262, allocations: 0 / 0.4959 GB, free: 1.875 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003093/0.3265, allocations: 4 kB / 0.4959 GB, free: 1.871 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.02448/0.351, allocations: 7.197 MB / 0.503 GB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.351, allocations: 8.031 kB / 0.503 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001409/0.3524, allocations: 0.8829 MB / 0.5038 GB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01186/0.3643, allocations: 3.289 MB / 0.507 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004172/0.3685, allocations: 2.079 MB / 0.5091 GB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002335/0.3688, allocations: 237.7 kB / 0.5093 GB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008975/0.3697, allocations: 315.7 kB / 0.5096 GB, free: 3.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02523/0.3949, allocations: 13.44 MB / 0.5227 GB, free: 5.395 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00015/0.3951, allocations: 63.45 kB / 0.5228 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000701/0.3958, allocations: 159.8 kB / 0.5229 GB, free: 5.176 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005431/0.4013, allocations: 3.08 MB / 0.5259 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02365/0.425, allocations: 11.94 MB / 0.5376 GB, free: 6.137 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06625/0.4913, allocations: 47.9 MB / 0.5844 GB, free: 4.965 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01308/0.5044, allocations: 3.786 MB / 0.5881 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2082/0.7126, allocations: 1.373 MB / 0.5894 GB, free: 109.2 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01555/0.7282, allocations: 9.214 MB / 0.5984 GB, free: 104 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.7283, allocations: 53.7 kB / 0.5985 GB, free: 103.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=202): time 5.461e-06/0.7283, allocations: 0 / 0.5985 GB, free: 103.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=211): time 0.02046/0.7488, allocations: 10.52 MB / 0.6087 GB, free: 98.96 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.7489, allocations: 152.7 kB / 0.6089 GB, free: 98.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009106/0.758, allocations: 5.16 MB / 0.6139 GB, free: 97.02 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003009/0.7583, allocations: 52.14 kB / 0.614 GB, free: 96.97 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003212/0.7616, allocations: 4.099 MB / 0.618 GB, free: 93.88 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001221/0.7628, allocations: 0.8747 MB / 0.6188 GB, free: 93.25 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002457/0.7653, allocations: 1.612 MB / 0.6204 GB, free: 92.46 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.327e-05/0.7653, allocations: 305.9 kB / 0.6207 GB, free: 92.16 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003308/0.7687, allocations: 2.245 MB / 0.6229 GB, free: 91.45 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004866/0.7736, allocations: 7.322 MB / 0.63 GB, free: 83.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007505/0.7811, allocations: 10.39 MB / 0.6402 GB, free: 74.33 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001449/0.7813, allocations: 50.25 kB / 0.6402 GB, free: 74.33 MB / 462.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01231/0.7936, allocations: 9.216 MB / 0.6492 GB, free: 68.12 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.7937, allocations: 80 kB / 0.6493 GB, free: 68.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001758/0.7939, allocations: 184.1 kB / 0.6495 GB, free: 67.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001611/0.7941, allocations: 236 kB / 0.6497 GB, free: 67.63 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004853/0.7989, allocations: 1.846 MB / 0.6515 GB, free: 65.78 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002105/0.7992, allocations: 350.6 kB / 0.6519 GB, free: 65.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00564/0.8048, allocations: 380.8 kB / 0.6522 GB, free: 65.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009304/0.8058, allocations: 500 kB / 0.6527 GB, free: 64.58 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.003418/0.8092, allocations: 2.659 MB / 0.6553 GB, free: 61.91 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000817/0.81, allocations: 445 kB / 0.6557 GB, free: 61.47 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002817/0.8129, allocations: 1.959 MB / 0.6576 GB, free: 59.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001018/0.813, allocations: 31.98 kB / 0.6577 GB, free: 59.47 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.813, allocations: 0 / 0.6577 GB, free: 59.47 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.813, allocations: 15.53 kB / 0.6577 GB, free: 59.46 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01136/0.8244, allocations: 7.763 MB / 0.6653 GB, free: 51.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-05/0.8244, allocations: 16 kB / 0.6653 GB, free: 51.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.8255, allocations: 307.6 kB / 0.6656 GB, free: 51.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001421/0.8256, allocations: 36.86 kB / 0.6656 GB, free: 51.14 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/0.8258, allocations: 47.98 kB / 0.6656 GB, free: 51.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006892/0.8265, allocations: 1.399 MB / 0.667 GB, free: 49.57 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/0.8265, allocations: 27.81 kB / 0.667 GB, free: 49.54 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004393/0.8309, allocations: 4.399 MB / 0.6713 GB, free: 44.95 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001577/0.8325, allocations: 0.6946 MB / 0.672 GB, free: 44.23 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007402/0.8332, allocations: 47.94 kB / 0.6721 GB, free: 44.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001589/0.8348, allocations: 71.84 kB / 0.6721 GB, free: 44.12 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002306/0.8351, allocations: 156.2 kB / 0.6723 GB, free: 43.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001139/0.8352, allocations: 71.98 kB / 0.6723 GB, free: 43.89 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004265/0.8395, allocations: 3.214 MB / 0.6755 GB, free: 40.69 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8395, allocations: 0 / 0.6755 GB, free: 40.69 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006272/0.8458, allocations: 1.097 MB / 0.6766 GB, free: 39.59 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.00519/0.851, allocations: 5.108 MB / 0.6815 GB, free: 34.29 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007404/0.8585, allocations: 5.202 MB / 0.6866 GB, free: 29.13 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-05/0.8585, allocations: 4 kB / 0.6866 GB, free: 29.13 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001754/0.8603, allocations: 1.243 MB / 0.6878 GB, free: 27.88 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004105/0.8644, allocations: 0.5607 MB / 0.6884 GB, free: 27.33 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.077/0.9414, allocations: 54.33 MB / 0.7414 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005304/0.9468, allocations: 3.767 MB / 0.7451 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005681/0.9525, allocations: 2.448 MB / 0.7475 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003479/0.956, allocations: 2.21 MB / 0.7497 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of SimCode: time 8.71e-07/0.956, allocations: 0 / 0.7497 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3405/1.297, allocations: 70.99 MB / 0.819 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.43/24.73, allocations: 2.656 kB / 0.819 GB, free: 164.5 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 & /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)