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.0008819/0.0008819, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004828/0.004828, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.23/1.23, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1451/0.1451, allocations: 9.086 MB / 300.5 MB, free: 2.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002718/0.0002718, allocations: 7.984 kB / 363.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08317/0.08346, allocations: 52.42 MB / 416.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.1715/0.255, allocations: 30.62 MB / 446.8 MB, free: 23.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.2657, allocations: 7.036 MB / 453.9 MB, free: 20.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003067/0.2688, allocations: 117.5 kB / 454 MB, free: 20.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00095/0.2697, allocations: 0.5013 MB / 454.5 MB, free: 20.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003463/0.2732, allocations: 1.925 MB / 456.4 MB, free: 19.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.2736, allocations: 134.3 kB / 456.6 MB, free: 19.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004154/0.2778, allocations: 5.705 MB / 462.3 MB, free: 17.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001635/0.2794, allocations: 1.923 MB / 464.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001187/0.2806, allocations: 1.19 MB / 465.4 MB, free: 16.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00168/0.2823, allocations: 2.081 MB / 467.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000308/0.2826, allocations: 185.7 kB / 467.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001157/0.2838, allocations: 0.7959 MB / 468.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001014/0.2848, allocations: 1.821 MB / 470.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001395/0.2862, allocations: 2.375 MB / 472.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006006/0.2922, allocations: 6.918 MB / 479.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.2922, allocations: 1.281 kB / 479.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2922, allocations: 0 / 479.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001869/0.2924, allocations: 2.438 kB / 479.6 MB, free: 11.04 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.02132/0.3138, allocations: 6.011 MB / 485.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3138, allocations: 14.03 kB / 485.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00128/0.3151, allocations: 0.8868 MB / 486.5 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01112/0.3262, allocations: 3.346 MB / 489.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003285/0.3295, allocations: 2.053 MB / 491.9 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.3297, allocations: 234.2 kB / 492.1 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006209/0.3303, allocations: 313.1 kB / 492.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01768/0.348, allocations: 13.45 MB / 0.494 GB, free: 8.766 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001014/0.3481, allocations: 55.47 kB / 0.494 GB, free: 8.711 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004707/0.3486, allocations: 155.8 kB / 0.4942 GB, free: 8.559 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004725/0.3533, allocations: 3.088 MB / 0.4972 GB, free: 5.469 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02063/0.374, allocations: 11.94 MB / 0.5089 GB, free: 9.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05298/0.427, allocations: 47.98 MB / 0.5557 GB, free: 8.281 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01128/0.4383, allocations: 3.782 MB / 0.5594 GB, free: 4.242 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002075/0.4404, allocations: 1.387 MB / 0.5608 GB, free: 2.844 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01225/0.4527, allocations: 9.221 MB / 0.5698 GB, free: 8.879 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/0.4527, allocations: 63.48 kB / 0.5698 GB, free: 8.805 MB / 446.1 MB Notification: Performance of pre-optimization done (n=202): time 3.547e-06/0.4527, allocations: 0 / 0.5698 GB, free: 8.805 MB / 446.1 MB Notification: Performance of matching and sorting (n=211): time 0.1746/0.6274, allocations: 10.24 MB / 0.5798 GB, free: 124.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.6275, allocations: 153.5 kB / 0.58 GB, free: 124.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005936/0.6334, allocations: 5.142 MB / 0.585 GB, free: 123.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00022/0.6336, allocations: 55.33 kB / 0.5851 GB, free: 123.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001613/0.6353, allocations: 3.935 MB / 0.5889 GB, free: 121.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005269/0.6358, allocations: 0.8282 MB / 0.5897 GB, free: 120.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006883/0.6365, allocations: 0.652 MB / 0.5903 GB, free: 120.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.637e-05/0.6365, allocations: 303.6 kB / 0.5906 GB, free: 120.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002678/0.6392, allocations: 2.241 MB / 0.5928 GB, free: 119.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004139/0.6434, allocations: 7.314 MB / 0.6 GB, free: 112.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008297/0.6517, allocations: 10.39 MB / 0.6101 GB, free: 102.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001385/0.6518, allocations: 51.72 kB / 0.6102 GB, free: 102.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01338/0.6652, allocations: 9.183 MB / 0.6191 GB, free: 99.31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.6654, allocations: 85.69 kB / 0.6192 GB, free: 99.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002427/0.6656, allocations: 180.9 kB / 0.6194 GB, free: 99.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002754/0.6659, allocations: 238 kB / 0.6196 GB, free: 99.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004947/0.6709, allocations: 1.843 MB / 0.6214 GB, free: 99.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002226/0.6711, allocations: 360.5 kB / 0.6218 GB, free: 99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004669/0.6758, allocations: 369.7 kB / 0.6221 GB, free: 98.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007008/0.6765, allocations: 0.4965 MB / 0.6226 GB, free: 98.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.004098/0.6806, allocations: 2.648 MB / 0.6252 GB, free: 97.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006246/0.6812, allocations: 424 kB / 0.6256 GB, free: 97.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003028/0.6843, allocations: 1.958 MB / 0.6275 GB, free: 96.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001205/0.6844, allocations: 41.86 kB / 0.6275 GB, free: 96.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.6844, allocations: 1.312 kB / 0.6275 GB, free: 96.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.6844, allocations: 8.125 kB / 0.6275 GB, free: 96.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/0.6949, allocations: 7.773 MB / 0.6351 GB, free: 93.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/0.6949, allocations: 11.53 kB / 0.6351 GB, free: 93.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009745/0.6959, allocations: 300.9 kB / 0.6354 GB, free: 93.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001182/0.696, allocations: 44.09 kB / 0.6355 GB, free: 93.37 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.793e-05/0.6961, allocations: 51.8 kB / 0.6355 GB, free: 93.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006366/0.6968, allocations: 1.293 MB / 0.6368 GB, free: 92.04 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.208e-06/0.6968, allocations: 23.56 kB / 0.6368 GB, free: 92.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004131/0.7009, allocations: 4.381 MB / 0.6411 GB, free: 89.74 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001179/0.7021, allocations: 0.6921 MB / 0.6418 GB, free: 89.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000377/0.7025, allocations: 49.62 kB / 0.6418 GB, free: 89.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001242/0.7037, allocations: 70.73 kB / 0.6419 GB, free: 89.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/0.704, allocations: 155.4 kB / 0.642 GB, free: 89.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.7041, allocations: 74.44 kB / 0.6421 GB, free: 89.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004113/0.7082, allocations: 3.212 MB / 0.6452 GB, free: 86.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7082, allocations: 0 / 0.6452 GB, free: 86.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005231/0.7134, allocations: 1.096 MB / 0.6463 GB, free: 85.65 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.004316/0.7178, allocations: 5.091 MB / 0.6513 GB, free: 80.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006143/0.7239, allocations: 5.163 MB / 0.6563 GB, free: 76.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/0.7239, allocations: 7.938 kB / 0.6563 GB, free: 76.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.7252, allocations: 1.231 MB / 0.6575 GB, free: 75.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01023/0.7355, allocations: 0.5394 MB / 0.6581 GB, free: 74.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06399/0.7995, allocations: 65.15 MB / 0.7217 GB, free: 412 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00379/0.8033, allocations: 3.775 MB / 0.7254 GB, free: 12.61 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005542/0.8089, allocations: 2.463 MB / 0.7278 GB, free: 10.14 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002504/0.8114, allocations: 2.203 MB / 0.7299 GB, free: 7.938 MB / 462.1 MB Notification: Performance of SimCode: time 7.82e-07/0.8114, allocations: 0 / 0.7299 GB, free: 7.938 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.621/1.432, allocations: 74.6 MB / 0.8028 GB, free: 125.9 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001455/1.433, allocations: 217.9 kB / 0.803 GB, free: 125.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.47/4.903, allocations: 0 / 0.803 GB, free: 125.6 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)