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-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.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.0009295/0.00093, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.0009319/0.000932, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.538/1.538, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2327/0.2327, allocations: 9.11 MB / 300.2 MB, free: 2.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.0003626, allocations: 8 kB / 363.1 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1282, allocations: 52.43 MB / 415.5 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.3016/0.4299, allocations: 24.73 MB / 440.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01419/0.4441, allocations: 5.817 MB / 446.1 MB, free: 26.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0063/0.4505, allocations: 104.2 kB / 446.2 MB, free: 26.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004143/0.4546, allocations: 1.189 MB / 447.4 MB, free: 26.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01216/0.4668, allocations: 4.263 MB / 451.6 MB, free: 24.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001701/0.4686, allocations: 129.6 kB / 451.8 MB, free: 24.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004591/0.4732, allocations: 2.778 MB / 454.5 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001643/0.4749, allocations: 0.8161 MB / 455.4 MB, free: 22.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001514/0.4764, allocations: 0.796 MB / 456.2 MB, free: 22.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001688/0.4781, allocations: 1.287 MB / 457.4 MB, free: 22.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003638/0.4785, allocations: 128.3 kB / 457.6 MB, free: 22.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001399/0.4799, allocations: 0.6721 MB / 458.2 MB, free: 21.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001034/0.4809, allocations: 1.097 MB / 459.3 MB, free: 21.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007364/0.4817, allocations: 0.6349 MB / 460 MB, free: 21.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004014/0.4857, allocations: 3.661 MB / 463.6 MB, free: 20.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.4857, allocations: 0 / 463.6 MB, free: 20.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4858, allocations: 3 kB / 463.6 MB, free: 20.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001683/0.4859, allocations: 0 / 463.6 MB, free: 20.22 MB / 350.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.008193/0.4941, allocations: 3.286 MB / 466.9 MB, free: 18.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.4942, allocations: 10.3 kB / 466.9 MB, free: 18.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006973/0.5012, allocations: 1.813 MB / 468.8 MB, free: 18.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003297/0.5045, allocations: 1.325 MB / 470.1 MB, free: 17.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001812/0.5047, allocations: 152.7 kB / 470.2 MB, free: 17.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006383/0.5053, allocations: 200.5 kB / 470.4 MB, free: 17.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01365/0.519, allocations: 7.958 MB / 478.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.648e-05/0.5191, allocations: 21.97 kB / 478.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002874/0.5194, allocations: 97.2 kB / 478.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00323/0.5226, allocations: 1.844 MB / 480.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01402/0.5367, allocations: 7.145 MB / 487.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03281/0.5695, allocations: 24.14 MB / 0.4996 GB, free: 3.047 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005308/0.5749, allocations: 2.369 MB / 0.502 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.5763, allocations: 0.8263 MB / 0.5028 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007363/0.5836, allocations: 4.756 MB / 0.5074 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.5837, allocations: 43.56 kB / 0.5074 GB, free: 10.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 4.719e-06/0.5837, allocations: 0 / 0.5074 GB, free: 10.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01613/0.5999, allocations: 7.072 MB / 0.5144 GB, free: 3.391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/0.6, allocations: 68.67 kB / 0.5144 GB, free: 3.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003991/0.604, allocations: 2.598 MB / 0.517 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001445/0.6041, allocations: 41.7 kB / 0.517 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/0.6056, allocations: 2.081 MB / 0.519 GB, free: 14.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005992/0.6063, allocations: 0.5704 MB / 0.5196 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.6064, allocations: 79.94 kB / 0.5197 GB, free: 13.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002683/0.6067, allocations: 478.6 kB / 0.5201 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002429/0.6092, allocations: 1.304 MB / 0.5214 GB, free: 12.08 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004165/0.6133, allocations: 3.433 MB / 0.5247 GB, free: 7.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003427/0.6168, allocations: 2.109 MB / 0.5268 GB, free: 5.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.524e-05/0.6169, allocations: 28 kB / 0.5268 GB, free: 5.453 MB / 398.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.008371/0.6252, allocations: 4.793 MB / 0.5315 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.365e-05/0.6253, allocations: 39.98 kB / 0.5315 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.362e-05/0.6254, allocations: 72 kB / 0.5316 GB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004229/0.6259, allocations: 197.3 kB / 0.5318 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002838/0.6287, allocations: 0.9085 MB / 0.5327 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002208/0.6309, allocations: 2.184 MB / 0.5348 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002815/0.6338, allocations: 215.9 kB / 0.535 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003663/0.6341, allocations: 228 kB / 0.5352 GB, free: 12.66 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002777/0.6369, allocations: 1.55 MB / 0.5368 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003843/0.6373, allocations: 221.1 kB / 0.537 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003373/0.6407, allocations: 1.967 MB / 0.5389 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001064/0.6408, allocations: 24.45 kB / 0.5389 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.6408, allocations: 4 kB / 0.5389 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.767e-05/0.6409, allocations: 15.91 kB / 0.5389 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009335/0.6502, allocations: 5.627 MB / 0.5444 GB, free: 3.102 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.6502, allocations: 8.188 kB / 0.5444 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009782/0.6512, allocations: 243.6 kB / 0.5447 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002498/0.6515, allocations: 88.75 kB / 0.5448 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.999e-05/0.6516, allocations: 28 kB / 0.5448 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001855/0.6534, allocations: 1.919 MB / 0.5467 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.6535, allocations: 64 / 0.5467 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004834/0.6583, allocations: 3.051 MB / 0.5496 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008123/0.6591, allocations: 318.1 kB / 0.5499 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/0.6594, allocations: 27.91 kB / 0.55 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000773/0.6602, allocations: 79.91 kB / 0.55 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.6604, allocations: 80.92 kB / 0.5501 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.496e-05/0.6605, allocations: 43.98 kB / 0.5502 GB, free: 13.01 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003/0.6635, allocations: 1.668 MB / 0.5518 GB, free: 11.32 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6635, allocations: 0 / 0.5518 GB, free: 11.32 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004064/0.6676, allocations: 0.668 MB / 0.5524 GB, free: 10.66 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004582/0.6681, allocations: 160.6 kB / 0.5526 GB, free: 10.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006324/0.6744, allocations: 3.121 MB / 0.5556 GB, free: 7.383 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.6744, allocations: 0 / 0.5556 GB, free: 7.383 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0016/0.676, allocations: 0.9933 MB / 0.5566 GB, free: 6.371 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00233/0.6784, allocations: 363.7 kB / 0.557 GB, free: 6.02 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/0.6921, allocations: 7.666 MB / 0.5644 GB, free: 14.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003042/0.6952, allocations: 2.567 MB / 0.567 GB, free: 11.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003308/0.6986, allocations: 1.208 MB / 0.5681 GB, free: 10.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005049/0.6991, allocations: 167.4 kB / 0.5683 GB, free: 10.34 MB / 446.1 MB Notification: Performance of SimCode: time 2.756e-06/0.6991, allocations: 0 / 0.5683 GB, free: 10.34 MB / 446.1 MB Notification: Performance of Templates: time 0.2402/0.9393, allocations: 22.78 MB / 0.5905 GB, free: 118.6 MB / 446.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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)