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-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.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.004329/0.004329, allocations: 99.95 kB / 15.73 MB, free: 6.059 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.000984/0.000984, allocations: 188.7 kB / 16.67 MB, free: 5.973 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.29/1.29, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04364/0.04364, allocations: 9.137 MB / 299.7 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 63.91 kB / 414.6 MB, free: 21.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09743/0.09871, allocations: 51.43 MB / 466.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.008654/0.1074, allocations: 8.312 MB / 474.4 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005241/0.1127, allocations: 2.593 MB / 477 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001123/0.1139, allocations: 35.94 kB / 477 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008568/0.1147, allocations: 357.6 kB / 477.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003541/0.1183, allocations: 1.397 MB / 478.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004341/0.1188, allocations: 131.8 kB / 478.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00315/0.1219, allocations: 2.49 MB / 481.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001251/0.1232, allocations: 0.9047 MB / 482.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.1245, allocations: 0.8832 MB / 483.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001639/0.1261, allocations: 1.3 MB / 484.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000344/0.1265, allocations: 232 kB / 484.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001472/0.128, allocations: 0.8307 MB / 485.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001027/0.129, allocations: 1.204 MB / 486.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001396/0.1304, allocations: 1.542 MB / 488.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005462/0.1359, allocations: 4.968 MB / 493.2 MB, free: 6.406 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1359, allocations: 0 / 493.2 MB, free: 6.406 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.857e-06/0.1359, allocations: 4 kB / 493.2 MB, free: 6.402 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.225e-05/0.136, allocations: 3.938 kB / 493.3 MB, free: 6.398 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.008684/0.1447, allocations: 3.91 MB / 497.2 MB, free: 2.418 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.1448, allocations: 8.031 kB / 497.2 MB, free: 2.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006628/0.1514, allocations: 1.777 MB / 498.9 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003202/0.1546, allocations: 1.346 MB / 0.4886 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000141/0.1548, allocations: 148 kB / 0.4887 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005026/0.1553, allocations: 203.9 kB / 0.4889 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/0.1691, allocations: 7.906 MB / 0.4966 GB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.891e-05/0.1692, allocations: 27.7 kB / 0.4966 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003439/0.1696, allocations: 95.84 kB / 0.4967 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003114/0.1727, allocations: 1.844 MB / 0.4985 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2916/0.4643, allocations: 7.117 MB / 0.5055 GB, free: 39.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03519/0.4996, allocations: 23.88 MB / 0.5288 GB, free: 24.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004825/0.5044, allocations: 2.37 MB / 0.5311 GB, free: 22.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.5055, allocations: 0.8242 MB / 0.5319 GB, free: 22.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0056/0.5111, allocations: 4.591 MB / 0.5364 GB, free: 18.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/0.5112, allocations: 47.38 kB / 0.5365 GB, free: 18.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 3.236e-06/0.5112, allocations: 0 / 0.5365 GB, free: 18.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01257/0.5238, allocations: 7.066 MB / 0.5434 GB, free: 14.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.5238, allocations: 68.72 kB / 0.5434 GB, free: 14.33 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002937/0.5268, allocations: 2.593 MB / 0.546 GB, free: 11.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.83e-05/0.5269, allocations: 49.7 kB / 0.546 GB, free: 11.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/0.5279, allocations: 2.136 MB / 0.5481 GB, free: 9.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000367/0.5283, allocations: 0.5914 MB / 0.5487 GB, free: 8.938 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008082/0.5291, allocations: 0.7746 MB / 0.5494 GB, free: 8.156 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.256e-05/0.5292, allocations: 305.1 kB / 0.5497 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001548/0.5307, allocations: 1.272 MB / 0.551 GB, free: 6.582 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002345/0.5331, allocations: 3.376 MB / 0.5543 GB, free: 2.184 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005091/0.5382, allocations: 5.012 MB / 0.5592 GB, free: 12.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.214e-05/0.5382, allocations: 27.56 kB / 0.5592 GB, free: 12.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.007744/0.546, allocations: 4.844 MB / 0.5639 GB, free: 7.285 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.558e-05/0.5461, allocations: 36 kB / 0.5639 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.15e-05/0.5462, allocations: 75.98 kB / 0.564 GB, free: 7.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007404/0.5469, allocations: 316.1 kB / 0.5643 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002419/0.5493, allocations: 0.8461 MB / 0.5651 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004447/0.5538, allocations: 3.646 MB / 0.5687 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002729/0.5565, allocations: 199.8 kB / 0.5689 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003483/0.5569, allocations: 228 kB / 0.5691 GB, free: 1.82 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.003017/0.5599, allocations: 1.553 MB / 0.5706 GB, free: 264 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004954/0.5604, allocations: 230.5 kB / 0.5708 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003314/0.5637, allocations: 1.989 MB / 0.5728 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-05/0.5639, allocations: 31.98 kB / 0.5728 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.5639, allocations: 4 kB / 0.5728 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.581e-05/0.5639, allocations: 11.91 kB / 0.5728 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009216/0.5731, allocations: 5.647 MB / 0.5783 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.5732, allocations: 0 / 0.5783 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007988/0.574, allocations: 207.7 kB / 0.5785 GB, free: 8.035 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005725/0.5745, allocations: 215.4 kB / 0.5788 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.513e-05/0.5746, allocations: 24 kB / 0.5788 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003244/0.5779, allocations: 2.96 MB / 0.5817 GB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.5779, allocations: 11.92 kB / 0.5817 GB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004425/0.5823, allocations: 3.098 MB / 0.5847 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006615/0.583, allocations: 307.6 kB / 0.585 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/0.5833, allocations: 31.94 kB / 0.585 GB, free: 1.191 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000775/0.5841, allocations: 63.92 kB / 0.5851 GB, free: 1.129 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.5842, allocations: 88.73 kB / 0.5852 GB, free: 1.047 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.025e-05/0.5843, allocations: 51.92 kB / 0.5852 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002444/0.5868, allocations: 1.667 MB / 0.5868 GB, free: 15.31 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5868, allocations: 0 / 0.5868 GB, free: 15.31 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002906/0.5897, allocations: 0.6757 MB / 0.5875 GB, free: 14.64 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.0003205/0.59, allocations: 162.7 kB / 0.5877 GB, free: 14.47 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004848/0.5949, allocations: 3.137 MB / 0.5907 GB, free: 11.35 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.5949, allocations: 0 / 0.5907 GB, free: 11.35 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.5963, allocations: 1.028 MB / 0.5917 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/0.5982, allocations: 387 kB / 0.5921 GB, free: 9.941 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.6083, allocations: 6.502 MB / 0.5985 GB, free: 3.387 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002498/0.6109, allocations: 2.558 MB / 0.6009 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002641/0.6135, allocations: 1.18 MB / 0.6021 GB, free: 15.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003523/0.6139, allocations: 163.3 kB / 0.6023 GB, free: 15.45 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.6139, allocations: 0 / 0.6023 GB, free: 15.45 MB / 446.1 MB Notification: Performance of Templates: time 0.04475/0.6586, allocations: 24.78 MB / 0.6265 GB, free: 6.824 MB / 462.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)