Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) Running command: translateModel(PlanarMechanics.Examples.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") translateModel(PlanarMechanics.Examples.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 222.9 MB / 239.7 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009809/0.0009808, allocations: 106 kB / 289.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04028/0.04028, allocations: 8.95 MB / 349 MB, free: 36 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009331/0.0009332, allocations: 59.66 kB / 411.1 MB, free: 57.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0768/0.07774, allocations: 51.4 MB / 462.5 MB, free: 5.734 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.1945/0.2722, allocations: 27.36 MB / 489.9 MB, free: 10.8 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0129/0.2852, allocations: 6.112 MB / 496 MB, free: 9.172 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005051/0.2903, allocations: 99.62 kB / 496.1 MB, free: 9.16 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00123/0.2915, allocations: 301.4 kB / 496.4 MB, free: 9.055 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003658/0.2952, allocations: 1.305 MB / 497.7 MB, free: 8.598 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006677/0.2959, allocations: 123.5 kB / 497.8 MB, free: 8.535 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004904/0.3008, allocations: 3.522 MB / 0.4896 GB, free: 7.453 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001697/0.3026, allocations: 0.8489 MB / 0.4904 GB, free: 7.137 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00167/0.3042, allocations: 0.7731 MB / 0.4912 GB, free: 6.855 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002151/0.3064, allocations: 1.326 MB / 0.4925 GB, free: 6.473 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007023/0.3071, allocations: 136.5 kB / 0.4926 GB, free: 6.473 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001984/0.3091, allocations: 0.7838 MB / 0.4933 GB, free: 6.238 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001539/0.3107, allocations: 1.139 MB / 0.4945 GB, free: 5.613 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002314/0.313, allocations: 1.468 MB / 0.4959 GB, free: 4.496 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00522/0.3182, allocations: 4.608 MB / 0.5004 GB, free: 1.469 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3183, allocations: 0 / 0.5004 GB, free: 1.469 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.572e-06/0.3183, allocations: 11.92 kB / 0.5004 GB, free: 1.457 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001803/0.3185, allocations: 1.812 kB / 0.5004 GB, free: 1.457 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.01162/0.3301, allocations: 3.865 MB / 0.5042 GB, free: 14.88 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.3302, allocations: 9.375 kB / 0.5042 GB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006231/0.3364, allocations: 1.767 MB / 0.5059 GB, free: 13.94 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002579/0.339, allocations: 1.354 MB / 0.5072 GB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.3391, allocations: 153.4 kB / 0.5074 GB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003553/0.3395, allocations: 208.1 kB / 0.5076 GB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01138/0.3509, allocations: 7.954 MB / 0.5153 GB, free: 4.391 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.008e-05/0.351, allocations: 31.72 kB / 0.5154 GB, free: 4.359 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002539/0.3512, allocations: 96.25 kB / 0.5155 GB, free: 4.301 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002746/0.354, allocations: 1.841 MB / 0.5173 GB, free: 2.465 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0129/0.3669, allocations: 7.167 MB / 0.5243 GB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03606/0.403, allocations: 24.15 MB / 0.5479 GB, free: 2.805 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004942/0.408, allocations: 2.377 MB / 0.5502 GB, free: 316 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/0.4094, allocations: 0.8261 MB / 0.551 GB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007809/0.4173, allocations: 4.732 MB / 0.5556 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.4173, allocations: 47.55 kB / 0.5556 GB, free: 10.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 5.209e-06/0.4173, allocations: 3.984 kB / 0.5557 GB, free: 10.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.01511/0.4324, allocations: 7.011 MB / 0.5625 GB, free: 3.266 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/0.4325, allocations: 68.72 kB / 0.5626 GB, free: 3.184 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005164/0.4377, allocations: 2.606 MB / 0.5651 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000121/0.4378, allocations: 45.7 kB / 0.5652 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001548/0.4394, allocations: 2.083 MB / 0.5672 GB, free: 14.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005257/0.4399, allocations: 0.5669 MB / 0.5677 GB, free: 13.85 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001307/0.4413, allocations: 0.7741 MB / 0.5685 GB, free: 13.06 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.4414, allocations: 305.1 kB / 0.5688 GB, free: 12.76 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002212/0.4436, allocations: 1.304 MB / 0.5701 GB, free: 11.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003304/0.4469, allocations: 3.441 MB / 0.5734 GB, free: 6.957 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005399/0.4523, allocations: 5.099 MB / 0.5784 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.162e-05/0.4524, allocations: 20 kB / 0.5784 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.007474/0.4599, allocations: 4.8 MB / 0.5831 GB, free: 12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.925e-05/0.46, allocations: 38.47 kB / 0.5831 GB, free: 11.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-05/0.4601, allocations: 72 kB / 0.5832 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003703/0.4604, allocations: 197.5 kB / 0.5834 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002556/0.463, allocations: 0.9007 MB / 0.5843 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00192/0.4649, allocations: 2.187 MB / 0.5864 GB, free: 8.453 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002447/0.4674, allocations: 199.9 kB / 0.5866 GB, free: 8.258 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003167/0.4677, allocations: 239.2 kB / 0.5868 GB, free: 8.027 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (478): * Single equations (assignments): 473 * Array equations: 4 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002304/0.47, allocations: 1.562 MB / 0.5884 GB, free: 6.453 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003541/0.4704, allocations: 221.1 kB / 0.5886 GB, free: 6.234 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/0.4737, allocations: 1.946 MB / 0.5905 GB, free: 4.277 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.784e-05/0.4738, allocations: 27.97 kB / 0.5905 GB, free: 4.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.4738, allocations: 4 kB / 0.5905 GB, free: 4.246 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.4738, allocations: 3.984 kB / 0.5905 GB, free: 4.242 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01044/0.4843, allocations: 5.62 MB / 0.596 GB, free: 14.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.4843, allocations: 4 kB / 0.596 GB, free: 14.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009815/0.4853, allocations: 243.6 kB / 0.5962 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002619/0.4856, allocations: 84.98 kB / 0.5963 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.185e-05/0.4857, allocations: 27.98 kB / 0.5963 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/0.4874, allocations: 1.921 MB / 0.5982 GB, free: 12.11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.333e-06/0.4874, allocations: 11.88 kB / 0.5982 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01704/0.5044, allocations: 10.78 MB / 0.6087 GB, free: 0.9492 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006494/0.5051, allocations: 290.3 kB / 0.609 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006126/0.5058, allocations: 30.33 kB / 0.6091 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001299/0.5071, allocations: 75.91 kB / 0.6091 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003223/0.5074, allocations: 77.08 kB / 0.6092 GB, free: 480 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/0.5076, allocations: 47.92 kB / 0.6092 GB, free: 432 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004446/0.512, allocations: 1.69 MB / 0.6109 GB, free: 14.72 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.5121, allocations: 4 kB / 0.6109 GB, free: 14.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006565/0.5186, allocations: 0.8385 MB / 0.6117 GB, free: 13.88 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.v) * 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 (124): * Single equations (assignments): 119 * Array equations: 4 * 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,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005824/0.5192, allocations: 149.5 kB / 0.6119 GB, free: 13.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005632/0.5249, allocations: 3.118 MB / 0.6149 GB, free: 10.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.5249, allocations: 0 / 0.6149 GB, free: 10.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001594/0.5265, allocations: 0.9878 MB / 0.6159 GB, free: 9.621 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002565/0.5291, allocations: 357.1 kB / 0.6162 GB, free: 9.273 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01455/0.5437, allocations: 9.017 MB / 0.625 GB, free: 192 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003625/0.5473, allocations: 2.626 MB / 0.6276 GB, free: 13.53 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003337/0.5507, allocations: 1.204 MB / 0.6288 GB, free: 12.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006559/0.5514, allocations: 171.4 kB / 0.6289 GB, free: 12.15 MB / 458.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5514, allocations: 0 / 0.6289 GB, free: 12.15 MB / 458.7 MB Notification: Performance of Templates: time 0.223/0.7744, allocations: 25.42 MB / 0.6537 GB, free: 149.2 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)