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.001407/0.001407, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001665/0.001665, allocations: 192.8 kB / 16.13 MB, free: 6.707 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.34/1.34, allocations: 222.9 MB / 239.8 MB, free: 4.648 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1422/0.1422, allocations: 9.098 MB / 299 MB, free: 1.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 63.89 kB / 361.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.097/0.09913, allocations: 51.44 MB / 412.8 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.1817/0.2809, allocations: 31.55 MB / 444.3 MB, free: 25.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0123/0.2932, allocations: 7.077 MB / 451.4 MB, free: 21.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005083/0.2983, allocations: 117 kB / 451.5 MB, free: 21.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001629/0.3, allocations: 0.6584 MB / 452.2 MB, free: 21.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003542/0.3035, allocations: 1.921 MB / 454.1 MB, free: 20.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004767/0.304, allocations: 129.1 kB / 454.2 MB, free: 20.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004226/0.3083, allocations: 5.689 MB / 459.9 MB, free: 18.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001711/0.31, allocations: 1.813 MB / 461.7 MB, free: 17.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001186/0.3112, allocations: 1.208 MB / 462.9 MB, free: 17.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001575/0.3128, allocations: 2.091 MB / 465 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003572/0.3132, allocations: 192.6 kB / 465.2 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001229/0.3144, allocations: 0.8109 MB / 466 MB, free: 16.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001062/0.3155, allocations: 1.809 MB / 467.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001552/0.317, allocations: 2.368 MB / 470.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006298/0.3233, allocations: 7.072 MB / 477.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3234, allocations: 0 / 477.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3234, allocations: 0 / 477.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001939/0.3236, allocations: 0 / 477.3 MB, free: 11.18 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.02414/0.3477, allocations: 7.061 MB / 484.3 MB, free: 8.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3478, allocations: 10.12 kB / 484.4 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001236/0.349, allocations: 0.8894 MB / 485.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01043/0.3595, allocations: 3.254 MB / 488.5 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00316/0.3626, allocations: 2.051 MB / 490.6 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.3628, allocations: 236.5 kB / 490.8 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005945/0.3634, allocations: 310 kB / 491.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01891/0.3823, allocations: 13.46 MB / 0.4927 GB, free: 8.195 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.871e-05/0.3824, allocations: 55.47 kB / 0.4928 GB, free: 8.141 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005142/0.383, allocations: 162.3 kB / 0.4929 GB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004634/0.3876, allocations: 3.088 MB / 0.4959 GB, free: 4.895 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02157/0.4092, allocations: 11.94 MB / 0.5076 GB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05728/0.4665, allocations: 47.96 MB / 0.5544 GB, free: 7.727 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01166/0.4782, allocations: 3.778 MB / 0.5581 GB, free: 3.691 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002376/0.4806, allocations: 1.376 MB / 0.5595 GB, free: 2.305 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01381/0.4945, allocations: 9.221 MB / 0.5685 GB, free: 8.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.4945, allocations: 55.5 kB / 0.5685 GB, free: 8.273 MB / 446.1 MB Notification: Performance of pre-optimization done (n=202): time 5.861e-06/0.4946, allocations: 0 / 0.5685 GB, free: 8.273 MB / 446.1 MB Notification: Performance of matching and sorting (n=211): time 0.1953/0.6898, allocations: 10.24 MB / 0.5785 GB, free: 127 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.6899, allocations: 151.5 kB / 0.5787 GB, free: 126.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00831/0.6983, allocations: 5.137 MB / 0.5837 GB, free: 126 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002567/0.6985, allocations: 54.27 kB / 0.5837 GB, free: 126 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001663/0.7002, allocations: 3.931 MB / 0.5876 GB, free: 122.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005947/0.7008, allocations: 0.8382 MB / 0.5884 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001581/0.7024, allocations: 1.599 MB / 0.59 GB, free: 121.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.921e-05/0.7024, allocations: 302.9 kB / 0.5903 GB, free: 121.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002794/0.7052, allocations: 2.24 MB / 0.5924 GB, free: 120.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004542/0.7098, allocations: 7.321 MB / 0.5996 GB, free: 113 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01039/0.7202, allocations: 10.38 MB / 0.6097 GB, free: 103.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001301/0.7204, allocations: 49.81 kB / 0.6098 GB, free: 103.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01292/0.7333, allocations: 9.184 MB / 0.6187 GB, free: 100.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.7334, allocations: 86.31 kB / 0.6188 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002025/0.7336, allocations: 181.5 kB / 0.619 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00026/0.7339, allocations: 237 kB / 0.6192 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005017/0.7389, allocations: 1.849 MB / 0.621 GB, free: 99.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002543/0.7392, allocations: 352.4 kB / 0.6214 GB, free: 99.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004646/0.7438, allocations: 377.9 kB / 0.6217 GB, free: 99.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006138/0.7445, allocations: 0.4892 MB / 0.6222 GB, free: 99.66 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003613/0.7481, allocations: 2.657 MB / 0.6248 GB, free: 98.36 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006219/0.7487, allocations: 421.8 kB / 0.6252 GB, free: 98.13 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002997/0.7517, allocations: 1.962 MB / 0.6271 GB, free: 97.38 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001114/0.7518, allocations: 37.73 kB / 0.6272 GB, free: 97.38 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/0.7519, allocations: 2.609 kB / 0.6272 GB, free: 97.38 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.7519, allocations: 8.016 kB / 0.6272 GB, free: 97.38 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01074/0.7626, allocations: 7.774 MB / 0.6348 GB, free: 94.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-05/0.7627, allocations: 12.66 kB / 0.6348 GB, free: 94.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.7637, allocations: 304.3 kB / 0.6351 GB, free: 94.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001314/0.7638, allocations: 42.73 kB / 0.6351 GB, free: 94.22 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.79e-05/0.7639, allocations: 53.39 kB / 0.6352 GB, free: 94.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006877/0.7646, allocations: 1.294 MB / 0.6364 GB, free: 92.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.106e-05/0.7647, allocations: 20.12 kB / 0.6364 GB, free: 92.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004611/0.7693, allocations: 4.383 MB / 0.6407 GB, free: 89.92 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/0.7706, allocations: 0.6748 MB / 0.6414 GB, free: 89.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004419/0.771, allocations: 51.95 kB / 0.6414 GB, free: 89.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.7723, allocations: 68.69 kB / 0.6415 GB, free: 89.17 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/0.7725, allocations: 146.4 kB / 0.6416 GB, free: 89.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.7726, allocations: 83.59 kB / 0.6417 GB, free: 89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004373/0.777, allocations: 3.214 MB / 0.6448 GB, free: 86.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.777, allocations: 0 / 0.6448 GB, free: 86.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005843/0.7828, allocations: 1.096 MB / 0.6459 GB, free: 85.23 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 (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.004744/0.7876, allocations: 5.085 MB / 0.6509 GB, free: 80.35 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006966/0.7946, allocations: 5.156 MB / 0.6559 GB, free: 75.81 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/0.7946, allocations: 4 kB / 0.6559 GB, free: 75.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001441/0.796, allocations: 1.227 MB / 0.6571 GB, free: 74.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004072/0.8001, allocations: 0.5376 MB / 0.6576 GB, free: 74.24 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07687/0.877, allocations: 65.09 MB / 0.7212 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003772/0.8808, allocations: 3.769 MB / 0.7249 GB, free: 12.82 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005629/0.8865, allocations: 2.456 MB / 0.7273 GB, free: 10.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003602/0.8901, allocations: 2.202 MB / 0.7294 GB, free: 8.152 MB / 462.1 MB Notification: Performance of SimCode: time 7.61e-07/0.8901, allocations: 0 / 0.7294 GB, free: 8.152 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2636/1.154, allocations: 75.05 MB / 0.8027 GB, free: 128.6 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001276/1.154, allocations: 219.7 kB / 0.8029 GB, free: 128.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.579/4.733, allocations: 0 / 0.8029 GB, free: 128.4 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/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)