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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.003991/0.003991, allocations: 172 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.231/1.231, allocations: 223.2 MB / 239 MB, free: 96 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008004/0.0008004, allocations: 100.2 kB / 290.2 MB, free: 4.578 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04272/0.04272, allocations: 8.935 MB / 350.2 MB, free: 4.203 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003364, allocations: 8 kB / 413.2 MB, free: 5.176 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1811, allocations: 52.39 MB / 465.6 MB, free: 69.26 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08882/0.2699, allocations: 94.12 MB / 0.5466 GB, free: 7.008 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/0.2702, allocations: 95.95 kB / 0.5467 GB, free: 6.914 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3965/0.6667, allocations: 99.53 MB / 0.6439 GB, free: 10.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.6668, allocations: 0 / 0.6439 GB, free: 10.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001866/0.667, allocations: 84 kB / 0.644 GB, free: 10.69 MB / 378.7 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.02981/0.6968, allocations: 5.345 MB / 0.6492 GB, free: 5.273 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.6969, allocations: 12.03 kB / 0.6492 GB, free: 5.262 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003774/0.7007, allocations: 0.9531 MB / 0.6501 GB, free: 4.297 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01428/0.7149, allocations: 3.609 MB / 0.6537 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007442/0.7224, allocations: 2.653 MB / 0.6563 GB, free: 13.97 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004024/0.7229, allocations: 357.3 kB / 0.6566 GB, free: 13.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002413/0.7253, allocations: 479.7 kB / 0.6571 GB, free: 13.15 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02945/0.7548, allocations: 13.55 MB / 0.6703 GB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002829/0.7551, allocations: 71.33 kB / 0.6704 GB, free: 14.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001965/0.7571, allocations: 239.8 kB / 0.6706 GB, free: 14.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002449/0.7595, allocations: 1.523 MB / 0.6721 GB, free: 12.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02442/0.784, allocations: 11.98 MB / 0.6838 GB, free: 0.582 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2648/1.049, allocations: 55.71 MB / 0.7382 GB, free: 53.85 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01187/1.061, allocations: 3.838 MB / 0.7419 GB, free: 52.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007907/1.069, allocations: 7.635 MB / 0.7494 GB, free: 48.22 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/1.069, allocations: 54.61 kB / 0.7494 GB, free: 48.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=208): time 3.787e-06/1.069, allocations: 0 / 0.7494 GB, free: 48.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=226): time 0.017/1.086, allocations: 11.47 MB / 0.7606 GB, free: 44.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/1.086, allocations: 151.6 kB / 0.7608 GB, free: 44.04 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00532/1.091, allocations: 4.573 MB / 0.7653 GB, free: 43.64 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001173/1.091, allocations: 55.42 kB / 0.7653 GB, free: 43.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001776/1.093, allocations: 3.903 MB / 0.7691 GB, free: 41.37 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000546/1.094, allocations: 0.8857 MB / 0.77 GB, free: 40.88 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/1.094, allocations: 158.8 kB / 0.7701 GB, free: 40.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003134/1.094, allocations: 0.6429 MB / 0.7708 GB, free: 40.56 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002865/1.097, allocations: 2.232 MB / 0.7729 GB, free: 40.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005336/1.102, allocations: 7.259 MB / 0.78 GB, free: 34.02 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004312/1.107, allocations: 4.023 MB / 0.784 GB, free: 33.98 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-05/1.107, allocations: 52.16 kB / 0.784 GB, free: 33.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=1053) (initialization): time 0.01113/1.118, allocations: 9.175 MB / 0.793 GB, free: 31.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.085e-05/1.118, allocations: 82.91 kB / 0.793 GB, free: 31.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001195/1.118, allocations: 179.2 kB / 0.7932 GB, free: 31.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001749/1.118, allocations: 261.1 kB / 0.7935 GB, free: 31.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00463/1.123, allocations: 1.87 MB / 0.7953 GB, free: 31.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002263/1.123, allocations: 349 kB / 0.7956 GB, free: 31.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004581/1.128, allocations: 381.3 kB / 0.796 GB, free: 31.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000476/1.128, allocations: 0.4918 MB / 0.7965 GB, free: 31.39 MB / 442.7 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 (1003): * Single equations (assignments): 996 * 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.003055/1.131, allocations: 2.654 MB / 0.7991 GB, free: 30.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005126/1.132, allocations: 424.1 kB / 0.7995 GB, free: 29.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002924/1.135, allocations: 2.057 MB / 0.8015 GB, free: 29.04 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001061/1.135, allocations: 43.3 kB / 0.8015 GB, free: 29.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/1.135, allocations: 0 / 0.8015 GB, free: 29.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.486e-05/1.135, allocations: 12.34 kB / 0.8015 GB, free: 29.04 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/1.146, allocations: 8.347 MB / 0.8097 GB, free: 25.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.715e-05/1.146, allocations: 25.61 kB / 0.8097 GB, free: 25.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/1.148, allocations: 335.1 kB / 0.81 GB, free: 24.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001282/1.148, allocations: 42.97 kB / 0.8101 GB, free: 24.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/1.148, allocations: 57.7 kB / 0.8101 GB, free: 24.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006667/1.148, allocations: 1.312 MB / 0.8114 GB, free: 23.45 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.027e-05/1.149, allocations: 23.88 kB / 0.8114 GB, free: 23.42 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004583/1.153, allocations: 7.028 MB / 0.8183 GB, free: 16.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008876/1.154, allocations: 0.5073 MB / 0.8188 GB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003766/1.154, allocations: 60.41 kB / 0.8188 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/1.156, allocations: 71.41 kB / 0.8189 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/1.156, allocations: 169.5 kB / 0.8191 GB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/1.156, allocations: 88.75 kB / 0.8192 GB, free: 15.21 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003454/1.159, allocations: 3.171 MB / 0.8223 GB, free: 12.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.159, allocations: 0 / 0.8223 GB, free: 12.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004711/1.164, allocations: 1.124 MB / 0.8233 GB, free: 11.48 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 74 * 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 (177): * Single equations (assignments): 169 * 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.005249/1.169, allocations: 11.17 MB / 0.8343 GB, free: 224 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009759/1.179, allocations: 5.379 MB / 0.8395 GB, free: 12.15 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/1.179, allocations: 4 kB / 0.8395 GB, free: 12.15 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/1.181, allocations: 1.283 MB / 0.8408 GB, free: 11 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00204/1.183, allocations: 0.5249 MB / 0.8413 GB, free: 10.55 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2763/1.459, allocations: 163.7 MB / 1.001 GB, free: 54.51 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003501/1.463, allocations: 3.886 MB / 1.005 GB, free: 53.7 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005352/1.468, allocations: 2.447 MB / 1.007 GB, free: 53.65 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002322/1.471, allocations: 2.221 MB / 1.009 GB, free: 53.64 MB / 0.4948 GB Notification: Performance of SimCode: time 5.611e-06/1.471, allocations: 0 / 1.009 GB, free: 53.64 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2732/1.744, allocations: 86.47 MB / 1.094 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001354/1.744, allocations: 200.1 kB / 1.094 GB, free: 125.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.852/5.595, allocations: 0 / 1.094 GB, free: 125.5 MB / 0.4948 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/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)