Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CounterSpin.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.001821/0.001821, allocations: 103.6 kB / 18.95 MB, free: 2.812 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.002331/0.002331, allocations: 215.2 kB / 22.25 MB, free: 5.109 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.495/1.495, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.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.05189/0.05189, allocations: 9.232 MB / 321.6 MB, free: 9.84 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.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") translateModel(PlanarMechanics.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") [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.002262/0.002262, allocations: 67.89 kB / 448.1 MB, free: 14.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1103, allocations: 55.47 MB / 0.4918 GB, free: 6.496 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.008545/0.1188, allocations: 6.082 MB / 0.4978 GB, free: 396 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004723/0.1235, allocations: 2.285 MB / 0.5 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007532/0.1243, allocations: 31.88 kB / 0.5 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007989/0.1251, allocations: 306.1 kB / 0.5003 GB, free: 13.76 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002819/0.1279, allocations: 1.164 MB / 0.5014 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003007/0.1282, allocations: 83.78 kB / 0.5015 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002634/0.1308, allocations: 2.026 MB / 0.5035 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.1311, allocations: 63.39 kB / 0.5036 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001182/0.1323, allocations: 0.7238 MB / 0.5043 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00177/0.1341, allocations: 1.137 MB / 0.5054 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004533/0.1345, allocations: 188 kB / 0.5056 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001313/0.1358, allocations: 0.6592 MB / 0.5062 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001134/0.137, allocations: 1.024 MB / 0.5072 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001354/0.1383, allocations: 0.877 MB / 0.5081 GB, free: 5.781 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005146/0.1435, allocations: 4.346 MB / 0.5123 GB, free: 1.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1435, allocations: 0 / 0.5123 GB, free: 1.418 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1435, allocations: 0 / 0.5123 GB, free: 1.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001107/0.1436, allocations: 0 / 0.5123 GB, free: 1.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: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.2124/0.356, allocations: 3.59 MB / 0.5158 GB, free: 24.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.356, allocations: 8.625 kB / 0.5158 GB, free: 24.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006294/0.3623, allocations: 1.717 MB / 0.5175 GB, free: 24.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002242/0.3646, allocations: 1.122 MB / 0.5186 GB, free: 24.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.672e-05/0.3647, allocations: 112.4 kB / 0.5187 GB, free: 24.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003072/0.365, allocations: 146.8 kB / 0.5188 GB, free: 24.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008947/0.3739, allocations: 7.05 MB / 0.5257 GB, free: 22.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.383e-05/0.374, allocations: 16.44 kB / 0.5257 GB, free: 22.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00022/0.3742, allocations: 78.11 kB / 0.5258 GB, free: 22.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002724/0.3769, allocations: 1.722 MB / 0.5275 GB, free: 21.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01157/0.3885, allocations: 6.451 MB / 0.5338 GB, free: 19.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02092/0.4094, allocations: 18.8 MB / 0.5522 GB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003267/0.4127, allocations: 1.419 MB / 0.5535 GB, free: 1.836 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007132/0.4134, allocations: 0.5573 MB / 0.5541 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003948/0.4174, allocations: 1.977 MB / 0.556 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.9e-05/0.4174, allocations: 43.2 kB / 0.5561 GB, free: 15.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=93): time 4.228e-06/0.4174, allocations: 0 / 0.5561 GB, free: 15.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.004258/0.4217, allocations: 1.793 MB / 0.5578 GB, free: 13.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.4217, allocations: 64 kB / 0.5579 GB, free: 13.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002806/0.4245, allocations: 1.918 MB / 0.5598 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.104e-05/0.4246, allocations: 33.7 kB / 0.5598 GB, free: 11.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00146/0.426, allocations: 1.918 MB / 0.5617 GB, free: 9.477 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003662/0.4264, allocations: 390.4 kB / 0.562 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009388/0.4273, allocations: 0.6512 MB / 0.5627 GB, free: 8.434 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.4275, allocations: 338 kB / 0.563 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001751/0.4293, allocations: 1.006 MB / 0.564 GB, free: 7.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003412/0.4327, allocations: 2.902 MB / 0.5668 GB, free: 3.242 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00544/0.4381, allocations: 4.193 MB / 0.5709 GB, free: 14.11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.621e-05/0.4382, allocations: 20 kB / 0.5709 GB, free: 14.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.00671/0.4449, allocations: 3.81 MB / 0.5746 GB, free: 10.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.457e-05/0.4449, allocations: 32 kB / 0.5747 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.32e-05/0.445, allocations: 68 kB / 0.5747 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000122/0.4451, allocations: 92.03 kB / 0.5748 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00221/0.4473, allocations: 0.7096 MB / 0.5755 GB, free: 9.387 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001182/0.4475, allocations: 135.4 kB / 0.5756 GB, free: 9.254 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00224/0.4497, allocations: 440.8 kB / 0.5761 GB, free: 8.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002821/0.45, allocations: 203.9 kB / 0.5763 GB, free: 8.621 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 306 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (387): * Single equations (assignments): 383 * Array equations: 4 * 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.002232/0.4522, allocations: 1.386 MB / 0.5776 GB, free: 7.223 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002824/0.4525, allocations: 151 kB / 0.5778 GB, free: 7.074 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002222/0.4547, allocations: 1.173 MB / 0.5789 GB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/0.4548, allocations: 31.05 kB / 0.5789 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.4548, allocations: 8.297 kB / 0.5789 GB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.4548, allocations: 0 / 0.5789 GB, free: 5.852 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005878/0.4607, allocations: 3.06 MB / 0.5819 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.4607, allocations: 4 kB / 0.5819 GB, free: 2.719 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006189/0.4613, allocations: 139.7 kB / 0.5821 GB, free: 2.582 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.731e-05/0.4614, allocations: 4 kB / 0.5821 GB, free: 2.578 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.78e-05/0.4614, allocations: 23.98 kB / 0.5821 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.147e-06/0.4614, allocations: 8.141 kB / 0.5821 GB, free: 2.547 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.4614, allocations: 3.938 kB / 0.5821 GB, free: 2.543 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002931/0.4644, allocations: 1.94 MB / 0.584 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003418/0.4647, allocations: 154.8 kB / 0.5841 GB, free: 408 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001643/0.4649, allocations: 16 kB / 0.5842 GB, free: 392 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005353/0.4654, allocations: 31.97 kB / 0.5842 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.94e-05/0.4655, allocations: 52.34 kB / 0.5842 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-05/0.4656, allocations: 28 kB / 0.5843 GB, free: 280 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001753/0.4673, allocations: 1.122 MB / 0.5854 GB, free: 15.15 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4673, allocations: 0 / 0.5854 GB, free: 15.15 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00252/0.4698, allocations: 0.7357 MB / 0.5861 GB, free: 14.41 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (body.v[1],body.w,slipBasedRolling.frame_a.x,slipBasedRolling.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 (69): * Single equations (assignments): 65 * Array equations: 4 * 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 Backend phase and start with SimCode phase: time 0.0003263/0.4702, allocations: 155.7 kB / 0.5862 GB, free: 14.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003739/0.4739, allocations: 2.162 MB / 0.5883 GB, free: 12.11 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4739, allocations: 0 / 0.5883 GB, free: 12.11 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007774/0.4747, allocations: 0.4951 MB / 0.5888 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.4757, allocations: 211.8 kB / 0.589 GB, free: 11.42 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009108/0.4848, allocations: 5.276 MB / 0.5942 GB, free: 6.094 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002517/0.4874, allocations: 1.71 MB / 0.5958 GB, free: 4.352 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002282/0.4896, allocations: 0.9377 MB / 0.5968 GB, free: 3.414 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003088/0.4899, allocations: 127.3 kB / 0.5969 GB, free: 3.289 MB / 430.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4899, allocations: 0 / 0.5969 GB, free: 3.289 MB / 430.1 MB Notification: Performance of Templates: time 0.0342/0.5241, allocations: 17.05 MB / 0.6135 GB, free: 2.484 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CounterSpin.sim & ./PlanarMechanics_PlanarMechanics.Examples.CounterSpin -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.3099989872425795] Failed to read output from testmodel.py, exit status != 0: 0.5330619681626558 0.5482849870000001 0.401495372 Calling exit ...