Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.CraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrab") translateModel(PlanarMechanics.Examples.CraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 103.8 kB / 16.41 MB, free: 6.457 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.001396/0.001396, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.399/1.399, 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.04616/0.04616, allocations: 9.114 MB / 300.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 63.91 kB / 415.3 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09814/0.09937, allocations: 51.44 MB / 466.7 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01036/0.1098, allocations: 8.318 MB / 475.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006091/0.1159, allocations: 2.597 MB / 477.7 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001543/0.1175, allocations: 31.94 kB / 477.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001298/0.1189, allocations: 361.5 kB / 478 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004447/0.1233, allocations: 1.393 MB / 479.4 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007388/0.1241, allocations: 135.8 kB / 479.6 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004331/0.1284, allocations: 2.49 MB / 482.1 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001812/0.1303, allocations: 0.9009 MB / 483 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001923/0.1322, allocations: 0.891 MB / 483.8 MB, free: 488 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002408/0.1347, allocations: 1.292 MB / 485.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007924/0.1355, allocations: 236 kB / 485.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002079/0.1376, allocations: 0.8307 MB / 486.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001675/0.1393, allocations: 1.2 MB / 487.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002528/0.1418, allocations: 1.549 MB / 489 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00561/0.1474, allocations: 4.948 MB / 493.9 MB, free: 6.391 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1475, allocations: 0 / 493.9 MB, free: 6.391 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1475, allocations: 3.938 kB / 493.9 MB, free: 6.387 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001188/0.1476, allocations: 4 kB / 493.9 MB, free: 6.383 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.009403/0.157, allocations: 3.822 MB / 497.7 MB, free: 2.496 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.1571, allocations: 12.03 kB / 497.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006255/0.1633, allocations: 1.752 MB / 499.5 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002651/0.166, allocations: 1.357 MB / 0.4891 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/0.1662, allocations: 144 kB / 0.4892 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004695/0.1666, allocations: 199.9 kB / 0.4894 GB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01231/0.179, allocations: 7.902 MB / 0.4972 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.325e-05/0.1791, allocations: 19.88 kB / 0.4972 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002999/0.1794, allocations: 95.86 kB / 0.4973 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002893/0.1823, allocations: 1.848 MB / 0.4991 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2505/0.4328, allocations: 7.117 MB / 0.506 GB, free: 39.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03295/0.4658, allocations: 23.82 MB / 0.5293 GB, free: 24.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004844/0.4707, allocations: 2.372 MB / 0.5316 GB, free: 22.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.4718, allocations: 0.8199 MB / 0.5324 GB, free: 22.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005721/0.4775, allocations: 4.59 MB / 0.5369 GB, free: 18.51 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.4776, allocations: 43.44 kB / 0.5369 GB, free: 18.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 3.136e-06/0.4776, allocations: 0 / 0.5369 GB, free: 18.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01252/0.4901, allocations: 7.014 MB / 0.5438 GB, free: 14.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/0.4902, allocations: 64.72 kB / 0.5438 GB, free: 14.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002881/0.4931, allocations: 2.576 MB / 0.5464 GB, free: 11.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.294e-05/0.4932, allocations: 49.53 kB / 0.5464 GB, free: 11.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008029/0.494, allocations: 2.058 MB / 0.5484 GB, free: 9.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003353/0.4943, allocations: 0.5699 MB / 0.549 GB, free: 8.934 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007727/0.4951, allocations: 0.77 MB / 0.5497 GB, free: 8.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.062e-05/0.4952, allocations: 309.1 kB / 0.55 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001587/0.4968, allocations: 1.28 MB / 0.5513 GB, free: 6.574 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002281/0.4991, allocations: 3.38 MB / 0.5546 GB, free: 2.172 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005177/0.5043, allocations: 4.992 MB / 0.5594 GB, free: 12.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.474e-05/0.5043, allocations: 20 kB / 0.5595 GB, free: 12.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.008276/0.5126, allocations: 4.828 MB / 0.5642 GB, free: 7.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.674e-05/0.5127, allocations: 40.94 kB / 0.5642 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.778e-05/0.5128, allocations: 76 kB / 0.5643 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000745/0.5135, allocations: 307.4 kB / 0.5646 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002712/0.5163, allocations: 0.8461 MB / 0.5654 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004466/0.5208, allocations: 3.648 MB / 0.569 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002736/0.5235, allocations: 203.8 kB / 0.5692 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004344/0.524, allocations: 228 kB / 0.5694 GB, free: 1.844 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * 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 (463): * Single equations (assignments): 458 * 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.002318/0.5263, allocations: 1.55 MB / 0.5709 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003613/0.5267, allocations: 217.2 kB / 0.5711 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003261/0.5299, allocations: 2 MB / 0.5731 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001031/0.53, allocations: 24.92 kB / 0.5731 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.5301, allocations: 7.984 kB / 0.5731 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.5301, allocations: 7.922 kB / 0.5731 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009931/0.54, allocations: 5.648 MB / 0.5786 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.5401, allocations: 4 kB / 0.5786 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008327/0.5409, allocations: 199.7 kB / 0.5788 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006033/0.5415, allocations: 212.7 kB / 0.579 GB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.184e-05/0.5416, allocations: 29.56 kB / 0.579 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003271/0.5449, allocations: 2.963 MB / 0.5819 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.5449, allocations: 7.938 kB / 0.5819 GB, free: 4.734 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004463/0.5494, allocations: 3.094 MB / 0.585 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007075/0.5501, allocations: 293.1 kB / 0.5852 GB, free: 1.277 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002607/0.5504, allocations: 28 kB / 0.5853 GB, free: 1.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007755/0.5512, allocations: 63.92 kB / 0.5853 GB, free: 1.188 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.5514, allocations: 92.75 kB / 0.5854 GB, free: 1.098 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.065e-05/0.5515, allocations: 47.67 kB / 0.5855 GB, free: 1.055 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002484/0.554, allocations: 1.665 MB / 0.5871 GB, free: 15.38 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.554, allocations: 0 / 0.5871 GB, free: 15.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003037/0.557, allocations: 0.6824 MB / 0.5877 GB, free: 14.7 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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.0003697/0.5574, allocations: 160.1 kB / 0.5879 GB, free: 14.54 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005067/0.5625, allocations: 3.136 MB / 0.591 GB, free: 11.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.5625, allocations: 192 / 0.591 GB, free: 11.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001505/0.564, allocations: 1.031 MB / 0.592 GB, free: 10.37 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/0.566, allocations: 386.1 kB / 0.5923 GB, free: 10 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/0.5772, allocations: 6.762 MB / 0.5989 GB, free: 3.188 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002936/0.5802, allocations: 2.565 MB / 0.6014 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007572/0.5809, allocations: 203.4 kB / 0.6016 GB, free: 400 kB / 430.1 MB Notification: Performance of SimCode: time 7.81e-07/0.5809, allocations: 0 / 0.6016 GB, free: 400 kB / 430.1 MB Notification: Performance of Templates: time 0.07883/0.6598, allocations: 55.98 MB / 0.6563 GB, free: 8.516 MB / 494.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.CraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)