Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.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.CraneCrabTo3D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D") translateModel(PlanarMechanics.Examples.CraneCrabTo3D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 105.6 kB / 16.41 MB, free: 6.496 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.001136/0.001136, allocations: 189.6 kB / 17.34 MB, free: 5.766 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.314/1.314, 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.04571/0.04571, allocations: 9.121 MB / 300.3 MB, free: 5.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 59.91 kB / 415.3 MB, free: 21.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1022, allocations: 51.44 MB / 466.7 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01597/0.1182, allocations: 14.38 MB / 481.1 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01003/0.1282, allocations: 4.648 MB / 485.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002751/0.131, allocations: 75.81 kB / 485.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004042/0.1351, allocations: 1.595 MB / 487.4 MB, free: 13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007319/0.1425, allocations: 2.564 MB / 490 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00182/0.1443, allocations: 0.5693 MB / 490.6 MB, free: 9.859 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007736/0.1521, allocations: 5.192 MB / 495.8 MB, free: 4.656 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00477/0.1569, allocations: 2.972 MB / 498.7 MB, free: 1.629 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00356/0.1604, allocations: 1.779 MB / 0.4888 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004412/0.1649, allocations: 2.503 MB / 0.4912 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00168/0.1666, allocations: 384 kB / 0.4916 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00346/0.1701, allocations: 1.19 MB / 0.4928 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003195/0.1733, allocations: 2.298 MB / 0.495 GB, free: 9.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005057/0.1784, allocations: 2.811 MB / 0.4978 GB, free: 6.633 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2411/0.4195, allocations: 8.763 MB / 0.5063 GB, free: 16.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/0.4196, allocations: 2.219 kB / 0.5063 GB, free: 16.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4196, allocations: 0 / 0.5063 GB, free: 16.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003185/0.4199, allocations: 3.594 kB / 0.5063 GB, free: 16.1 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2075 * Number of variables: 2075 Notification: Performance of Generate backend data structure: time 0.01828/0.4382, allocations: 6.564 MB / 0.5127 GB, free: 13.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.4383, allocations: 8.781 kB / 0.5127 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01401/0.4523, allocations: 3.387 MB / 0.516 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007748/0.4601, allocations: 2.786 MB / 0.5188 GB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003006/0.4604, allocations: 280.4 kB / 0.519 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001886/0.4623, allocations: 361.7 kB / 0.5194 GB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02336/0.4857, allocations: 14.03 MB / 0.5331 GB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000169/0.4859, allocations: 59.25 kB / 0.5331 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009182/0.4868, allocations: 173.8 kB / 0.5333 GB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004495/0.4913, allocations: 3.136 MB / 0.5364 GB, free: 6.582 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02219/0.5136, allocations: 12.2 MB / 0.5483 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07445/0.5881, allocations: 51.79 MB / 0.5988 GB, free: 7.656 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01122/0.5993, allocations: 5.078 MB / 0.6038 GB, free: 2.355 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003004/0.6024, allocations: 1.808 MB / 0.6056 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01718/0.6196, allocations: 8.001 MB / 0.6134 GB, free: 8.285 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.06e-05/0.6197, allocations: 59.16 kB / 0.6134 GB, free: 8.223 MB / 462.1 MB Notification: Performance of pre-optimization done (n=242): time 6.362e-06/0.6197, allocations: 0 / 0.6134 GB, free: 8.223 MB / 462.1 MB Notification: Performance of matching and sorting (n=272): time 0.03462/0.6543, allocations: 14.43 MB / 0.6275 GB, free: 9.773 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.818e-05/0.6544, allocations: 154.5 kB / 0.6277 GB, free: 9.59 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009139/0.6636, allocations: 5.37 MB / 0.6329 GB, free: 4.227 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004581/0.6641, allocations: 64.83 kB / 0.633 GB, free: 4.16 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0031/0.6672, allocations: 4.1 MB / 0.637 GB, free: 72 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001287/0.6685, allocations: 1.031 MB / 0.638 GB, free: 15.04 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003285/0.6718, allocations: 1.644 MB / 0.6396 GB, free: 13.39 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.6719, allocations: 301.1 kB / 0.6399 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004388/0.6763, allocations: 2.546 MB / 0.6424 GB, free: 10.54 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00793/0.6843, allocations: 7.372 MB / 0.6496 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01283/0.6971, allocations: 10.75 MB / 0.6601 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001485/0.6973, allocations: 48 kB / 0.6601 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.01904/0.7164, allocations: 9.945 MB / 0.6698 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001818/0.7166, allocations: 80 kB / 0.6699 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000314/0.7169, allocations: 168 kB / 0.6701 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/0.7181, allocations: 464.7 kB / 0.6705 GB, free: 9.902 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006118/0.7242, allocations: 1.852 MB / 0.6723 GB, free: 8.047 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005976/0.7302, allocations: 5.286 MB / 0.6775 GB, free: 2.473 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005854/0.7361, allocations: 419.2 kB / 0.6779 GB, free: 2.066 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001306/0.7374, allocations: 496 kB / 0.6784 GB, free: 1.582 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 772 * Number of states: 0 () * Number of discrete variables: 36 (fixedRotation3D.color[3],fixedRotation3D.color[2],fixedRotation3D.color[1],body3D.sphereColor[3],body3D.sphereColor[2],body3D.sphereColor[1],prismatic3D.boxColor[3],prismatic3D.boxColor[2],prismatic3D.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1008): * Single equations (assignments): 998 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,17,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00537/0.7428, allocations: 2.848 MB / 0.6811 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001149/0.744, allocations: 461.9 kB / 0.6816 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005921/0.7499, allocations: 2.983 MB / 0.6845 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-05/0.75, allocations: 28 kB / 0.6845 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.699e-05/0.75, allocations: 4 kB / 0.6845 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-05/0.75, allocations: 11.95 kB / 0.6845 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01958/0.7696, allocations: 9.07 MB / 0.6934 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.459e-05/0.7697, allocations: 9.094 kB / 0.6934 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00175/0.7714, allocations: 383.5 kB / 0.6938 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007127/0.7722, allocations: 253.5 kB / 0.694 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002731/0.7724, allocations: 47.98 kB / 0.6941 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004433/0.7769, allocations: 4.364 MB / 0.6983 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.854e-06/0.7769, allocations: 11.94 kB / 0.6983 GB, free: 12.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008687/0.7856, allocations: 5.656 MB / 0.7038 GB, free: 6.891 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001515/0.7872, allocations: 0.5069 MB / 0.7043 GB, free: 6.359 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001142/0.7883, allocations: 48 kB / 0.7044 GB, free: 6.312 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002228/0.7906, allocations: 107.5 kB / 0.7045 GB, free: 6.211 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00041/0.791, allocations: 159 kB / 0.7046 GB, free: 6.059 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002208/0.7912, allocations: 83.94 kB / 0.7047 GB, free: 5.977 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006509/0.7978, allocations: 3.377 MB / 0.708 GB, free: 2.613 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.61e-07/0.7978, allocations: 4 kB / 0.708 GB, free: 2.609 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007286/0.8051, allocations: 1.265 MB / 0.7093 GB, free: 1.348 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel,prismatic3D.s,prismatic3D.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 (207): * Single equations (assignments): 199 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,15,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007282/0.8058, allocations: 188.9 kB / 0.7094 GB, free: 1.156 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2183/1.024, allocations: 6.193 MB / 0.7155 GB, free: 199.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/1.024, allocations: 1.5 kB / 0.7155 GB, free: 199.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003166/1.027, allocations: 1.805 MB / 0.7173 GB, free: 198.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004023/1.031, allocations: 0.6476 MB / 0.7179 GB, free: 198.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02216/1.054, allocations: 12.78 MB / 0.7304 GB, free: 192.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004575/1.058, allocations: 4.241 MB / 0.7345 GB, free: 191.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001485/1.06, allocations: 399.7 kB / 0.7349 GB, free: 191.4 MB / 0.545 GB Notification: Performance of SimCode: time 8.32e-07/1.06, allocations: 0 / 0.7349 GB, free: 191.4 MB / 0.545 GB Notification: Performance of Templates: time 0.1331/1.193, allocations: 132.6 MB / 0.8644 GB, free: 62.58 MB / 0.545 GB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.sim & ./PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1)