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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.0007852/0.0007852, allocations: 92 kB / 15.06 MB, free: 1.098 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.000824/0.0008241, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1543/0.1543, allocations: 9.108 MB / 300.2 MB, free: 2.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.000289, allocations: 12 kB / 363.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1005, allocations: 52.44 MB / 415.6 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.2008/0.3014, allocations: 28.53 MB / 444.2 MB, free: 27.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01358/0.315, allocations: 6.731 MB / 450.9 MB, free: 22.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004803/0.3199, allocations: 113.8 kB / 451 MB, free: 22.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003763/0.3237, allocations: 1.389 MB / 452.4 MB, free: 22.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0109/0.3346, allocations: 4.844 MB / 457.3 MB, free: 20.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008039/0.3354, allocations: 137.5 kB / 457.4 MB, free: 20.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004188/0.3396, allocations: 4.505 MB / 461.9 MB, free: 18.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001957/0.3416, allocations: 1.871 MB / 463.8 MB, free: 17.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001504/0.3431, allocations: 1.293 MB / 465.1 MB, free: 17.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002385/0.3455, allocations: 2.053 MB / 467.1 MB, free: 16.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005053/0.346, allocations: 183.2 kB / 467.3 MB, free: 16.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001324/0.3473, allocations: 0.6928 MB / 468 MB, free: 16.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001119/0.3485, allocations: 1.755 MB / 469.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006936/0.3492, allocations: 0.9946 MB / 470.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006235/0.3554, allocations: 5.65 MB / 476.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3554, allocations: 0 / 476.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.3555, allocations: 1.719 kB / 476.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002557/0.3557, allocations: 0 / 476.4 MB, free: 13.94 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.02312/0.3788, allocations: 6.064 MB / 482.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.3789, allocations: 13.56 kB / 482.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002359/0.3813, allocations: 0.8877 MB / 483.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01134/0.3926, allocations: 3.344 MB / 486.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004717/0.3974, allocations: 2.024 MB / 488.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.3976, allocations: 233.2 kB / 488.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007449/0.3983, allocations: 313.9 kB / 489.2 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01995/0.4183, allocations: 13.43 MB / 0.4909 GB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001336/0.4185, allocations: 55.52 kB / 0.4909 GB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005505/0.419, allocations: 159.8 kB / 0.4911 GB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004998/0.424, allocations: 3.084 MB / 0.4941 GB, free: 8.621 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02527/0.4493, allocations: 11.88 MB / 0.5057 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06254/0.5119, allocations: 47.96 MB / 0.5525 GB, free: 11.51 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/0.523, allocations: 3.762 MB / 0.5562 GB, free: 7.488 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002605/0.5257, allocations: 1.374 MB / 0.5576 GB, free: 6.105 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01544/0.5412, allocations: 9.225 MB / 0.5666 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/0.5412, allocations: 51.5 kB / 0.5666 GB, free: 12.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=202): time 4.999e-06/0.5413, allocations: 0 / 0.5666 GB, free: 12.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=211): time 0.02262/0.5639, allocations: 10.22 MB / 0.5766 GB, free: 1.719 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.817e-05/0.564, allocations: 149.8 kB / 0.5767 GB, free: 1.539 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1977/0.7617, allocations: 5.116 MB / 0.5817 GB, free: 123.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003889/0.7621, allocations: 53.41 kB / 0.5818 GB, free: 123.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002237/0.7644, allocations: 3.932 MB / 0.5856 GB, free: 122 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009732/0.7653, allocations: 0.8287 MB / 0.5864 GB, free: 121.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004362/0.7658, allocations: 156.2 kB / 0.5866 GB, free: 121.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003729/0.7662, allocations: 0.6424 MB / 0.5872 GB, free: 121.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003626/0.7698, allocations: 2.213 MB / 0.5894 GB, free: 121 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005043/0.7749, allocations: 7.294 MB / 0.5965 GB, free: 113.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006494/0.7814, allocations: 3.999 MB / 0.6004 GB, free: 111.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001583/0.7816, allocations: 56.53 kB / 0.6005 GB, free: 111.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01598/0.7976, allocations: 9.119 MB / 0.6094 GB, free: 108.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.838e-05/0.7977, allocations: 83.22 kB / 0.6094 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000208/0.7979, allocations: 180.6 kB / 0.6096 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002237/0.7981, allocations: 263.1 kB / 0.6099 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00548/0.8036, allocations: 1.845 MB / 0.6117 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005611/0.8042, allocations: 354 kB / 0.612 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006045/0.8102, allocations: 377.7 kB / 0.6124 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001454/0.8117, allocations: 0.49 MB / 0.6128 GB, free: 107.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005805/0.8175, allocations: 2.66 MB / 0.6154 GB, free: 106.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/0.8186, allocations: 421.3 kB / 0.6158 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003814/0.8224, allocations: 1.948 MB / 0.6177 GB, free: 105.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000113/0.8226, allocations: 35.89 kB / 0.6178 GB, free: 105.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.552e-05/0.8226, allocations: 3.406 kB / 0.6178 GB, free: 105.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.071e-05/0.8226, allocations: 9.484 kB / 0.6178 GB, free: 105.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01351/0.8361, allocations: 7.762 MB / 0.6254 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.09e-05/0.8362, allocations: 15.72 kB / 0.6254 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.8373, allocations: 302.1 kB / 0.6257 GB, free: 102.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001512/0.8375, allocations: 37.8 kB / 0.6257 GB, free: 102.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001137/0.8376, allocations: 54.64 kB / 0.6258 GB, free: 102.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007083/0.8383, allocations: 1.294 MB / 0.627 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.399e-05/0.8383, allocations: 22.94 kB / 0.6271 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004859/0.8432, allocations: 4.365 MB / 0.6313 GB, free: 98.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001898/0.8451, allocations: 0.6991 MB / 0.632 GB, free: 98.26 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004315/0.8455, allocations: 43.25 kB / 0.632 GB, free: 98.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001242/0.8468, allocations: 78.61 kB / 0.6321 GB, free: 98.22 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.847, allocations: 151 kB / 0.6323 GB, free: 98.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001131/0.8471, allocations: 81.16 kB / 0.6323 GB, free: 98.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005018/0.8521, allocations: 3.178 MB / 0.6354 GB, free: 97.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.8521, allocations: 0 / 0.6354 GB, free: 97.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00684/0.859, allocations: 1.106 MB / 0.6365 GB, free: 96.71 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004715/0.8637, allocations: 5.065 MB / 0.6415 GB, free: 91.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00832/0.8721, allocations: 5.117 MB / 0.6465 GB, free: 87.33 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.275e-05/0.8721, allocations: 0.5625 kB / 0.6465 GB, free: 87.33 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0016/0.8737, allocations: 1.239 MB / 0.6477 GB, free: 86.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003686/0.8774, allocations: 0.5341 MB / 0.6482 GB, free: 85.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06893/0.9463, allocations: 40.16 MB / 0.6874 GB, free: 43.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007001/0.9534, allocations: 3.777 MB / 0.6911 GB, free: 39.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006232/0.9596, allocations: 2.46 MB / 0.6935 GB, free: 36.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003383/0.9631, allocations: 2.206 MB / 0.6957 GB, free: 34.74 MB / 446.1 MB Notification: Performance of SimCode: time 1.422e-06/0.9631, allocations: 0 / 0.6957 GB, free: 34.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3046/1.268, allocations: 85.66 MB / 0.7793 GB, free: 112.3 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001244/1.268, allocations: 210.2 kB / 0.7795 GB, free: 112.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.654/4.922, allocations: 0 / 0.7795 GB, free: 112.1 MB / 462.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/linux/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) Environment - environmentSimulation: