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.001119/0.001119, allocations: 106.5 kB / 16.36 MB, free: 5.824 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.00111/0.001111, allocations: 191.2 kB / 17.29 MB, free: 5.48 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04458/0.04458, allocations: 9.105 MB / 300.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 71.88 kB / 363.4 MB, free: 6.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2269, allocations: 51.43 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.006299/0.2333, allocations: 8.317 MB / 423.1 MB, free: 16.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003633/0.2369, allocations: 2.595 MB / 425.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005806/0.2375, allocations: 35.88 kB / 425.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000593/0.2381, allocations: 353.7 kB / 426.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002326/0.2405, allocations: 1.396 MB / 427.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003077/0.2409, allocations: 131.8 kB / 427.6 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001936/0.2428, allocations: 2.496 MB / 430.1 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008201/0.2436, allocations: 0.9048 MB / 431 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007042/0.2444, allocations: 0.8871 MB / 431.9 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009926/0.2454, allocations: 1.292 MB / 433.2 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002272/0.2456, allocations: 232 kB / 433.4 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.2466, allocations: 0.8309 MB / 434.3 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006463/0.2473, allocations: 1.215 MB / 435.5 MB, free: 4.105 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008501/0.2481, allocations: 1.542 MB / 437 MB, free: 2.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003676/0.2518, allocations: 4.932 MB / 442 MB, free: 13.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2518, allocations: 0 / 442 MB, free: 13.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2518, allocations: 0 / 442 MB, free: 13.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.631e-05/0.2519, allocations: 4 kB / 442 MB, free: 13.61 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.007737/0.2597, allocations: 3.826 MB / 445.8 MB, free: 9.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2597, allocations: 12.03 kB / 445.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005945/0.2657, allocations: 1.755 MB / 447.5 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002557/0.2683, allocations: 1.345 MB / 448.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.2684, allocations: 144 kB / 449 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003591/0.2687, allocations: 199.9 kB / 449.2 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01081/0.2796, allocations: 7.898 MB / 457.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-05/0.2797, allocations: 27.81 kB / 457.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000279/0.28, allocations: 99.84 kB / 457.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002886/0.2829, allocations: 1.84 MB / 459.1 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01284/0.2957, allocations: 7.121 MB / 466.2 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03006/0.3258, allocations: 23.82 MB / 490 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004789/0.3306, allocations: 2.37 MB / 492.4 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001156/0.3318, allocations: 0.8203 MB / 493.2 MB, free: 9.242 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006944/0.3388, allocations: 4.6 MB / 497.8 MB, free: 4.254 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.3389, allocations: 43.56 kB / 497.9 MB, free: 4.199 MB / 366.1 MB Notification: Performance of pre-optimization done (n=129): time 3.386e-06/0.3389, allocations: 0 / 497.9 MB, free: 4.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=153): time 0.01388/0.3527, allocations: 7.008 MB / 0.493 GB, free: 13.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.297e-05/0.3528, allocations: 64.72 kB / 0.4931 GB, free: 13.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003474/0.3563, allocations: 2.588 MB / 0.4956 GB, free: 10.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001056/0.3565, allocations: 53.69 kB / 0.4957 GB, free: 10.35 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001319/0.3578, allocations: 2.046 MB / 0.4977 GB, free: 8.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005188/0.3583, allocations: 0.5745 MB / 0.4982 GB, free: 7.688 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000969/0.3593, allocations: 0.7701 MB / 0.499 GB, free: 6.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.633e-05/0.3594, allocations: 301.1 kB / 0.4993 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001893/0.3613, allocations: 1.276 MB / 0.5005 GB, free: 5.336 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003276/0.3646, allocations: 3.382 MB / 0.5038 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2138/0.5783, allocations: 4.992 MB / 0.5087 GB, free: 82.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.538e-05/0.5785, allocations: 20.66 kB / 0.5087 GB, free: 82.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.008583/0.587, allocations: 4.824 MB / 0.5134 GB, free: 80.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.436e-05/0.5871, allocations: 39.5 kB / 0.5135 GB, free: 80.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/0.5872, allocations: 74.75 kB / 0.5135 GB, free: 80.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007408/0.588, allocations: 304.7 kB / 0.5138 GB, free: 80.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002236/0.5902, allocations: 0.8567 MB / 0.5147 GB, free: 80.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003572/0.5938, allocations: 3.654 MB / 0.5182 GB, free: 78.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002358/0.5962, allocations: 192.5 kB / 0.5184 GB, free: 78.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002443/0.5964, allocations: 224.6 kB / 0.5186 GB, free: 78.12 MB / 382.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.001735/0.5982, allocations: 1.552 MB / 0.5202 GB, free: 77.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002281/0.5984, allocations: 217.4 kB / 0.5204 GB, free: 77.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002676/0.6011, allocations: 2.005 MB / 0.5223 GB, free: 76.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.09e-05/0.6012, allocations: 30.27 kB / 0.5223 GB, free: 76.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.6012, allocations: 6.719 kB / 0.5224 GB, free: 76.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.6012, allocations: 11.17 kB / 0.5224 GB, free: 76.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007741/0.609, allocations: 5.643 MB / 0.5279 GB, free: 72.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.609, allocations: 5.359 kB / 0.5279 GB, free: 72.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007042/0.6097, allocations: 202 kB / 0.5281 GB, free: 72.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005024/0.6102, allocations: 215.4 kB / 0.5283 GB, free: 72.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.026e-05/0.6103, allocations: 34.8 kB / 0.5283 GB, free: 72.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002588/0.6129, allocations: 2.938 MB / 0.5312 GB, free: 69.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.6129, allocations: 8 kB / 0.5312 GB, free: 69.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003415/0.6164, allocations: 3.097 MB / 0.5342 GB, free: 66.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005113/0.6169, allocations: 294.4 kB / 0.5345 GB, free: 66.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002297/0.6171, allocations: 24 kB / 0.5345 GB, free: 66.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006977/0.6178, allocations: 59.92 kB / 0.5346 GB, free: 66.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.618, allocations: 92.81 kB / 0.5347 GB, free: 66.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.864e-05/0.6181, allocations: 43.05 kB / 0.5347 GB, free: 66.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001931/0.62, allocations: 1.675 MB / 0.5363 GB, free: 64.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.62, allocations: 0 / 0.5363 GB, free: 64.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002658/0.6227, allocations: 0.6739 MB / 0.537 GB, free: 63.65 MB / 382.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.0003123/0.623, allocations: 158.1 kB / 0.5371 GB, free: 63.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00385/0.6268, allocations: 3.143 MB / 0.5402 GB, free: 60.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.6269, allocations: 0.6875 kB / 0.5402 GB, free: 60.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/0.628, allocations: 1.016 MB / 0.5412 GB, free: 59.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/0.6294, allocations: 398.4 kB / 0.5416 GB, free: 58.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009741/0.6392, allocations: 6.402 MB / 0.5478 GB, free: 52.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001987/0.6412, allocations: 2.561 MB / 0.5503 GB, free: 49.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002386/0.6436, allocations: 1.176 MB / 0.5515 GB, free: 48.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003896/0.644, allocations: 163.4 kB / 0.5516 GB, free: 48.6 MB / 382.1 MB Notification: Performance of SimCode: time 1.593e-06/0.644, allocations: 0 / 0.5516 GB, free: 48.6 MB / 382.1 MB Notification: Performance of Templates: time 0.03662/0.6807, allocations: 23.43 MB / 0.5745 GB, free: 25.38 MB / 382.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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)