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.001453/0.001453, allocations: 110.8 kB / 16.42 MB, free: 6.449 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.001607/0.001607, allocations: 187.9 kB / 17.35 MB, free: 5.699 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.327/1.327, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04556/0.04556, allocations: 9.114 MB / 300.3 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 63.89 kB / 415.3 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09032/0.09155, allocations: 51.44 MB / 466.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.007255/0.09884, allocations: 6.843 MB / 473.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00389/0.1028, allocations: 2.359 MB / 476 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004506/0.1032, allocations: 27.94 kB / 476 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006059/0.1038, allocations: 294.2 kB / 476.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002238/0.1061, allocations: 1.16 MB / 477.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002253/0.1064, allocations: 79.78 kB / 477.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00208/0.1085, allocations: 2.031 MB / 479.5 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003499/0.1088, allocations: 183 kB / 479.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009939/0.1098, allocations: 0.7081 MB / 480.4 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001278/0.1111, allocations: 1.07 MB / 481.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002902/0.1114, allocations: 184 kB / 481.7 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.1126, allocations: 0.745 MB / 482.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007917/0.1134, allocations: 1.017 MB / 483.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001081/0.1145, allocations: 1.285 MB / 484.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004094/0.1186, allocations: 4.354 MB / 489.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1186, allocations: 0 / 489.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1186, allocations: 4 kB / 489.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.145e-05/0.1187, allocations: 0 / 489.1 MB, free: 11.23 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.006783/0.1255, allocations: 3.67 MB / 492.8 MB, free: 7.496 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.1255, allocations: 8.031 kB / 492.8 MB, free: 7.488 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006135/0.1317, allocations: 1.719 MB / 494.5 MB, free: 5.766 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001857/0.1335, allocations: 1.162 MB / 495.6 MB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-05/0.1336, allocations: 115.1 kB / 495.8 MB, free: 4.445 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003326/0.134, allocations: 152.1 kB / 495.9 MB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00885/0.1428, allocations: 7.054 MB / 0.4912 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.888e-05/0.1429, allocations: 19.86 kB / 0.4912 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002126/0.1431, allocations: 71.88 kB / 0.4913 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002495/0.1456, allocations: 1.722 MB / 0.4929 GB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009733/0.1554, allocations: 6.47 MB / 0.4993 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2207/0.3761, allocations: 20.93 MB / 0.5197 GB, free: 29.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004083/0.3802, allocations: 1.936 MB / 0.5216 GB, free: 27.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000937/0.3812, allocations: 0.6035 MB / 0.5222 GB, free: 27.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00417/0.3853, allocations: 3.348 MB / 0.5254 GB, free: 25.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.3854, allocations: 37.97 kB / 0.5255 GB, free: 25.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=93): time 4.127e-06/0.3854, allocations: 1.969 kB / 0.5255 GB, free: 25.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=93): time 0.003873/0.3893, allocations: 1.823 MB / 0.5273 GB, free: 24.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.546e-05/0.3893, allocations: 60.88 kB / 0.5273 GB, free: 24.78 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002824/0.3921, allocations: 2.198 MB / 0.5295 GB, free: 23.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.324e-05/0.3922, allocations: 37.64 kB / 0.5295 GB, free: 23.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008252/0.393, allocations: 1.893 MB / 0.5313 GB, free: 22.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/0.3933, allocations: 389.8 kB / 0.5317 GB, free: 22.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000632/0.3939, allocations: 0.6461 MB / 0.5323 GB, free: 21.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.087e-05/0.3939, allocations: 305.1 kB / 0.5326 GB, free: 21.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.3952, allocations: 1.004 MB / 0.5336 GB, free: 21.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001904/0.3971, allocations: 2.908 MB / 0.5365 GB, free: 17.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003222/0.4004, allocations: 4.183 MB / 0.5405 GB, free: 14.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.667e-05/0.4004, allocations: 19.53 kB / 0.5406 GB, free: 14.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.004882/0.4053, allocations: 3.84 MB / 0.5443 GB, free: 11.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.4053, allocations: 38.81 kB / 0.5444 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.34e-05/0.4054, allocations: 64 kB / 0.5444 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.569e-05/0.4055, allocations: 95.94 kB / 0.5445 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001822/0.4073, allocations: 0.7096 MB / 0.5452 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.226e-05/0.4074, allocations: 139.9 kB / 0.5453 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/0.4093, allocations: 487 kB / 0.5458 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001905/0.4095, allocations: 196 kB / 0.546 GB, free: 9.98 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.001566/0.4111, allocations: 1.39 MB / 0.5473 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001784/0.4112, allocations: 178.8 kB / 0.5475 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001631/0.4129, allocations: 1.197 MB / 0.5487 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.4129, allocations: 6.719 kB / 0.5487 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.4129, allocations: 7.922 kB / 0.5487 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002911/0.4132, allocations: 267.7 kB / 0.5489 GB, free: 6.906 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001874/0.4134, allocations: 12 kB / 0.549 GB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005607/0.414, allocations: 35.95 kB / 0.549 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.389e-05/0.4141, allocations: 36.52 kB / 0.549 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001513/0.4156, allocations: 1.126 MB / 0.5501 GB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002019/0.4176, allocations: 1.976 MB / 0.5521 GB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005537/0.4182, allocations: 483.7 kB / 0.5525 GB, free: 3.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00157/0.4198, allocations: 1.416 MB / 0.5539 GB, free: 1.824 MB / 382.1 MB Notification: Performance of Backend: time 3.21e-07/0.4198, allocations: 0 / 0.5539 GB, free: 1.824 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003273/0.4231, allocations: 1.971 MB / 0.5558 GB, free: 15.88 MB / 398.1 MB Notification: Performance of SimCode: time 0.008663/0.4317, allocations: 5.73 MB / 0.5614 GB, free: 10.12 MB / 398.1 MB Notification: Performance of Templates: time 0.04605/0.4778, allocations: 26.63 MB / 0.5874 GB, free: 15.6 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)