Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") translateModel(PlanarMechanics.Examples.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001273, allocations: 108 kB / 16.37 MB, free: 6.48 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.001308/0.001308, allocations: 195.8 kB / 17.31 MB, free: 5.82 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.334/1.334, 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.04519/0.04519, allocations: 9.113 MB / 300.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 59.91 kB / 363.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.226, allocations: 51.42 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.0071/0.2332, allocations: 8.797 MB / 423.6 MB, free: 16.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003976/0.2372, allocations: 2.671 MB / 426.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006315/0.2378, allocations: 43.81 kB / 426.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006461/0.2385, allocations: 373.5 kB / 426.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002198/0.2407, allocations: 1.424 MB / 428.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003627/0.2411, allocations: 175.7 kB / 428.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002134/0.2432, allocations: 2.62 MB / 430.9 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009833/0.2442, allocations: 0.9916 MB / 431.9 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008658/0.2451, allocations: 0.9337 MB / 432.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.2463, allocations: 1.347 MB / 434.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002725/0.2466, allocations: 240 kB / 434.4 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001196/0.2478, allocations: 0.8426 MB / 435.2 MB, free: 4.344 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006743/0.2485, allocations: 1.231 MB / 436.5 MB, free: 3.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001053/0.2495, allocations: 1.6 MB / 438.1 MB, free: 1.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004555/0.2541, allocations: 5.053 MB / 443.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2541, allocations: 0 / 443.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2541, allocations: 0 / 443.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.921e-05/0.2542, allocations: 0 / 443.1 MB, free: 12.43 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.00851/0.2627, allocations: 3.932 MB / 447.1 MB, free: 8.434 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.2628, allocations: 8.031 kB / 447.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006433/0.2693, allocations: 1.771 MB / 448.8 MB, free: 6.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003291/0.2726, allocations: 1.409 MB / 450.3 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.2727, allocations: 156.1 kB / 450.4 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004678/0.2732, allocations: 207.9 kB / 450.6 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01268/0.2859, allocations: 8.001 MB / 458.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.007e-05/0.286, allocations: 15.88 kB / 458.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002832/0.2863, allocations: 95.88 kB / 458.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002776/0.2891, allocations: 1.852 MB / 460.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0142/0.3033, allocations: 7.176 MB / 467.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03731/0.3406, allocations: 24.35 MB / 492.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00524/0.3459, allocations: 2.392 MB / 494.5 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.3473, allocations: 0.8246 MB / 495.3 MB, free: 7.133 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008139/0.3555, allocations: 4.644 MB / 500 MB, free: 2.105 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.3555, allocations: 43.56 kB / 500 MB, free: 2.055 MB / 366.1 MB Notification: Performance of pre-optimization done (n=131): time 6.071e-06/0.3556, allocations: 0 / 500 MB, free: 2.055 MB / 366.1 MB Notification: Performance of matching and sorting (n=153): time 0.01386/0.3694, allocations: 6.875 MB / 0.495 GB, free: 11.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.264e-05/0.3695, allocations: 64.72 kB / 0.4951 GB, free: 11.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003423/0.3729, allocations: 2.671 MB / 0.4977 GB, free: 8.324 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.121e-05/0.373, allocations: 45.7 kB / 0.4977 GB, free: 8.273 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001347/0.3744, allocations: 2.105 MB / 0.4998 GB, free: 6.137 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004518/0.3748, allocations: 0.5705 MB / 0.5003 GB, free: 5.559 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009925/0.3758, allocations: 0.786 MB / 0.5011 GB, free: 4.762 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.764e-05/0.376, allocations: 305.1 kB / 0.5014 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002014/0.378, allocations: 1.292 MB / 0.5026 GB, free: 3.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.205/0.583, allocations: 3.431 MB / 0.506 GB, free: 85.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006033/0.589, allocations: 5.067 MB / 0.5109 GB, free: 81.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.842e-05/0.5891, allocations: 22 kB / 0.511 GB, free: 81.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.007738/0.5969, allocations: 4.912 MB / 0.5158 GB, free: 79.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.669e-05/0.5969, allocations: 39.31 kB / 0.5158 GB, free: 79.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.957e-05/0.597, allocations: 76.81 kB / 0.5159 GB, free: 79.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006322/0.5977, allocations: 299.6 kB / 0.5162 GB, free: 79.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002168/0.5998, allocations: 0.8663 MB / 0.517 GB, free: 79.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003436/0.6033, allocations: 3.651 MB / 0.5206 GB, free: 77.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002663/0.606, allocations: 202.8 kB / 0.5208 GB, free: 77.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002779/0.6063, allocations: 233.5 kB / 0.521 GB, free: 77.19 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 (472): * Single equations (assignments): 467 * 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 {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001821/0.6081, allocations: 1.57 MB / 0.5225 GB, free: 76.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002455/0.6083, allocations: 224.2 kB / 0.5227 GB, free: 76.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00253/0.6109, allocations: 2.022 MB / 0.5247 GB, free: 75.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-05/0.611, allocations: 25.69 kB / 0.5247 GB, free: 75.67 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.611, allocations: 2.688 kB / 0.5247 GB, free: 75.67 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.611, allocations: 7.594 kB / 0.5247 GB, free: 75.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007466/0.6185, allocations: 5.694 MB / 0.5303 GB, free: 71.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.6185, allocations: 2.016 kB / 0.5303 GB, free: 71.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007226/0.6192, allocations: 202.7 kB / 0.5305 GB, free: 71.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004711/0.6197, allocations: 210.7 kB / 0.5307 GB, free: 71.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.851e-05/0.6198, allocations: 28 kB / 0.5307 GB, free: 70.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002489/0.6223, allocations: 2.939 MB / 0.5336 GB, free: 68.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.6223, allocations: 4.031 kB / 0.5336 GB, free: 68.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003298/0.6256, allocations: 3.11 MB / 0.5366 GB, free: 64.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008458/0.6265, allocations: 454.1 kB / 0.5371 GB, free: 64.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002303/0.6267, allocations: 24 kB / 0.5371 GB, free: 64.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007273/0.6274, allocations: 63.92 kB / 0.5371 GB, free: 64.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.6276, allocations: 94.25 kB / 0.5372 GB, free: 64.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.548e-05/0.6277, allocations: 51.17 kB / 0.5373 GB, free: 64.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001931/0.6296, allocations: 1.716 MB / 0.539 GB, free: 62.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6296, allocations: 0 / 0.539 GB, free: 62.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002516/0.6321, allocations: 0.6873 MB / 0.5396 GB, free: 61.88 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.w) * 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 (113): * Single equations (assignments): 108 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002896/0.6324, allocations: 160.9 kB / 0.5398 GB, free: 61.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004144/0.6366, allocations: 3.174 MB / 0.5429 GB, free: 58.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.6366, allocations: 0 / 0.5429 GB, free: 58.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.6377, allocations: 1.034 MB / 0.5439 GB, free: 57.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/0.6392, allocations: 411.7 kB / 0.5443 GB, free: 57.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008315/0.6475, allocations: 6.532 MB / 0.5507 GB, free: 50.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001983/0.6495, allocations: 2.595 MB / 0.5532 GB, free: 47.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002654/0.6522, allocations: 1.181 MB / 0.5544 GB, free: 46.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003625/0.6526, allocations: 167.4 kB / 0.5545 GB, free: 46.57 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.6526, allocations: 4 kB / 0.5545 GB, free: 46.57 MB / 382.1 MB Notification: Performance of Templates: time 0.03771/0.6903, allocations: 24.02 MB / 0.578 GB, free: 22.76 MB / 382.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)