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.001077/0.001077, allocations: 104.5 kB / 15.98 MB, free: 6.352 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.00099/0.00099, allocations: 193 kB / 16.91 MB, free: 6.188 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.252/1.252, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04128/0.04128, allocations: 9.115 MB / 299.8 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 63.89 kB / 362.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.2188, allocations: 51.43 MB / 413.5 MB, free: 25.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.03464/0.2535, allocations: 47.06 MB / 460.6 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02435/0.2779, allocations: 10.35 MB / 470.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01063/0.2885, allocations: 191.6 kB / 471.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004273/0.2928, allocations: 1.495 MB / 472.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006949/0.2999, allocations: 2.394 MB / 475 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001755/0.3017, allocations: 0.5344 MB / 475.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009723/0.3114, allocations: 5.233 MB / 480.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007354/0.3188, allocations: 3.1 MB / 483.9 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004758/0.3236, allocations: 1.794 MB / 485.7 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005981/0.3296, allocations: 2.76 MB / 488.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002194/0.3319, allocations: 384 kB / 488.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004483/0.3364, allocations: 1.209 MB / 490 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004733/0.3412, allocations: 2.326 MB / 492.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00692/0.3481, allocations: 2.846 MB / 495.2 MB, free: 7.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.3591, allocations: 6.838 MB / 0.4902 GB, free: 336 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3591, allocations: 0 / 0.4902 GB, free: 336 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3591, allocations: 0 / 0.4902 GB, free: 336 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003654/0.3595, allocations: 0 / 0.4902 GB, free: 336 kB / 366.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.01834/0.3779, allocations: 6.562 MB / 0.4966 GB, free: 9.691 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.3779, allocations: 8.031 kB / 0.4967 GB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01192/0.3899, allocations: 3.389 MB / 0.5 GB, free: 6.281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006153/0.3961, allocations: 2.751 MB / 0.5027 GB, free: 3.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002414/0.3963, allocations: 274.7 kB / 0.5029 GB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001331/0.3977, allocations: 363.7 kB / 0.5033 GB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2151/0.6128, allocations: 14.01 MB / 0.5169 GB, free: 83.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001663/0.613, allocations: 63.41 kB / 0.517 GB, free: 83.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006652/0.6137, allocations: 175 kB / 0.5172 GB, free: 83.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003897/0.6176, allocations: 3.139 MB / 0.5202 GB, free: 82.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01989/0.6375, allocations: 12.21 MB / 0.5322 GB, free: 71.01 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05563/0.6932, allocations: 52.07 MB / 0.583 GB, free: 18.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009578/0.7028, allocations: 5.065 MB / 0.588 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002354/0.7052, allocations: 1.803 MB / 0.5897 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0118/0.717, allocations: 8.016 MB / 0.5975 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.7171, allocations: 55.88 kB / 0.5976 GB, free: 2.555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 6.562e-06/0.7171, allocations: 0 / 0.5976 GB, free: 2.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=272): time 0.03018/0.7473, allocations: 14.43 MB / 0.6117 GB, free: 4.047 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.001e-05/0.7475, allocations: 150.5 kB / 0.6118 GB, free: 3.871 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0077/0.7552, allocations: 5.378 MB / 0.6171 GB, free: 14.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004324/0.7556, allocations: 65.69 kB / 0.6171 GB, free: 14.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002674/0.7583, allocations: 4.084 MB / 0.6211 GB, free: 10.28 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001399/0.7597, allocations: 1.041 MB / 0.6222 GB, free: 9.227 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002342/0.7621, allocations: 1.638 MB / 0.6238 GB, free: 7.574 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.745e-05/0.7622, allocations: 305.1 kB / 0.624 GB, free: 7.273 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004004/0.7662, allocations: 2.55 MB / 0.6265 GB, free: 4.715 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007364/0.7736, allocations: 7.361 MB / 0.6337 GB, free: 10.96 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01191/0.7856, allocations: 10.76 MB / 0.6442 GB, free: 13.83 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001421/0.7857, allocations: 48 kB / 0.6443 GB, free: 13.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.01888/0.8046, allocations: 9.926 MB / 0.654 GB, free: 3.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001205/0.8048, allocations: 80.03 kB / 0.654 GB, free: 3.762 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002331/0.805, allocations: 168 kB / 0.6542 GB, free: 3.598 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009923/0.806, allocations: 476 kB / 0.6547 GB, free: 3.129 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005971/0.812, allocations: 1.856 MB / 0.6565 GB, free: 1.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005536/0.8176, allocations: 5.302 MB / 0.6616 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006059/0.8237, allocations: 415.4 kB / 0.662 GB, free: 11.28 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001348/0.8251, allocations: 492 kB / 0.6625 GB, free: 10.8 MB / 462.1 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 (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.005236/0.8303, allocations: 2.856 MB / 0.6653 GB, free: 7.926 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009649/0.8313, allocations: 461.9 kB / 0.6657 GB, free: 7.469 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004791/0.8361, allocations: 2.967 MB / 0.6686 GB, free: 4.48 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.281e-05/0.8362, allocations: 35.98 kB / 0.6687 GB, free: 4.445 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.8362, allocations: 7.938 kB / 0.6687 GB, free: 4.438 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/0.8362, allocations: 7.969 kB / 0.6687 GB, free: 4.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2263/1.063, allocations: 9.111 MB / 0.6776 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/1.063, allocations: 15.19 kB / 0.6776 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001504/1.064, allocations: 378.8 kB / 0.678 GB, free: 145.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000612/1.065, allocations: 241.6 kB / 0.6782 GB, free: 145.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001479/1.065, allocations: 47.62 kB / 0.6782 GB, free: 145.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003679/1.069, allocations: 4.379 MB / 0.6825 GB, free: 142 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.288e-06/1.069, allocations: 12.84 kB / 0.6825 GB, free: 142 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007581/1.076, allocations: 5.659 MB / 0.6881 GB, free: 139.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/1.078, allocations: 0.5068 MB / 0.6885 GB, free: 139.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006449/1.078, allocations: 42.44 kB / 0.6886 GB, free: 139.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/1.08, allocations: 111.1 kB / 0.6887 GB, free: 139.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/1.08, allocations: 162.1 kB / 0.6888 GB, free: 139.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/1.08, allocations: 85.3 kB / 0.6889 GB, free: 139.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00481/1.085, allocations: 3.375 MB / 0.6922 GB, free: 138.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.21e-07/1.085, allocations: 3.031 kB / 0.6922 GB, free: 138.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005959/1.091, allocations: 1.26 MB / 0.6935 GB, free: 138.2 MB / 462.1 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 (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.0004984/1.092, allocations: 199.1 kB / 0.6937 GB, free: 138 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01258/1.104, allocations: 8.721 MB / 0.7022 GB, free: 134.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/1.104, allocations: 0 / 0.7022 GB, free: 134.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002168/1.106, allocations: 1.793 MB / 0.7039 GB, free: 133.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003869/1.11, allocations: 0.6503 MB / 0.7046 GB, free: 132.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01989/1.13, allocations: 15.6 MB / 0.7198 GB, free: 118.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003854/1.134, allocations: 4.245 MB / 0.7239 GB, free: 115 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001346/1.136, allocations: 398.9 kB / 0.7243 GB, free: 114.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.302e-06/1.136, allocations: 0 / 0.7243 GB, free: 114.7 MB / 462.1 MB Notification: Performance of Templates: time 0.3253/1.461, allocations: 130.9 MB / 0.8521 GB, free: 151.5 MB / 478.1 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)