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.005778/0.005778, allocations: 103.5 kB / 15.73 MB, free: 6.492 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.001458/0.001458, allocations: 188.1 kB / 16.67 MB, free: 6.379 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1622/0.1622, allocations: 9.092 MB / 299.6 MB, free: 1.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 68.08 kB / 414.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2585, allocations: 51.43 MB / 465.6 MB, free: 17.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01244/0.2709, allocations: 12.91 MB / 478.5 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007192/0.2782, allocations: 3.58 MB / 482.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00236/0.2806, allocations: 54.34 kB / 482.1 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0017/0.2823, allocations: 0.7474 MB / 482.9 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004438/0.2868, allocations: 2.046 MB / 484.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005157/0.2873, allocations: 150.8 kB / 485.1 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004631/0.2919, allocations: 4.103 MB / 489.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002189/0.2941, allocations: 1.979 MB / 491.2 MB, free: 240 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002394/0.2966, allocations: 1.41 MB / 492.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002643/0.2992, allocations: 2.013 MB / 494.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007386/0.3, allocations: 317.1 kB / 494.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001833/0.3018, allocations: 0.8927 MB / 495.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001628/0.3034, allocations: 1.896 MB / 497.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002265/0.3057, allocations: 2.457 MB / 0.4884 GB, free: 9.566 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007596/0.3133, allocations: 7.655 MB / 0.4959 GB, free: 1.883 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3134, allocations: 4 kB / 0.4959 GB, free: 1.879 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3134, allocations: 0 / 0.4959 GB, free: 1.879 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001633/0.3135, allocations: 0 / 0.4959 GB, free: 1.879 MB / 366.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.02374/0.3373, allocations: 7.059 MB / 0.5028 GB, free: 10.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.3373, allocations: 8.031 kB / 0.5028 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00205/0.3394, allocations: 0.8829 MB / 0.5037 GB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01171/0.3511, allocations: 3.262 MB / 0.5068 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004599/0.3558, allocations: 2.074 MB / 0.5089 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002331/0.356, allocations: 237.7 kB / 0.5091 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001147/0.3572, allocations: 307.7 kB / 0.5094 GB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02203/0.3792, allocations: 13.45 MB / 0.5225 GB, free: 5.574 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000169/0.3794, allocations: 51.53 kB / 0.5226 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009881/0.3804, allocations: 151.8 kB / 0.5227 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004941/0.3854, allocations: 3.08 MB / 0.5257 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02348/0.4089, allocations: 11.95 MB / 0.5374 GB, free: 6.328 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06404/0.473, allocations: 47.8 MB / 0.5841 GB, free: 5.242 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01203/0.485, allocations: 3.79 MB / 0.5878 GB, free: 1.203 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.189/0.674, allocations: 1.367 MB / 0.5891 GB, free: 109.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01317/0.6872, allocations: 9.201 MB / 0.5981 GB, free: 104.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.6873, allocations: 46.41 kB / 0.5981 GB, free: 104.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=202): time 5.09e-06/0.6873, allocations: 0 / 0.5981 GB, free: 104.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=211): time 0.01959/0.7069, allocations: 10.25 MB / 0.6082 GB, free: 99.06 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.707, allocations: 150 kB / 0.6083 GB, free: 98.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006561/0.7136, allocations: 5.145 MB / 0.6133 GB, free: 97.02 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002189/0.7138, allocations: 56.25 kB / 0.6134 GB, free: 96.97 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001812/0.7156, allocations: 3.929 MB / 0.6172 GB, free: 93.93 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006398/0.7163, allocations: 0.8365 MB / 0.618 GB, free: 93.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001713/0.718, allocations: 1.602 MB / 0.6196 GB, free: 92.55 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.511e-05/0.7181, allocations: 306 kB / 0.6199 GB, free: 92.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00315/0.7212, allocations: 2.242 MB / 0.6221 GB, free: 91.55 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004686/0.7259, allocations: 7.326 MB / 0.6292 GB, free: 83.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007617/0.7336, allocations: 10.38 MB / 0.6394 GB, free: 74.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001292/0.7337, allocations: 52.38 kB / 0.6394 GB, free: 74.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01222/0.7459, allocations: 9.187 MB / 0.6484 GB, free: 68.37 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.545e-05/0.746, allocations: 84.19 kB / 0.6485 GB, free: 68.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/0.7462, allocations: 184 kB / 0.6486 GB, free: 68.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001538/0.7464, allocations: 239.9 kB / 0.6489 GB, free: 67.88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00451/0.7509, allocations: 1.84 MB / 0.6507 GB, free: 66.03 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001816/0.7511, allocations: 353.8 kB / 0.651 GB, free: 65.69 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004874/0.756, allocations: 375 kB / 0.6514 GB, free: 65.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000524/0.7565, allocations: 0.4922 MB / 0.6518 GB, free: 64.83 MB / 462.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.003085/0.7596, allocations: 2.662 MB / 0.6544 GB, free: 62.16 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006993/0.7603, allocations: 418.5 kB / 0.6548 GB, free: 61.75 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002645/0.7629, allocations: 1.958 MB / 0.6568 GB, free: 59.78 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.997e-05/0.7631, allocations: 39.97 kB / 0.6568 GB, free: 59.74 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.7631, allocations: 0 / 0.6568 GB, free: 59.74 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.7631, allocations: 11.97 kB / 0.6568 GB, free: 59.73 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009797/0.7729, allocations: 7.759 MB / 0.6644 GB, free: 51.78 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-05/0.7729, allocations: 18.94 kB / 0.6644 GB, free: 51.76 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.774, allocations: 303.7 kB / 0.6647 GB, free: 51.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001509/0.7742, allocations: 36.84 kB / 0.6647 GB, free: 51.43 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.47e-05/0.7743, allocations: 55.5 kB / 0.6648 GB, free: 51.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000764/0.775, allocations: 1.382 MB / 0.6661 GB, free: 49.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.027e-05/0.775, allocations: 27.81 kB / 0.6662 GB, free: 49.83 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004208/0.7793, allocations: 4.377 MB / 0.6704 GB, free: 45.25 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/0.7805, allocations: 0.6712 MB / 0.6711 GB, free: 44.56 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004733/0.7809, allocations: 55.36 kB / 0.6711 GB, free: 44.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.7822, allocations: 68 kB / 0.6712 GB, free: 44.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.7824, allocations: 152.1 kB / 0.6714 GB, free: 44.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.7825, allocations: 79.91 kB / 0.6714 GB, free: 44.21 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00367/0.7862, allocations: 3.218 MB / 0.6746 GB, free: 41 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7862, allocations: 0 / 0.6746 GB, free: 41 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005552/0.7918, allocations: 1.095 MB / 0.6756 GB, free: 39.92 MB / 462.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.00446/0.7962, allocations: 5.088 MB / 0.6806 GB, free: 34.63 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006462/0.8027, allocations: 5.206 MB / 0.6857 GB, free: 29.47 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.248e-05/0.8028, allocations: 4.75 kB / 0.6857 GB, free: 29.47 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001465/0.8042, allocations: 1.225 MB / 0.6869 GB, free: 28.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003098/0.8073, allocations: 0.5627 MB / 0.6874 GB, free: 27.68 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06893/0.8763, allocations: 54.13 MB / 0.7403 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005522/0.8818, allocations: 3.771 MB / 0.744 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005642/0.8875, allocations: 2.452 MB / 0.7464 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003112/0.8906, allocations: 2.206 MB / 0.7485 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of SimCode: time 9.02e-07/0.8907, allocations: 0 / 0.7485 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3252/1.216, allocations: 72.05 MB / 0.8189 GB, free: 164 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.55/26.76, allocations: 0 / 0.8189 GB, free: 164 MB / 0.5294 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/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)