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.0009282/0.0009323, allocations: 103.1 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.0009358/0.000936, allocations: 173.3 kB / 15.95 MB, free: 212 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.379/1.379, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.2073/0.2073, allocations: 9.1 MB / 300.1 MB, free: 2.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003372, allocations: 11.98 kB / 363.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1142, allocations: 52.43 MB / 415.5 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.231/0.3452, allocations: 26.86 MB / 442.4 MB, free: 28.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01484/0.3601, allocations: 7.017 MB / 449.4 MB, free: 24.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005932/0.3661, allocations: 120.3 kB / 449.5 MB, free: 24.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004057/0.3702, allocations: 1.304 MB / 450.8 MB, free: 23.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01394/0.3841, allocations: 4.127 MB / 455 MB, free: 21.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001498/0.3856, allocations: 129.3 kB / 455.1 MB, free: 21.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005147/0.3908, allocations: 2.357 MB / 457.4 MB, free: 20.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002911/0.3937, allocations: 1.868 MB / 459.3 MB, free: 19.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002771/0.3965, allocations: 1.099 MB / 460.4 MB, free: 19.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003149/0.3997, allocations: 1.527 MB / 461.9 MB, free: 18.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000722/0.4005, allocations: 186 kB / 462.1 MB, free: 18.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002327/0.4028, allocations: 0.6828 MB / 462.8 MB, free: 18.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002392/0.4052, allocations: 1.63 MB / 464.4 MB, free: 18.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002136/0.4074, allocations: 1.007 MB / 465.4 MB, free: 17.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008005/0.4154, allocations: 5.644 MB / 471.1 MB, free: 16.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.4154, allocations: 0 / 471.1 MB, free: 16.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4154, allocations: 0 / 471.1 MB, free: 16.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003142/0.4157, allocations: 0 / 471.1 MB, free: 16.1 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.02439/0.4401, allocations: 6.195 MB / 477.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.4402, allocations: 8.375 kB / 477.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003125/0.4434, allocations: 0.8823 MB / 478.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01474/0.4581, allocations: 3.991 MB / 482.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007162/0.4653, allocations: 2.01 MB / 484.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003235/0.4657, allocations: 233.2 kB / 484.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002243/0.468, allocations: 309.2 kB / 484.7 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02736/0.4953, allocations: 13.47 MB / 498.2 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001534/0.4955, allocations: 55.47 kB / 498.2 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008326/0.4964, allocations: 159.8 kB / 498.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005768/0.5021, allocations: 3.084 MB / 0.4897 GB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02771/0.5299, allocations: 11.95 MB / 0.5014 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06573/0.5957, allocations: 47.98 MB / 0.5482 GB, free: 15.69 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01182/0.6075, allocations: 3.775 MB / 0.5519 GB, free: 11.65 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002842/0.6104, allocations: 2.751 MB / 0.5546 GB, free: 8.465 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/0.6105, allocations: 55.88 kB / 0.5547 GB, free: 8.398 MB / 430.1 MB Notification: Performance of pre-optimization done (n=247): time 6.251e-06/0.6105, allocations: 0 / 0.5547 GB, free: 8.398 MB / 430.1 MB Notification: Performance of matching and sorting (n=265): time 0.03725/0.6478, allocations: 12.89 MB / 0.5673 GB, free: 11.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.854e-05/0.6479, allocations: 150.5 kB / 0.5674 GB, free: 11.11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007621/0.6555, allocations: 4.953 MB / 0.5722 GB, free: 6.145 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004185/0.656, allocations: 61.7 kB / 0.5723 GB, free: 6.078 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002648/0.6587, allocations: 3.809 MB / 0.576 GB, free: 2.215 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001171/0.6598, allocations: 1.003 MB / 0.577 GB, free: 1.199 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003724/0.6602, allocations: 160 kB / 0.5771 GB, free: 1.043 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004541/0.6607, allocations: 0.6492 MB / 0.5778 GB, free: 396 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2767/0.9373, allocations: 2.285 MB / 0.58 GB, free: 122.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008897/0.9463, allocations: 7.328 MB / 0.5872 GB, free: 116.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007457/0.9538, allocations: 4.093 MB / 0.5912 GB, free: 115.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002172/0.9541, allocations: 49.56 kB / 0.5912 GB, free: 115.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=1065) (initialization): time 0.01806/0.9722, allocations: 9.311 MB / 0.6003 GB, free: 112.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.9723, allocations: 85.78 kB / 0.6004 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002645/0.9726, allocations: 178.7 kB / 0.6006 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002531/0.9729, allocations: 263.4 kB / 0.6008 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006309/0.9792, allocations: 1.884 MB / 0.6026 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002831/0.9795, allocations: 351.7 kB / 0.603 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007001/0.9865, allocations: 376 kB / 0.6033 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00117/0.9877, allocations: 0.5055 MB / 0.6038 GB, free: 111.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 819 * 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 (1015): * Single equations (assignments): 1008 * 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.006354/0.9941, allocations: 2.662 MB / 0.6064 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009218/0.995, allocations: 429.6 kB / 0.6068 GB, free: 110.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004605/0.9996, allocations: 2.564 MB / 0.6093 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001336/0.9998, allocations: 42.69 kB / 0.6094 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.581e-05/0.9998, allocations: 6.281 kB / 0.6094 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.052e-05/0.9998, allocations: 11 kB / 0.6094 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02107/1.021, allocations: 10.74 MB / 0.6199 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.889e-05/1.021, allocations: 21.56 kB / 0.6199 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001634/1.023, allocations: 393.4 kB / 0.6203 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000183/1.023, allocations: 50.97 kB / 0.6203 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001507/1.023, allocations: 71.77 kB / 0.6204 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008131/1.024, allocations: 1.323 MB / 0.6217 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.812e-05/1.024, allocations: 35.27 kB / 0.6217 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007398/1.031, allocations: 8.511 MB / 0.63 GB, free: 96.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002371/1.034, allocations: 0.7466 MB / 0.6308 GB, free: 96.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008626/1.035, allocations: 64.52 kB / 0.6308 GB, free: 96.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001685/1.036, allocations: 85.66 kB / 0.6309 GB, free: 96.35 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002959/1.037, allocations: 204.7 kB / 0.6311 GB, free: 96.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001562/1.037, allocations: 109.6 kB / 0.6312 GB, free: 96.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005691/1.042, allocations: 3.099 MB / 0.6342 GB, free: 95.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.5e-07/1.042, allocations: 0 / 0.6342 GB, free: 95.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008176/1.051, allocations: 1.124 MB / 0.6353 GB, free: 95.05 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 98 * 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 (214): * Single equations (assignments): 206 * 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.00926/1.06, allocations: 13.8 MB / 0.6488 GB, free: 81.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009551/1.07, allocations: 5.396 MB / 0.6541 GB, free: 77.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.197e-05/1.07, allocations: 4 kB / 0.6541 GB, free: 77.13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002285/1.072, allocations: 1.466 MB / 0.6555 GB, free: 75.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003297/1.075, allocations: 0.5405 MB / 0.656 GB, free: 75.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3449/1.42, allocations: 164.4 MB / 0.8166 GB, free: 65.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004357/1.424, allocations: 3.91 MB / 0.8204 GB, free: 64.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006262/1.431, allocations: 2.566 MB / 0.8229 GB, free: 64.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00303/1.434, allocations: 2.226 MB / 0.8251 GB, free: 62.73 MB / 462.1 MB Notification: Performance of SimCode: time 1.212e-06/1.434, allocations: 4 kB / 0.8251 GB, free: 62.72 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1435/1.577, allocations: 87.17 MB / 0.9102 GB, free: 9.602 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001971/1.578, allocations: 205.7 kB / 0.9104 GB, free: 9.359 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.397/5.975, allocations: 6.078 kB / 0.9104 GB, free: 9.355 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/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: