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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 102 kB / 16.35 MB, free: 5.875 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.001415/0.001414, allocations: 196 kB / 17.3 MB, free: 5.516 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.317/1.317, allocations: 222.9 MB / 241 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.04396/0.04396, allocations: 9.118 MB / 300.3 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 55.91 kB / 363.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2284, allocations: 51.43 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.006862/0.2353, allocations: 8.633 MB / 423.4 MB, free: 16.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004894/0.2402, allocations: 2.622 MB / 426.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0011/0.2413, allocations: 35.94 kB / 426.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008876/0.2422, allocations: 361.5 kB / 426.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00322/0.2455, allocations: 1.393 MB / 427.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000448/0.246, allocations: 151.7 kB / 428 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002137/0.2481, allocations: 2.529 MB / 430.5 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008445/0.249, allocations: 0.9462 MB / 431.5 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008236/0.2498, allocations: 0.8949 MB / 432.4 MB, free: 7.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001119/0.251, allocations: 1.323 MB / 433.7 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003177/0.2513, allocations: 232 kB / 433.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001366/0.2527, allocations: 0.8387 MB / 434.7 MB, free: 4.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009199/0.2536, allocations: 1.212 MB / 436 MB, free: 3.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001306/0.2549, allocations: 1.569 MB / 437.5 MB, free: 2.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005481/0.2604, allocations: 4.963 MB / 442.5 MB, free: 13.06 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.2605, allocations: 8 kB / 442.5 MB, free: 13.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.2605, allocations: 0 / 442.5 MB, free: 13.05 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001519/0.2606, allocations: 0 / 442.5 MB, free: 13.05 MB / 318.1 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.009855/0.2705, allocations: 3.873 MB / 446.4 MB, free: 9.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.2705, allocations: 8.031 kB / 446.4 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006023/0.2766, allocations: 1.763 MB / 448.1 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002319/0.2789, allocations: 1.359 MB / 449.5 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.279, allocations: 152.1 kB / 449.6 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003814/0.2794, allocations: 203.9 kB / 449.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01039/0.2898, allocations: 7.967 MB / 457.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.857e-05/0.2899, allocations: 19.78 kB / 457.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002711/0.2902, allocations: 95.86 kB / 457.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002837/0.2931, allocations: 1.856 MB / 459.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01243/0.3055, allocations: 7.164 MB / 466.9 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03273/0.3383, allocations: 24.04 MB / 491 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004898/0.3433, allocations: 2.384 MB / 493.4 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001224/0.3445, allocations: 0.8204 MB / 494.2 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007068/0.3516, allocations: 4.733 MB / 498.9 MB, free: 3.133 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.3517, allocations: 43.56 kB / 499 MB, free: 3.082 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 3.587e-06/0.3517, allocations: 4 kB / 499 MB, free: 3.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=154): time 0.01389/0.3656, allocations: 7.009 MB / 0.4941 GB, free: 11.99 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.3657, allocations: 68.66 kB / 0.4942 GB, free: 11.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003475/0.3692, allocations: 2.613 MB / 0.4967 GB, free: 9.266 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.516e-05/0.3692, allocations: 49.7 kB / 0.4968 GB, free: 9.211 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001292/0.3705, allocations: 2.077 MB / 0.4988 GB, free: 7.102 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004122/0.371, allocations: 0.5705 MB / 0.4994 GB, free: 6.523 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009196/0.3719, allocations: 0.7741 MB / 0.5001 GB, free: 5.738 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.996e-05/0.372, allocations: 305.1 kB / 0.5004 GB, free: 5.438 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001979/0.374, allocations: 1.308 MB / 0.5017 GB, free: 4.125 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2065/0.5805, allocations: 3.433 MB / 0.505 GB, free: 85.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006109/0.5866, allocations: 5.092 MB / 0.51 GB, free: 81.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-05/0.5867, allocations: 22 kB / 0.51 GB, free: 81.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.00838/0.5951, allocations: 4.816 MB / 0.5147 GB, free: 80.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.418e-05/0.5952, allocations: 39.59 kB / 0.5148 GB, free: 80.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/0.5953, allocations: 74.84 kB / 0.5149 GB, free: 80.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003869/0.5957, allocations: 185.8 kB / 0.515 GB, free: 80 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/0.5983, allocations: 0.9037 MB / 0.5159 GB, free: 79.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001823/0.6001, allocations: 2.369 MB / 0.5182 GB, free: 77.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002471/0.6026, allocations: 218.8 kB / 0.5184 GB, free: 77.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004091/0.603, allocations: 228.6 kB / 0.5187 GB, free: 77.87 MB / 382.1 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.002501/0.6055, allocations: 1.564 MB / 0.5202 GB, free: 77.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003586/0.6059, allocations: 220.3 kB / 0.5204 GB, free: 77.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003123/0.609, allocations: 1.949 MB / 0.5223 GB, free: 76.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.542e-05/0.6091, allocations: 25.98 kB / 0.5223 GB, free: 76.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/0.6092, allocations: 4 kB / 0.5223 GB, free: 76.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.6092, allocations: 7.359 kB / 0.5223 GB, free: 76.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009843/0.619, allocations: 5.571 MB / 0.5278 GB, free: 72.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.6191, allocations: 0 / 0.5278 GB, free: 72.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008681/0.6199, allocations: 238.5 kB / 0.528 GB, free: 72.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002253/0.6202, allocations: 86.66 kB / 0.5281 GB, free: 72.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.281e-05/0.6203, allocations: 26.16 kB / 0.5281 GB, free: 72.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001361/0.6216, allocations: 2.127 MB / 0.5302 GB, free: 70.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.6217, allocations: 0 / 0.5302 GB, free: 70.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003522/0.6252, allocations: 3.032 MB / 0.5331 GB, free: 67.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005774/0.6258, allocations: 300.2 kB / 0.5334 GB, free: 67.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003773/0.6262, allocations: 27.98 kB / 0.5335 GB, free: 67.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008711/0.627, allocations: 71.91 kB / 0.5335 GB, free: 67.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.6272, allocations: 80.77 kB / 0.5336 GB, free: 67.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.559e-05/0.6273, allocations: 40 kB / 0.5336 GB, free: 67.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001882/0.6292, allocations: 1.691 MB / 0.5353 GB, free: 65.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6292, allocations: 0 / 0.5353 GB, free: 65.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002529/0.6317, allocations: 0.6678 MB / 0.5359 GB, free: 64.84 MB / 382.1 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.0002941/0.632, allocations: 150.3 kB / 0.5361 GB, free: 64.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004016/0.6361, allocations: 3.128 MB / 0.5391 GB, free: 61.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.6361, allocations: 0 / 0.5391 GB, free: 61.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.6372, allocations: 0.987 MB / 0.5401 GB, free: 60.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001735/0.639, allocations: 387.5 kB / 0.5405 GB, free: 60.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008244/0.6472, allocations: 6.334 MB / 0.5467 GB, free: 53.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001893/0.6491, allocations: 2.567 MB / 0.5492 GB, free: 51.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002307/0.6514, allocations: 1.204 MB / 0.5503 GB, free: 50.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000398/0.6519, allocations: 167.4 kB / 0.5505 GB, free: 49.88 MB / 382.1 MB Notification: Performance of SimCode: time 1.483e-06/0.6519, allocations: 4 kB / 0.5505 GB, free: 49.88 MB / 382.1 MB Notification: Performance of Templates: time 0.03682/0.6887, allocations: 22.68 MB / 0.5727 GB, free: 27.39 MB / 382.1 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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)