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.001601/0.001601, allocations: 173.7 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 221.5 MB / 229.6 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009656/0.000965, allocations: 102 kB / 280.5 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03748/0.03748, allocations: 8.834 MB / 340.1 MB, free: 6.406 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.654e-05/1.664e-05, allocations: 1.438 kB / 398.8 MB, free: 47.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1036, allocations: 52.4 MB / 451.2 MB, free: 4.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3907/0.4944, allocations: 93.38 MB / 0.5318 GB, free: 23.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.4947, allocations: 94.02 kB / 0.5319 GB, free: 23.85 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.239/0.7338, allocations: 97.49 MB / 0.6271 GB, free: 5.297 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.7338, allocations: 4 kB / 0.6271 GB, free: 5.293 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001984/0.734, allocations: 87.67 kB / 0.6272 GB, free: 5.211 MB / 394.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.02853/0.7626, allocations: 5.189 MB / 0.6322 GB, free: 15.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.7626, allocations: 20.02 kB / 0.6323 GB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01712/0.7798, allocations: 3.608 MB / 0.6358 GB, free: 12.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007835/0.7876, allocations: 2.64 MB / 0.6384 GB, free: 9.652 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003926/0.7881, allocations: 152 kB / 0.6385 GB, free: 9.504 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003243/0.7913, allocations: 279.9 kB / 0.6388 GB, free: 9.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01696/0.8083, allocations: 8.439 MB / 0.647 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03004/0.8384, allocations: 12.52 MB / 0.6592 GB, free: 3.098 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003286/0.8387, allocations: 67.34 kB / 0.6593 GB, free: 3.031 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002503/0.8413, allocations: 43.95 kB / 0.6593 GB, free: 2.988 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002662/0.8439, allocations: 1.523 MB / 0.6608 GB, free: 1.469 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.328/1.172, allocations: 54.59 MB / 0.7141 GB, free: 72.11 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005591/1.178, allocations: 3.963 MB / 0.718 GB, free: 70.32 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002253/1.18, allocations: 1.229 MB / 0.7192 GB, free: 70.28 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01281/1.193, allocations: 6.492 MB / 0.7256 GB, free: 67.56 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/1.193, allocations: 42.81 kB / 0.7256 GB, free: 67.52 MB / 458.7 MB Notification: Performance of pre-optimization done (n=184): time 5.671e-06/1.193, allocations: 3.594 kB / 0.7256 GB, free: 67.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=193): time 0.01538/1.208, allocations: 8.093 MB / 0.7335 GB, free: 64.25 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.559e-05/1.208, allocations: 148.6 kB / 0.7336 GB, free: 64.09 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009167/1.218, allocations: 3.878 MB / 0.7374 GB, free: 63.68 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003656/1.218, allocations: 30.7 kB / 0.7375 GB, free: 63.65 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002884/1.221, allocations: 4.072 MB / 0.7414 GB, free: 61.28 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000799/1.222, allocations: 0.7633 MB / 0.7422 GB, free: 60.87 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007052/1.222, allocations: 0 / 0.7422 GB, free: 60.87 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006806/1.223, allocations: 0.6564 MB / 0.7428 GB, free: 60.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003222/1.226, allocations: 2.092 MB / 0.7449 GB, free: 60.52 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005591/1.232, allocations: 7.363 MB / 0.7521 GB, free: 53.62 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00616/1.238, allocations: 3.98 MB / 0.7559 GB, free: 53.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002024/1.238, allocations: 58.84 kB / 0.756 GB, free: 53.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.0181/1.257, allocations: 8.194 MB / 0.764 GB, free: 52.69 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002937/1.257, allocations: 91.5 kB / 0.7641 GB, free: 52.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003779/1.257, allocations: 189.4 kB / 0.7643 GB, free: 52.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003358/1.258, allocations: 283.2 kB / 0.7645 GB, free: 52.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007025/1.265, allocations: 1.921 MB / 0.7664 GB, free: 52.51 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004997/1.265, allocations: 367.8 kB / 0.7668 GB, free: 52.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006737/1.272, allocations: 230.4 kB / 0.767 GB, free: 52.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001902/1.274, allocations: 0.529 MB / 0.7675 GB, free: 52.41 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 869 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1036): * Single equations (assignments): 1029 * 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.002303/1.276, allocations: 0.5475 MB / 0.768 GB, free: 52 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003352/1.28, allocations: 1.952 MB / 0.7699 GB, free: 51.72 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007574/1.28, allocations: 371.3 kB / 0.7703 GB, free: 51.52 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003406/1.284, allocations: 1.636 MB / 0.7719 GB, free: 50.92 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001371/1.284, allocations: 37.23 kB / 0.7719 GB, free: 50.92 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.938e-05/1.284, allocations: 5.453 kB / 0.7719 GB, free: 50.92 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.826e-05/1.284, allocations: 10.2 kB / 0.7719 GB, free: 50.91 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01385/1.298, allocations: 5.758 MB / 0.7776 GB, free: 48.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.042e-05/1.298, allocations: 19.39 kB / 0.7776 GB, free: 48.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/1.299, allocations: 272.2 kB / 0.7778 GB, free: 48.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001667/1.299, allocations: 31.86 kB / 0.7779 GB, free: 48.55 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001768/1.299, allocations: 27.16 kB / 0.7779 GB, free: 48.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007238/1.3, allocations: 1.242 MB / 0.7791 GB, free: 47.31 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.779e-06/1.3, allocations: 15.69 kB / 0.7791 GB, free: 47.31 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004641/1.305, allocations: 4.878 MB / 0.7839 GB, free: 43.88 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/1.306, allocations: 450.9 kB / 0.7843 GB, free: 43.55 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007319/1.307, allocations: 15.31 kB / 0.7843 GB, free: 43.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0016/1.308, allocations: 39.2 kB / 0.7844 GB, free: 43.55 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/1.308, allocations: 126.8 kB / 0.7845 GB, free: 43.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/1.309, allocations: 65.89 kB / 0.7846 GB, free: 43.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004516/1.313, allocations: 2.522 MB / 0.787 GB, free: 42.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.2e-07/1.313, allocations: 0 / 0.787 GB, free: 42.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007837/1.321, allocations: 0.9523 MB / 0.788 GB, free: 41.49 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * Number of states: 2 (constantSpeed.phi,gearB.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 136 * 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.008537/1.33, allocations: 7.704 MB / 0.7955 GB, free: 33.81 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01057/1.34, allocations: 4.724 MB / 0.8001 GB, free: 29.53 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.601e-05/1.34, allocations: 8.25 kB / 0.8001 GB, free: 29.52 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/1.342, allocations: 1.062 MB / 0.8011 GB, free: 28.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003078/1.346, allocations: 350.6 kB / 0.8015 GB, free: 28.23 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03642/1.382, allocations: 9.748 MB / 0.811 GB, free: 19.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00841/1.39, allocations: 3.865 MB / 0.8148 GB, free: 16.66 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01131/1.402, allocations: 2.466 MB / 0.8172 GB, free: 15.14 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004971/1.407, allocations: 2.2 MB / 0.8193 GB, free: 13.11 MB / 458.7 MB Notification: Performance of SimCode: time 1.142e-06/1.407, allocations: 0 / 0.8193 GB, free: 13.11 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3883/1.795, allocations: 76.87 MB / 0.8944 GB, free: 120.4 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001401/1.795, allocations: 136.3 kB / 0.8945 GB, free: 120.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.353/6.149, allocations: 0 / 0.8945 GB, free: 120.3 MB / 490.7 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)