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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 107.8 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 225.6 MB / 247.8 MB, free: 3.734 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04511/0.04511, allocations: 9.232 MB / 311.9 MB, free: 1.848 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 63.89 kB / 434 MB, free: 11.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2385, allocations: 54.25 MB / 488.3 MB, free: 25.11 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01175/0.2502, allocations: 12.99 MB / 0.4895 GB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006588/0.2568, allocations: 3.594 MB / 0.493 GB, free: 13.36 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001944/0.2588, allocations: 58.81 kB / 0.4931 GB, free: 13.35 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001461/0.2602, allocations: 0.7738 MB / 0.4939 GB, free: 12.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003991/0.2642, allocations: 2.09 MB / 0.4959 GB, free: 11.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004655/0.2647, allocations: 146.4 kB / 0.496 GB, free: 11.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004613/0.2693, allocations: 4.11 MB / 0.5 GB, free: 8.809 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00191/0.2712, allocations: 1.775 MB / 0.5018 GB, free: 7.523 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002009/0.2732, allocations: 1.41 MB / 0.5032 GB, free: 6.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002165/0.2754, allocations: 2.216 MB / 0.5053 GB, free: 5.355 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006137/0.276, allocations: 316.9 kB / 0.5056 GB, free: 5.355 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001677/0.2777, allocations: 0.9224 MB / 0.5065 GB, free: 4.992 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001592/0.2793, allocations: 1.948 MB / 0.5084 GB, free: 3.621 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001866/0.2811, allocations: 2.461 MB / 0.5108 GB, free: 1.145 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009337/0.2905, allocations: 7.691 MB / 0.5183 GB, free: 9.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.2905, allocations: 0 / 0.5183 GB, free: 9.422 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2905, allocations: 0 / 0.5183 GB, free: 9.422 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002287/0.2907, allocations: 3.984 kB / 0.5183 GB, free: 9.418 MB / 382.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.02373/0.3144, allocations: 7.197 MB / 0.5254 GB, free: 2.133 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.3145, allocations: 8.031 kB / 0.5254 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002003/0.3165, allocations: 0.8829 MB / 0.5262 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01177/0.3283, allocations: 3.293 MB / 0.5295 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005319/0.3336, allocations: 2.079 MB / 0.5315 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.3338, allocations: 241.6 kB / 0.5317 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008553/0.3347, allocations: 315.7 kB / 0.532 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02195/0.3566, allocations: 13.44 MB / 0.5451 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/0.3567, allocations: 55.53 kB / 0.5452 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000482/0.3572, allocations: 155.8 kB / 0.5454 GB, free: 12.72 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00488/0.3621, allocations: 3.088 MB / 0.5484 GB, free: 9.633 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02432/0.3864, allocations: 11.94 MB / 0.56 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06297/0.4494, allocations: 47.89 MB / 0.6068 GB, free: 12.52 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0114/0.4608, allocations: 3.665 MB / 0.6104 GB, free: 8.605 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002355/0.4631, allocations: 1.287 MB / 0.6116 GB, free: 7.309 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2012/0.6644, allocations: 9.214 MB / 0.6206 GB, free: 115 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.6644, allocations: 57.31 kB / 0.6207 GB, free: 114.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=202): time 6.452e-06/0.6644, allocations: 0 / 0.6207 GB, free: 114.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=211): time 0.02068/0.6851, allocations: 10.51 MB / 0.6309 GB, free: 110.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/0.6852, allocations: 150.1 kB / 0.6311 GB, free: 110.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007649/0.6928, allocations: 5.159 MB / 0.6361 GB, free: 108.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002484/0.6931, allocations: 56.31 kB / 0.6362 GB, free: 108.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002217/0.6953, allocations: 4.099 MB / 0.6402 GB, free: 105.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000845/0.6961, allocations: 0.8682 MB / 0.641 GB, free: 104.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00184/0.698, allocations: 1.615 MB / 0.6426 GB, free: 104 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.059e-05/0.698, allocations: 307.9 kB / 0.6429 GB, free: 103.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003131/0.7011, allocations: 2.24 MB / 0.6451 GB, free: 103 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005365/0.7065, allocations: 7.33 MB / 0.6522 GB, free: 95.37 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009227/0.7157, allocations: 10.38 MB / 0.6624 GB, free: 85.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002212/0.716, allocations: 53.72 kB / 0.6624 GB, free: 85.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01346/0.7294, allocations: 9.215 MB / 0.6714 GB, free: 82.33 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.7295, allocations: 83.06 kB / 0.6715 GB, free: 82.31 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001769/0.7297, allocations: 184 kB / 0.6717 GB, free: 82.13 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001607/0.7299, allocations: 236 kB / 0.6719 GB, free: 81.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004711/0.7346, allocations: 1.845 MB / 0.6737 GB, free: 80.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001739/0.7347, allocations: 357.8 kB / 0.674 GB, free: 79.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005213/0.74, allocations: 374.7 kB / 0.6744 GB, free: 79.61 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008683/0.7408, allocations: 0.4997 MB / 0.6749 GB, free: 79.13 MB / 478.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.003616/0.7444, allocations: 2.651 MB / 0.6775 GB, free: 76.72 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009227/0.7454, allocations: 441 kB / 0.6779 GB, free: 76.29 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002813/0.7482, allocations: 1.966 MB / 0.6798 GB, free: 74.32 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001032/0.7483, allocations: 39.72 kB / 0.6799 GB, free: 74.28 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/0.7483, allocations: 8 kB / 0.6799 GB, free: 74.27 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.7483, allocations: 7.969 kB / 0.6799 GB, free: 74.27 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/0.7597, allocations: 7.754 MB / 0.6874 GB, free: 66.31 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.785e-05/0.7597, allocations: 12 kB / 0.6875 GB, free: 66.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.7607, allocations: 296.2 kB / 0.6877 GB, free: 66.01 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001328/0.7608, allocations: 48.78 kB / 0.6878 GB, free: 65.96 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.234e-05/0.7609, allocations: 51.98 kB / 0.6878 GB, free: 65.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006619/0.7616, allocations: 1.391 MB / 0.6892 GB, free: 64.38 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/0.7616, allocations: 23.92 kB / 0.6892 GB, free: 64.36 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004535/0.7661, allocations: 4.408 MB / 0.6935 GB, free: 59.76 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002441/0.7686, allocations: 0.6932 MB / 0.6942 GB, free: 59.05 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001132/0.7697, allocations: 44 kB / 0.6942 GB, free: 59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001868/0.7716, allocations: 71.38 kB / 0.6943 GB, free: 58.94 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/0.7718, allocations: 156.2 kB / 0.6945 GB, free: 58.79 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/0.7719, allocations: 71.98 kB / 0.6945 GB, free: 58.71 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004761/0.7767, allocations: 3.214 MB / 0.6977 GB, free: 55.51 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7767, allocations: 0 / 0.6977 GB, free: 55.51 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00649/0.7832, allocations: 1.105 MB / 0.6987 GB, free: 54.41 MB / 478.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.004813/0.788, allocations: 5.111 MB / 0.7037 GB, free: 49.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006465/0.7944, allocations: 5.007 MB / 0.7086 GB, free: 44.13 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.25e-05/0.7945, allocations: 0 / 0.7086 GB, free: 44.13 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001393/0.7958, allocations: 1.158 MB / 0.7098 GB, free: 42.96 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003007/0.7989, allocations: 0.5682 MB / 0.7103 GB, free: 42.41 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06845/0.8673, allocations: 54.35 MB / 0.7634 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005482/0.8728, allocations: 3.767 MB / 0.7671 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00598/0.8788, allocations: 2.448 MB / 0.7695 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003727/0.8825, allocations: 2.202 MB / 0.7716 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of SimCode: time 1.362e-06/0.8825, allocations: 0 / 0.7716 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3437/1.226, allocations: 71.51 MB / 0.8414 GB, free: 169.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.41/24.64, allocations: 5.188 kB / 0.8414 GB, free: 169.8 MB / 0.545 GB " [Timeout remaining time 635] (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 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear.fmu > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 27.16173621173948] Failed to read output from testmodel.py, exit status != 0: 24.768628004938364 24.778622319 24.485699478 Calling exit ...