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.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: translateModel(PlanarMechanics.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") translateModel(PlanarMechanics.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 115.3 kB / 16.42 MB, free: 6.02 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.001593/0.001593, allocations: 186.1 kB / 17.35 MB, free: 5.633 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 / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04549/0.04549, allocations: 9.12 MB / 300.3 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 59.91 kB / 415.3 MB, free: 21.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07913/0.08035, allocations: 51.43 MB / 466.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.007077/0.08745, allocations: 6.86 MB / 473.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003873/0.09135, allocations: 2.34 MB / 475.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005075/0.09188, allocations: 27.94 kB / 476 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005806/0.09247, allocations: 294.2 kB / 476.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00207/0.09459, allocations: 1.136 MB / 477.4 MB, free: 7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002122/0.09481, allocations: 79.78 kB / 477.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001914/0.09674, allocations: 2.039 MB / 479.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002851/0.09704, allocations: 175.1 kB / 479.7 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007133/0.09776, allocations: 0.7042 MB / 480.4 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001135/0.0989, allocations: 1.063 MB / 481.5 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002629/0.09918, allocations: 188 kB / 481.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001125/0.1003, allocations: 0.7489 MB / 482.4 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007373/0.1011, allocations: 1.017 MB / 483.4 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009661/0.102, allocations: 1.285 MB / 484.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003736/0.1058, allocations: 4.337 MB / 489 MB, free: 11.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1058, allocations: 4 kB / 489 MB, free: 11.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1058, allocations: 0 / 489 MB, free: 11.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.332e-05/0.1059, allocations: 3.938 kB / 489 MB, free: 11.31 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: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.007351/0.1132, allocations: 3.605 MB / 492.6 MB, free: 7.648 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1133, allocations: 8.031 kB / 492.6 MB, free: 7.641 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006583/0.1199, allocations: 1.701 MB / 494.3 MB, free: 5.934 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001761/0.1216, allocations: 1.15 MB / 495.5 MB, free: 4.738 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.419e-05/0.1217, allocations: 115 kB / 495.6 MB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003168/0.1221, allocations: 148.2 kB / 495.8 MB, free: 4.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009918/0.132, allocations: 7.062 MB / 0.491 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.3e-05/0.1321, allocations: 15.88 kB / 0.491 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002526/0.1323, allocations: 71.88 kB / 0.4911 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002891/0.1352, allocations: 1.722 MB / 0.4928 GB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/0.1472, allocations: 6.47 MB / 0.4991 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2241/0.3714, allocations: 20.88 MB / 0.5195 GB, free: 29.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004146/0.3755, allocations: 1.939 MB / 0.5214 GB, free: 28.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008799/0.3764, allocations: 0.6015 MB / 0.522 GB, free: 27.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003849/0.3803, allocations: 3.34 MB / 0.5252 GB, free: 25.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.3803, allocations: 41.38 kB / 0.5253 GB, free: 25.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=93): time 3.035e-06/0.3804, allocations: 1.406 kB / 0.5253 GB, free: 25.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=93): time 0.003739/0.3841, allocations: 1.812 MB / 0.5271 GB, free: 24.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.236e-05/0.3841, allocations: 58.72 kB / 0.5271 GB, free: 24.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002644/0.3868, allocations: 2.191 MB / 0.5292 GB, free: 24.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.064e-05/0.3869, allocations: 39.58 kB / 0.5293 GB, free: 23.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007011/0.3876, allocations: 1.822 MB / 0.5311 GB, free: 22.53 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.3878, allocations: 377.4 kB / 0.5314 GB, free: 22.22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006106/0.3884, allocations: 0.6384 MB / 0.532 GB, free: 21.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.501e-05/0.3884, allocations: 303.1 kB / 0.5323 GB, free: 21.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001276/0.3897, allocations: 1.006 MB / 0.5333 GB, free: 21.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001851/0.3916, allocations: 2.907 MB / 0.5362 GB, free: 17.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003158/0.3947, allocations: 4.187 MB / 0.5402 GB, free: 13.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-05/0.3948, allocations: 19.22 kB / 0.5403 GB, free: 13.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.004807/0.3996, allocations: 3.829 MB / 0.544 GB, free: 11.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.075e-05/0.3996, allocations: 32 kB / 0.544 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.726e-05/0.3997, allocations: 68 kB / 0.5441 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.693e-05/0.3998, allocations: 88 kB / 0.5442 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001808/0.4016, allocations: 0.7135 MB / 0.5449 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.796e-05/0.4017, allocations: 135.4 kB / 0.545 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/0.4036, allocations: 477.4 kB / 0.5455 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000185/0.4038, allocations: 197.5 kB / 0.5457 GB, free: 10.09 MB / 382.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.001437/0.4052, allocations: 1.388 MB / 0.547 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001748/0.4054, allocations: 169.8 kB / 0.5472 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.407, allocations: 1.201 MB / 0.5483 GB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.4071, allocations: 3.984 kB / 0.5483 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.4071, allocations: 4 kB / 0.5484 GB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.4073, allocations: 262.7 kB / 0.5486 GB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001908/0.4075, allocations: 15.83 kB / 0.5486 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005399/0.4081, allocations: 31.95 kB / 0.5486 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.775e-05/0.4082, allocations: 36.52 kB / 0.5487 GB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001541/0.4097, allocations: 1.127 MB / 0.5498 GB, free: 5.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002084/0.4118, allocations: 1.963 MB / 0.5517 GB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005453/0.4124, allocations: 480.5 kB / 0.5522 GB, free: 3.371 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0016/0.414, allocations: 1.416 MB / 0.5535 GB, free: 1.965 MB / 382.1 MB Notification: Performance of Backend: time 4.71e-07/0.414, allocations: 7.938 kB / 0.5535 GB, free: 1.957 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0031/0.4171, allocations: 1.979 MB / 0.5555 GB, free: 12 kB / 382.1 MB Notification: Performance of SimCode: time 0.008401/0.4255, allocations: 5.642 MB / 0.561 GB, free: 10.35 MB / 398.1 MB Notification: Performance of Templates: time 0.04697/0.4725, allocations: 26.62 MB / 0.587 GB, free: 15.84 MB / 430.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.makefile (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)