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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 174.9 kB / 15.77 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.468/2.468, allocations: 223.3 MB / 239.8 MB, free: 15.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.001579, allocations: 101.7 kB / 290.9 MB, free: 4.559 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.06772/0.06772, allocations: 8.956 MB / 351 MB, free: 4.164 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006823/0.0006823, allocations: 8 kB / 413.9 MB, free: 5.262 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4435/0.4442, allocations: 52.39 MB / 466.2 MB, free: 69.24 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.05848/0.5028, allocations: 42.65 MB / 0.497 GB, free: 26.47 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03639/0.5392, allocations: 9.923 MB / 0.5067 GB, free: 16.52 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01534/0.5547, allocations: 191.6 kB / 0.5068 GB, free: 16.33 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01116/0.5659, allocations: 2.15 MB / 0.5089 GB, free: 14.17 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03407/0.6001, allocations: 7.233 MB / 0.516 GB, free: 6.91 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005002/0.6051, allocations: 0.5071 MB / 0.5165 GB, free: 6.402 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01171/0.6169, allocations: 5.693 MB / 0.5221 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008501/0.6254, allocations: 3.025 MB / 0.525 GB, free: 13.61 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005817/0.6313, allocations: 1.576 MB / 0.5266 GB, free: 12.02 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007547/0.639, allocations: 2.472 MB / 0.529 GB, free: 9.543 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002092/0.6411, allocations: 204 kB / 0.5292 GB, free: 9.344 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005401/0.6466, allocations: 0.9205 MB / 0.5301 GB, free: 8.422 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005485/0.6521, allocations: 2.092 MB / 0.5321 GB, free: 6.324 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003838/0.656, allocations: 1.107 MB / 0.5332 GB, free: 5.207 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01655/0.6726, allocations: 6.524 MB / 0.5396 GB, free: 14.67 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.862e-05/0.6728, allocations: 4 kB / 0.5396 GB, free: 14.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.594e-06/0.6728, allocations: 0 / 0.5396 GB, free: 14.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006379/0.6735, allocations: 0 / 0.5396 GB, free: 14.66 MB / 378.7 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.02996/0.7034, allocations: 5.497 MB / 0.5449 GB, free: 9.094 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.343e-05/0.7035, allocations: 12.03 kB / 0.5449 GB, free: 9.082 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02499/0.7285, allocations: 3.486 MB / 0.5483 GB, free: 5.582 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01185/0.7405, allocations: 2.696 MB / 0.551 GB, free: 2.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005719/0.7411, allocations: 270.7 kB / 0.5512 GB, free: 2.555 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00282/0.7439, allocations: 359.7 kB / 0.5516 GB, free: 2.203 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.439/1.183, allocations: 14 MB / 0.5652 GB, free: 79.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002608/1.183, allocations: 57.09 kB / 0.5653 GB, free: 79.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001011/1.184, allocations: 176.5 kB / 0.5655 GB, free: 79.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005267/1.19, allocations: 3.146 MB / 0.5685 GB, free: 79.19 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02568/1.215, allocations: 12.15 MB / 0.5804 GB, free: 67.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08461/1.3, allocations: 52.05 MB / 0.6312 GB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02053/1.321, allocations: 5.066 MB / 0.6362 GB, free: 9.184 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005598/1.326, allocations: 1.799 MB / 0.6379 GB, free: 7.371 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03148/1.358, allocations: 8.012 MB / 0.6458 GB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000128/1.358, allocations: 59.86 kB / 0.6458 GB, free: 15.02 MB / 394.7 MB Notification: Performance of pre-optimization done (n=242): time 1.595e-05/1.358, allocations: 0 / 0.6458 GB, free: 15.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=272): time 0.07721/1.435, allocations: 14.41 MB / 0.6599 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001631/1.436, allocations: 154.5 kB / 0.66 GB, free: 364 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02264/1.458, allocations: 5.343 MB / 0.6653 GB, free: 11.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009392/1.459, allocations: 63.27 kB / 0.6653 GB, free: 10.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007762/1.467, allocations: 4.093 MB / 0.6693 GB, free: 6.859 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002888/1.47, allocations: 1.037 MB / 0.6703 GB, free: 5.828 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001672/1.472, allocations: 168 kB / 0.6705 GB, free: 5.664 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001799/1.474, allocations: 0.6573 MB / 0.6711 GB, free: 5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01064/1.484, allocations: 2.519 MB / 0.6736 GB, free: 2.473 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01514/1.5, allocations: 7.33 MB / 0.6808 GB, free: 8.746 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01494/1.515, allocations: 4.304 MB / 0.685 GB, free: 4.445 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004783/1.515, allocations: 48 kB / 0.685 GB, free: 4.398 MB / 426.7 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.03988/1.555, allocations: 9.856 MB / 0.6946 GB, free: 10.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006038/1.556, allocations: 80 kB / 0.6947 GB, free: 10.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000684/1.556, allocations: 168 kB / 0.6949 GB, free: 10.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00223/1.559, allocations: 494.9 kB / 0.6953 GB, free: 9.805 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01218/1.571, allocations: 1.856 MB / 0.6971 GB, free: 7.945 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/1.582, allocations: 4.87 MB / 0.7019 GB, free: 2.797 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01257/1.595, allocations: 427.4 kB / 0.7023 GB, free: 2.379 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002861/1.597, allocations: 496 kB / 0.7028 GB, free: 1.895 MB / 442.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 17,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01241/1.61, allocations: 2.844 MB / 0.7056 GB, free: 15.03 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003196/1.613, allocations: 466 kB / 0.706 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01327/1.626, allocations: 2.956 MB / 0.7089 GB, free: 11.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001184/1.627, allocations: 28 kB / 0.7089 GB, free: 11.57 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.92e-05/1.627, allocations: 7.938 kB / 0.7089 GB, free: 11.56 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.508e-05/1.627, allocations: 19.95 kB / 0.7089 GB, free: 11.54 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03448/1.661, allocations: 9.1 MB / 0.7178 GB, free: 2.266 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.075e-05/1.661, allocations: 8 kB / 0.7178 GB, free: 2.258 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001986/1.663, allocations: 383.4 kB / 0.7182 GB, free: 1.883 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008427/1.664, allocations: 245.8 kB / 0.7184 GB, free: 1.637 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002677/1.665, allocations: 51.98 kB / 0.7185 GB, free: 1.586 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4676/2.132, allocations: 4.029 MB / 0.7224 GB, free: 141.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.729e-05/2.132, allocations: 10.78 kB / 0.7224 GB, free: 141.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01832/2.151, allocations: 5.628 MB / 0.7279 GB, free: 139.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003443/2.154, allocations: 0.5308 MB / 0.7284 GB, free: 139.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002571/2.157, allocations: 41.92 kB / 0.7285 GB, free: 139.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005456/2.162, allocations: 121.1 kB / 0.7286 GB, free: 139.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008994/2.163, allocations: 156.9 kB / 0.7288 GB, free: 139.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005893/2.164, allocations: 81.05 kB / 0.7288 GB, free: 139.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01357/2.178, allocations: 3.351 MB / 0.7321 GB, free: 138 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.555e-06/2.178, allocations: 3.75 kB / 0.7321 GB, free: 138 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01511/2.193, allocations: 1.257 MB / 0.7333 GB, free: 137.9 MB / 458.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 15,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001549/2.194, allocations: 199 kB / 0.7335 GB, free: 137.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02035/2.215, allocations: 6.119 MB / 0.7395 GB, free: 135.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.478e-05/2.215, allocations: 0 / 0.7395 GB, free: 135.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004989/2.22, allocations: 1.799 MB / 0.7413 GB, free: 134.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01021/2.23, allocations: 0.6087 MB / 0.7419 GB, free: 134.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04741/2.278, allocations: 15.11 MB / 0.7566 GB, free: 124.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01225/2.29, allocations: 4.244 MB / 0.7608 GB, free: 121.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002665/2.293, allocations: 402 kB / 0.7611 GB, free: 120.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.703e-06/2.293, allocations: 0 / 0.7611 GB, free: 120.9 MB / 458.7 MB Notification: Performance of Templates: time 0.2954/2.588, allocations: 130 MB / 0.8881 GB, free: 8.125 MB / 474.7 MB 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)