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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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.006522/0.006522, allocations: 103.4 kB / 15.74 MB, free: 5.957 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.001202/0.001202, allocations: 192.6 kB / 16.68 MB, free: 5.887 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04296/0.04296, allocations: 9.127 MB / 299.6 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 71.89 kB / 414.6 MB, free: 21.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1122, allocations: 51.43 MB / 466.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01052/0.1227, allocations: 8.786 MB / 474.9 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005258/0.128, allocations: 2.678 MB / 477.5 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001107/0.1292, allocations: 35.94 kB / 477.6 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009154/0.1301, allocations: 377.4 kB / 477.9 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003564/0.1337, allocations: 1.463 MB / 479.4 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005067/0.1343, allocations: 175.7 kB / 479.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002824/0.1371, allocations: 2.622 MB / 482.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00114/0.1383, allocations: 0.9842 MB / 483.2 MB, free: 500 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001047/0.1393, allocations: 0.9455 MB / 484.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001427/0.1408, allocations: 1.343 MB / 485.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003517/0.1411, allocations: 240 kB / 485.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.1425, allocations: 0.8464 MB / 486.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00102/0.1436, allocations: 1.235 MB / 487.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001521/0.1451, allocations: 1.592 MB / 489.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006434/0.1515, allocations: 5.072 MB / 494.4 MB, free: 5.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.1516, allocations: 0 / 494.4 MB, free: 5.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1516, allocations: 0 / 494.4 MB, free: 5.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001888/0.1518, allocations: 0 / 494.4 MB, free: 5.18 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.01035/0.1622, allocations: 3.943 MB / 498.4 MB, free: 1.172 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.1622, allocations: 16.03 kB / 498.4 MB, free: 1.156 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006335/0.1686, allocations: 1.771 MB / 0.4885 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003022/0.1716, allocations: 1.406 MB / 0.4898 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001387/0.1718, allocations: 152.1 kB / 0.49 GB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005303/0.1723, allocations: 211.9 kB / 0.4902 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01319/0.1855, allocations: 7.993 MB / 0.498 GB, free: 5.211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.76e-05/0.1856, allocations: 23.81 kB / 0.498 GB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003324/0.186, allocations: 95.86 kB / 0.4981 GB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002856/0.1888, allocations: 1.848 MB / 0.4999 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2912/0.4801, allocations: 7.17 MB / 0.5069 GB, free: 38.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03636/0.5165, allocations: 24.34 MB / 0.5307 GB, free: 23.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005126/0.5217, allocations: 2.39 MB / 0.533 GB, free: 21.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.5228, allocations: 0.8252 MB / 0.5338 GB, free: 21.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006338/0.5292, allocations: 4.64 MB / 0.5383 GB, free: 17.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.5293, allocations: 42.62 kB / 0.5384 GB, free: 17.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 4.138e-06/0.5293, allocations: 0 / 0.5384 GB, free: 17.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01271/0.542, allocations: 6.873 MB / 0.5451 GB, free: 12.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.5421, allocations: 68.72 kB / 0.5452 GB, free: 12.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003297/0.5454, allocations: 2.667 MB / 0.5478 GB, free: 9.391 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001225/0.5455, allocations: 45.7 kB / 0.5478 GB, free: 9.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008687/0.5464, allocations: 2.118 MB / 0.5499 GB, free: 7.223 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003414/0.5467, allocations: 0.5658 MB / 0.5504 GB, free: 6.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007949/0.5475, allocations: 0.7853 MB / 0.5512 GB, free: 5.867 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.649e-05/0.5476, allocations: 301.1 kB / 0.5515 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/0.5492, allocations: 1.3 MB / 0.5528 GB, free: 4.266 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002398/0.5516, allocations: 3.432 MB / 0.5561 GB, free: 15.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006143/0.5577, allocations: 5.078 MB / 0.5611 GB, free: 9.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.121e-05/0.5578, allocations: 23.98 kB / 0.5611 GB, free: 9.633 MB / 398.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.009569/0.5674, allocations: 4.912 MB / 0.5659 GB, free: 4.719 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.853e-05/0.5675, allocations: 40 kB / 0.5659 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.376e-05/0.5676, allocations: 72 kB / 0.566 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006833/0.5683, allocations: 311.7 kB / 0.5663 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002596/0.5709, allocations: 0.8656 MB / 0.5671 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004162/0.5751, allocations: 3.638 MB / 0.5707 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002793/0.5779, allocations: 206 kB / 0.5709 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005344/0.5784, allocations: 228 kB / 0.5711 GB, free: 15.24 MB / 414.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.002839/0.5813, allocations: 1.569 MB / 0.5726 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006472/0.5819, allocations: 229.2 kB / 0.5729 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003947/0.5859, allocations: 2.018 MB / 0.5748 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/0.586, allocations: 23.98 kB / 0.5749 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.586, allocations: 8 kB / 0.5749 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/0.586, allocations: 7.969 kB / 0.5749 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009795/0.5958, allocations: 5.687 MB / 0.5804 GB, free: 5.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.13e-05/0.5959, allocations: 4 kB / 0.5804 GB, free: 5.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000809/0.5967, allocations: 199.8 kB / 0.5806 GB, free: 5.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005684/0.5973, allocations: 211.2 kB / 0.5808 GB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.588e-05/0.5974, allocations: 32 kB / 0.5808 GB, free: 5.152 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00354/0.6009, allocations: 2.946 MB / 0.5837 GB, free: 2.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.601, allocations: 4 kB / 0.5837 GB, free: 2.066 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004878/0.6059, allocations: 3.101 MB / 0.5868 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009757/0.6069, allocations: 453.2 kB / 0.5872 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000244/0.6071, allocations: 31.92 kB / 0.5872 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007664/0.6079, allocations: 71.86 kB / 0.5873 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.6081, allocations: 84.83 kB / 0.5874 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.619e-05/0.6082, allocations: 47.89 kB / 0.5874 GB, free: 14.23 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002651/0.6108, allocations: 1.716 MB / 0.5891 GB, free: 12.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6109, allocations: 0 / 0.5891 GB, free: 12.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00337/0.6142, allocations: 0.6824 MB / 0.5898 GB, free: 11.82 MB / 430.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.000398/0.6147, allocations: 164.1 kB / 0.5899 GB, free: 11.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005244/0.6199, allocations: 3.177 MB / 0.593 GB, free: 8.492 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.6199, allocations: 0 / 0.593 GB, free: 8.492 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.6214, allocations: 1.028 MB / 0.594 GB, free: 7.445 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002137/0.6236, allocations: 420.9 kB / 0.5944 GB, free: 7.047 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/0.6343, allocations: 6.531 MB / 0.6008 GB, free: 484 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002588/0.6369, allocations: 2.587 MB / 0.6033 GB, free: 13.85 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002673/0.6396, allocations: 1.184 MB / 0.6045 GB, free: 12.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003838/0.64, allocations: 167.4 kB / 0.6046 GB, free: 12.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.413e-06/0.64, allocations: 0 / 0.6046 GB, free: 12.5 MB / 446.1 MB Notification: Performance of Templates: time 0.04715/0.6871, allocations: 25.38 MB / 0.6294 GB, free: 3.289 MB / 462.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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)