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-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.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.00763/0.00763, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001323/0.001323, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2141/0.2141, allocations: 9.127 MB / 299.7 MB, free: 1.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 55.91 kB / 414.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3094, allocations: 51.44 MB / 466.1 MB, free: 18.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01347/0.323, allocations: 14.38 MB / 480.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009568/0.3326, allocations: 4.644 MB / 485.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002822/0.3354, allocations: 75.44 kB / 485.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003264/0.3387, allocations: 1.602 MB / 486.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00626/0.345, allocations: 2.573 MB / 489.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.3464, allocations: 0.5788 MB / 489.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008211/0.3546, allocations: 5.182 MB / 495.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003896/0.3585, allocations: 2.959 MB / 498.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002914/0.3614, allocations: 1.779 MB / 499.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003556/0.365, allocations: 2.507 MB / 0.4906 GB, free: 7.746 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001118/0.3661, allocations: 380 kB / 0.4909 GB, free: 7.375 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002941/0.3691, allocations: 1.186 MB / 0.4921 GB, free: 6.188 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002153/0.3713, allocations: 2.298 MB / 0.4943 GB, free: 3.883 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00312/0.3744, allocations: 2.811 MB / 0.4971 GB, free: 1.055 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01186/0.3863, allocations: 8.775 MB / 0.5057 GB, free: 8.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.258e-06/0.3863, allocations: 0 / 0.5057 GB, free: 8.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.3863, allocations: 3.938 kB / 0.5057 GB, free: 8.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003676/0.3867, allocations: 0 / 0.5057 GB, free: 8.246 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.0175/0.4042, allocations: 6.558 MB / 0.5121 GB, free: 1.609 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.4043, allocations: 12.03 kB / 0.5121 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01243/0.4167, allocations: 3.39 MB / 0.5154 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005492/0.4223, allocations: 2.798 MB / 0.5181 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002235/0.4225, allocations: 270.7 kB / 0.5184 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008873/0.4234, allocations: 367.6 kB / 0.5187 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0236/0.447, allocations: 14.02 MB / 0.5324 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002253/0.4473, allocations: 63.36 kB / 0.5325 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001374/0.4487, allocations: 175.8 kB / 0.5326 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005442/0.4541, allocations: 3.132 MB / 0.5357 GB, free: 8.438 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02504/0.4792, allocations: 12.2 MB / 0.5476 GB, free: 12.22 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3578/0.837, allocations: 51.79 MB / 0.5982 GB, free: 74.44 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01502/0.8521, allocations: 5.068 MB / 0.6031 GB, free: 73.29 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003179/0.8553, allocations: 1.803 MB / 0.6049 GB, free: 73.24 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01447/0.8698, allocations: 8.012 MB / 0.6127 GB, free: 69.95 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/0.8699, allocations: 55.47 kB / 0.6128 GB, free: 69.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=242): time 5.881e-06/0.8699, allocations: 0 / 0.6128 GB, free: 69.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=272): time 0.03251/0.9024, allocations: 14.43 MB / 0.6269 GB, free: 63.34 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.9025, allocations: 161.8 kB / 0.627 GB, free: 63.18 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007299/0.9098, allocations: 5.369 MB / 0.6323 GB, free: 61.26 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005015/0.9104, allocations: 62.27 kB / 0.6323 GB, free: 61.21 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002389/0.9128, allocations: 4.097 MB / 0.6363 GB, free: 58.04 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001312/0.9141, allocations: 1.031 MB / 0.6373 GB, free: 57.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002185/0.9163, allocations: 1.646 MB / 0.6389 GB, free: 56.38 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.476e-05/0.9164, allocations: 303.2 kB / 0.6392 GB, free: 56.09 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003675/0.9201, allocations: 2.541 MB / 0.6417 GB, free: 54.88 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006212/0.9263, allocations: 7.367 MB / 0.6489 GB, free: 47.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/0.9368, allocations: 10.76 MB / 0.6594 GB, free: 36.18 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002129/0.937, allocations: 55.94 kB / 0.6595 GB, free: 36.13 MB / 462.1 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.01773/0.9548, allocations: 9.929 MB / 0.6692 GB, free: 26.19 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002515/0.9551, allocations: 83.94 kB / 0.6692 GB, free: 26.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003435/0.9554, allocations: 172.2 kB / 0.6694 GB, free: 25.94 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001313/0.9568, allocations: 464.2 kB / 0.6699 GB, free: 25.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006351/0.9631, allocations: 1.852 MB / 0.6717 GB, free: 23.63 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004973/0.9681, allocations: 5.29 MB / 0.6768 GB, free: 18.06 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007424/0.9756, allocations: 423.5 kB / 0.6772 GB, free: 17.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002029/0.9777, allocations: 499.3 kB / 0.6777 GB, free: 17.16 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.006572/0.9843, allocations: 2.848 MB / 0.6805 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001705/0.986, allocations: 465.9 kB / 0.6809 GB, free: 13.84 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006771/0.9928, allocations: 2.975 MB / 0.6838 GB, free: 10.85 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.888e-05/0.9929, allocations: 28 kB / 0.6839 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.487e-05/0.993, allocations: 6.438 kB / 0.6839 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.921e-05/0.993, allocations: 15.95 kB / 0.6839 GB, free: 10.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02046/1.013, allocations: 9.063 MB / 0.6927 GB, free: 1.617 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.981e-05/1.014, allocations: 12.06 kB / 0.6927 GB, free: 1.605 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001744/1.015, allocations: 383.4 kB / 0.6931 GB, free: 1.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006635/1.016, allocations: 241.4 kB / 0.6933 GB, free: 0.9883 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003364/1.016, allocations: 51.98 kB / 0.6934 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004527/1.021, allocations: 4.373 MB / 0.6977 GB, free: 12.29 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-05/1.021, allocations: 11.94 kB / 0.6977 GB, free: 12.28 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/1.031, allocations: 5.651 MB / 0.7032 GB, free: 6.473 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002052/1.033, allocations: 0.5069 MB / 0.7037 GB, free: 5.941 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001691/1.035, allocations: 52 kB / 0.7037 GB, free: 5.891 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002617/1.038, allocations: 107.4 kB / 0.7038 GB, free: 5.789 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004498/1.038, allocations: 161.6 kB / 0.704 GB, free: 5.633 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002271/1.038, allocations: 80 kB / 0.7041 GB, free: 5.555 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.008132/1.046, allocations: 3.377 MB / 0.7074 GB, free: 2.191 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.01e-07/1.047, allocations: 0 / 0.7074 GB, free: 2.191 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009897/1.056, allocations: 1.256 MB / 0.7086 GB, free: 0.9414 MB / 478.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.001067/1.058, allocations: 196.7 kB / 0.7088 GB, free: 0.7461 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01332/1.071, allocations: 6.204 MB / 0.7148 GB, free: 10.55 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-05/1.071, allocations: 1.812 kB / 0.7148 GB, free: 10.55 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003402/1.074, allocations: 1.803 MB / 0.7166 GB, free: 8.734 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006676/1.081, allocations: 0.6365 MB / 0.7172 GB, free: 8.109 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02802/1.109, allocations: 12.15 MB / 0.7291 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008048/1.117, allocations: 4.231 MB / 0.7332 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008023/1.125, allocations: 2.709 MB / 0.7359 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001541/1.127, allocations: 327.4 kB / 0.7362 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of SimCode: time 1.192e-06/1.127, allocations: 3.938 kB / 0.7362 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of Templates: time 0.0893/1.216, allocations: 40.7 MB / 0.7759 GB, free: 12.17 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)