Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.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.CraneCrabTo3D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D") translateModel(PlanarMechanics.Examples.CraneCrabTo3D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 110.4 kB / 16.42 MB, free: 6.508 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.00116/0.00116, allocations: 185.5 kB / 17.35 MB, free: 5.738 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.325/1.325, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04641/0.04641, allocations: 9.119 MB / 300.3 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 67.91 kB / 415.3 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08242/0.08371, allocations: 51.43 MB / 466.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01519/0.09893, allocations: 14.38 MB / 481.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009182/0.1081, allocations: 4.641 MB / 485.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001932/0.1101, allocations: 75.81 kB / 485.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00331/0.1134, allocations: 1.599 MB / 487.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005927/0.1194, allocations: 2.576 MB / 490 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001533/0.121, allocations: 0.5732 MB / 490.6 MB, free: 9.738 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006965/0.1279, allocations: 5.189 MB / 495.8 MB, free: 4.539 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004227/0.1322, allocations: 2.964 MB / 498.7 MB, free: 1.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002924/0.1351, allocations: 1.782 MB / 0.4888 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003734/0.1389, allocations: 2.507 MB / 0.4912 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001272/0.1402, allocations: 384 kB / 0.4916 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002984/0.1432, allocations: 1.19 MB / 0.4928 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002833/0.146, allocations: 2.298 MB / 0.495 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004095/0.1501, allocations: 2.811 MB / 0.4978 GB, free: 6.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2221/0.3723, allocations: 8.758 MB / 0.5063 GB, free: 15.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3723, allocations: 1.125 kB / 0.5063 GB, free: 15.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3724, allocations: 0 / 0.5063 GB, free: 15.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002538/0.3726, allocations: 0 / 0.5063 GB, free: 15.48 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: 2075 * Number of variables: 2075 Notification: Performance of Generate backend data structure: time 0.01469/0.3873, allocations: 6.559 MB / 0.5127 GB, free: 13.15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.3874, allocations: 10.02 kB / 0.5127 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01315/0.4005, allocations: 3.395 MB / 0.516 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005768/0.4063, allocations: 2.788 MB / 0.5188 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000217/0.4066, allocations: 280.4 kB / 0.519 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00105/0.4076, allocations: 356.2 kB / 0.5194 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01949/0.4271, allocations: 14.03 MB / 0.5331 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001242/0.4273, allocations: 61.11 kB / 0.5331 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005844/0.4279, allocations: 170.7 kB / 0.5333 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004383/0.4323, allocations: 3.14 MB / 0.5364 GB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02204/0.4543, allocations: 12.21 MB / 0.5483 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06781/0.5221, allocations: 51.78 MB / 0.5989 GB, free: 7.461 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01114/0.5333, allocations: 5.079 MB / 0.6038 GB, free: 2.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002647/0.536, allocations: 1.807 MB / 0.6056 GB, free: 364 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01345/0.5495, allocations: 8.004 MB / 0.6134 GB, free: 8.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.868e-05/0.5495, allocations: 59.34 kB / 0.6135 GB, free: 8.027 MB / 462.1 MB Notification: Performance of pre-optimization done (n=242): time 5.069e-06/0.5496, allocations: 4 kB / 0.6135 GB, free: 8.023 MB / 462.1 MB Notification: Performance of matching and sorting (n=272): time 0.03627/0.5858, allocations: 14.43 MB / 0.6275 GB, free: 9.578 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.911e-05/0.586, allocations: 150.5 kB / 0.6277 GB, free: 9.398 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01026/0.5962, allocations: 5.377 MB / 0.6329 GB, free: 4.027 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004774/0.5968, allocations: 59.78 kB / 0.633 GB, free: 3.965 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003276/0.6, allocations: 4.095 MB / 0.637 GB, free: 15.88 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001346/0.6014, allocations: 1.032 MB / 0.638 GB, free: 14.85 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003699/0.6051, allocations: 1.648 MB / 0.6396 GB, free: 13.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.227e-05/0.6052, allocations: 301.1 kB / 0.6399 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004581/0.6098, allocations: 2.546 MB / 0.6424 GB, free: 10.34 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008099/0.618, allocations: 7.363 MB / 0.6496 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01286/0.6308, allocations: 10.76 MB / 0.6601 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001727/0.6311, allocations: 48 kB / 0.6601 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.02113/0.6522, allocations: 9.933 MB / 0.6698 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002011/0.6524, allocations: 76 kB / 0.6699 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003013/0.6528, allocations: 172 kB / 0.6701 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.6539, allocations: 477 kB / 0.6705 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006302/0.6603, allocations: 1.844 MB / 0.6723 GB, free: 7.898 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005966/0.6663, allocations: 5.293 MB / 0.6775 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006217/0.6725, allocations: 419.6 kB / 0.6779 GB, free: 1.906 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001352/0.6739, allocations: 496.5 kB / 0.6784 GB, free: 1.426 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 772 * Number of states: 0 () * Number of discrete variables: 36 (fixedRotation3D.color[3],fixedRotation3D.color[2],fixedRotation3D.color[1],body3D.sphereColor[3],body3D.sphereColor[2],body3D.sphereColor[1],prismatic3D.boxColor[3],prismatic3D.boxColor[2],prismatic3D.boxColor[1],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],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],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 (1008): * Single equations (assignments): 998 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,17,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00578/0.6797, allocations: 2.848 MB / 0.6811 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001134/0.6808, allocations: 465.9 kB / 0.6816 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005941/0.6868, allocations: 2.967 MB / 0.6845 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.294e-05/0.6868, allocations: 15.95 kB / 0.6845 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.6868, allocations: 0 / 0.6845 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001306/0.6882, allocations: 0.4951 MB / 0.685 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00109/0.6893, allocations: 39.94 kB / 0.685 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002154/0.6914, allocations: 106.2 kB / 0.6851 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003578/0.6918, allocations: 141.7 kB / 0.6853 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006322/0.6981, allocations: 3.548 MB / 0.6887 GB, free: 6.793 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007447/0.7056, allocations: 5.367 MB / 0.694 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001802/0.7074, allocations: 1.337 MB / 0.6953 GB, free: 20 kB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006768/0.7142, allocations: 3.377 MB / 0.6986 GB, free: 12.66 MB / 0.545 GB Notification: Performance of Backend: time 1.813e-06/0.7142, allocations: 1.5 kB / 0.6986 GB, free: 12.66 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01337/0.7276, allocations: 5.285 MB / 0.7037 GB, free: 7.395 MB / 0.545 GB Notification: Performance of SimCode: time 0.226/0.9537, allocations: 12.22 MB / 0.7157 GB, free: 196.4 MB / 0.545 GB Notification: Performance of Templates: time 0.09/1.044, allocations: 54.39 MB / 0.7688 GB, free: 161.7 MB / 0.545 GB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.sim & ./PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1)