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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 85.38 kB / 19.76 MB, free: 2.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 158.2 kB / 23.01 MB, free: 4.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.436/1.436, allocations: 177.2 MB / 203.4 MB, free: 8.977 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.04795/0.04795, allocations: 7.129 MB / 266.9 MB, free: 9.738 MB / 254.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002274/0.002274, allocations: 67.91 kB / 393.4 MB, free: 10.47 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1058, allocations: 55.46 MB / 448.9 MB, free: 2.914 MB / 414.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01439/0.1202, allocations: 11.21 MB / 460.1 MB, free: 7.645 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007979/0.1281, allocations: 3.439 MB / 463.5 MB, free: 4.191 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001886/0.13, allocations: 59.81 kB / 463.6 MB, free: 4.133 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001982/0.132, allocations: 0.7808 MB / 464.3 MB, free: 3.348 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005525/0.1375, allocations: 2.089 MB / 466.4 MB, free: 1.25 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006112/0.1381, allocations: 139.8 kB / 466.6 MB, free: 1.113 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006078/0.1442, allocations: 4.056 MB / 470.6 MB, free: 13.05 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002988/0.1472, allocations: 2.043 MB / 472.7 MB, free: 10.98 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002465/0.1497, allocations: 1.432 MB / 474.1 MB, free: 9.547 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003005/0.1527, allocations: 2.136 MB / 476.2 MB, free: 7.402 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006602/0.1533, allocations: 316 kB / 476.5 MB, free: 7.094 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001655/0.155, allocations: 0.8153 MB / 477.4 MB, free: 6.277 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001878/0.1569, allocations: 1.912 MB / 479.3 MB, free: 4.355 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002087/0.159, allocations: 1.695 MB / 481 MB, free: 2.648 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2285/0.3875, allocations: 7.652 MB / 488.6 MB, free: 50.46 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3875, allocations: 0.6875 kB / 488.6 MB, free: 50.46 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3875, allocations: 0 / 488.6 MB, free: 50.46 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.158e-05/0.3876, allocations: 3.625 kB / 488.6 MB, free: 50.46 MB / 446.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.02246/0.41, allocations: 7.232 MB / 495.9 MB, free: 48.32 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4101, allocations: 7.188 kB / 495.9 MB, free: 48.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01124/0.4213, allocations: 3.359 MB / 499.2 MB, free: 47.95 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004691/0.426, allocations: 2.031 MB / 0.4895 GB, free: 47.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002302/0.4262, allocations: 233.8 kB / 0.4897 GB, free: 47.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001336/0.4276, allocations: 321.5 kB / 0.49 GB, free: 47.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02294/0.4505, allocations: 13.43 MB / 0.5032 GB, free: 42.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002656/0.4508, allocations: 55.73 kB / 0.5032 GB, free: 42.14 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001262/0.452, allocations: 155.1 kB / 0.5034 GB, free: 42.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005852/0.4579, allocations: 3.085 MB / 0.5064 GB, free: 41.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02623/0.4841, allocations: 11.87 MB / 0.518 GB, free: 37.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06137/0.5455, allocations: 44.5 MB / 0.5614 GB, free: 5.809 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01153/0.557, allocations: 2.886 MB / 0.5642 GB, free: 3.395 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00233/0.5594, allocations: 1.279 MB / 0.5655 GB, free: 2.113 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01424/0.5736, allocations: 6.004 MB / 0.5713 GB, free: 12.15 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.238e-05/0.5737, allocations: 54.84 kB / 0.5714 GB, free: 12.09 MB / 462.1 MB Notification: Performance of pre-optimization done (n=202): time 5.59e-06/0.5737, allocations: 0 / 0.5714 GB, free: 12.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=211): time 0.02485/0.5985, allocations: 10.46 MB / 0.5816 GB, free: 1.602 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.5986, allocations: 153.2 kB / 0.5818 GB, free: 1.426 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009281/0.6079, allocations: 4.572 MB / 0.5862 GB, free: 12.83 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003707/0.6083, allocations: 56.28 kB / 0.5863 GB, free: 12.77 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003838/0.6121, allocations: 4.137 MB / 0.5903 GB, free: 8.668 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001296/0.6134, allocations: 0.8632 MB / 0.5912 GB, free: 7.816 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004211/0.6176, allocations: 1.622 MB / 0.5927 GB, free: 6.188 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.6178, allocations: 313 kB / 0.593 GB, free: 5.879 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004479/0.6223, allocations: 2.229 MB / 0.5952 GB, free: 3.645 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009226/0.6315, allocations: 7.312 MB / 0.6024 GB, free: 9.879 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01512/0.6466, allocations: 10.38 MB / 0.6125 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003252/0.6469, allocations: 57.59 kB / 0.6126 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.02122/0.6681, allocations: 9.137 MB / 0.6215 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003245/0.6685, allocations: 80 kB / 0.6216 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004337/0.6689, allocations: 184 kB / 0.6217 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003869/0.6693, allocations: 236 kB / 0.622 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00651/0.6758, allocations: 1.841 MB / 0.6237 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003754/0.6762, allocations: 354.7 kB / 0.6241 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005838/0.682, allocations: 374.1 kB / 0.6244 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001435/0.6834, allocations: 0.496 MB / 0.6249 GB, free: 0.8594 MB / 0.4981 GB 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.006133/0.6896, allocations: 2.651 MB / 0.6275 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001213/0.6908, allocations: 376.3 kB / 0.6279 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004783/0.6956, allocations: 1.888 MB / 0.6297 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001446/0.6957, allocations: 35.98 kB / 0.6298 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-05/0.6957, allocations: 7.875 kB / 0.6298 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.556e-05/0.6958, allocations: 11.97 kB / 0.6298 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0172/0.713, allocations: 6.398 MB / 0.636 GB, free: 5.305 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.473e-05/0.713, allocations: 15.09 kB / 0.636 GB, free: 5.293 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001487/0.7145, allocations: 303.5 kB / 0.6363 GB, free: 4.996 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002719/0.7148, allocations: 37.48 kB / 0.6364 GB, free: 4.957 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003727/0.7151, allocations: 59.97 kB / 0.6364 GB, free: 4.898 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001473/0.7166, allocations: 1.261 MB / 0.6376 GB, free: 3.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.796e-05/0.7166, allocations: 23.88 kB / 0.6377 GB, free: 3.52 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006866/0.7235, allocations: 4.312 MB / 0.6419 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001835/0.7253, allocations: 0.5362 MB / 0.6424 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008939/0.7262, allocations: 57.94 kB / 0.6425 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001763/0.728, allocations: 71.94 kB / 0.6425 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003035/0.7283, allocations: 155.1 kB / 0.6427 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00018/0.7285, allocations: 75.98 kB / 0.6428 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005864/0.7343, allocations: 2.577 MB / 0.6453 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.7343, allocations: 0 / 0.6453 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007412/0.7418, allocations: 1.061 MB / 0.6463 GB, free: 10.48 MB / 0.5294 GB 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.0007411/0.7425, allocations: 190 kB / 0.6465 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01033/0.7528, allocations: 4.989 MB / 0.6514 GB, free: 5.359 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-05/0.7528, allocations: 4.688 kB / 0.6514 GB, free: 5.355 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002368/0.7552, allocations: 1.149 MB / 0.6525 GB, free: 4.199 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003994/0.7592, allocations: 424.2 kB / 0.6529 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02367/0.7829, allocations: 10.45 MB / 0.6631 GB, free: 9.129 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007245/0.7901, allocations: 3.251 MB / 0.6663 GB, free: 5.852 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006847/0.797, allocations: 2.35 MB / 0.6686 GB, free: 3.496 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/0.7981, allocations: 284.4 kB / 0.6688 GB, free: 3.219 MB / 0.545 GB Notification: Performance of SimCode: time 1.543e-06/0.7981, allocations: 4 kB / 0.6688 GB, free: 3.215 MB / 0.545 GB Notification: Performance of Templates: time 0.2767/1.075, allocations: 24.26 MB / 0.6925 GB, free: 174.4 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.makefile [Timeout 660] (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 & ./PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.621960754040629] Failed to read output from testmodel.py, exit status != 0: 1.0843211120227352 1.093559285 0.7036532790000001 Calling exit ...