Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") translateModel(PlanarMechanics.Examples.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009702/0.0009705, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001186/0.001186, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.601/1.601, allocations: 223.3 MB / 240 MB, free: 5.219 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2389/0.2389, allocations: 9.116 MB / 300.2 MB, free: 2.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000399/0.0003991, allocations: 12 kB / 363.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1302, allocations: 52.43 MB / 415.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.3662/0.4964, allocations: 24.84 MB / 440.4 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02165/0.5181, allocations: 5.894 MB / 446.3 MB, free: 26.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007923/0.5261, allocations: 107 kB / 446.4 MB, free: 26.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006004/0.5322, allocations: 1.193 MB / 447.6 MB, free: 25.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01719/0.5494, allocations: 4.272 MB / 451.9 MB, free: 24.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001988/0.5514, allocations: 156 kB / 452 MB, free: 24.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003492/0.5549, allocations: 2.855 MB / 454.9 MB, free: 22.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001196/0.5562, allocations: 0.863 MB / 455.7 MB, free: 22.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001088/0.5573, allocations: 0.8165 MB / 456.5 MB, free: 22.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001299/0.5586, allocations: 1.315 MB / 457.9 MB, free: 21.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002533/0.5588, allocations: 127.9 kB / 458 MB, free: 21.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001147/0.56, allocations: 0.6719 MB / 458.7 MB, free: 21.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008219/0.5608, allocations: 1.108 MB / 459.8 MB, free: 21.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000533/0.5614, allocations: 0.6422 MB / 460.4 MB, free: 20.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002868/0.5642, allocations: 3.719 MB / 464.1 MB, free: 20.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.5643, allocations: 0 / 464.1 MB, free: 20.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.5643, allocations: 0 / 464.1 MB, free: 20.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.063e-05/0.5644, allocations: 0 / 464.1 MB, free: 20.03 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.007072/0.5714, allocations: 3.326 MB / 467.4 MB, free: 18.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.5715, allocations: 9.281 kB / 467.5 MB, free: 18.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006544/0.578, allocations: 1.818 MB / 469.3 MB, free: 18.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003049/0.5811, allocations: 1.371 MB / 470.6 MB, free: 17.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.5813, allocations: 149.8 kB / 470.8 MB, free: 17.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004995/0.5818, allocations: 207.9 kB / 471 MB, free: 17.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01364/0.5954, allocations: 7.982 MB / 479 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.661e-05/0.5956, allocations: 25.16 kB / 479 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003185/0.5959, allocations: 93.45 kB / 479.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003277/0.5992, allocations: 1.854 MB / 480.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01721/0.6164, allocations: 7.141 MB / 488.1 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04029/0.6567, allocations: 24.44 MB / 0.5005 GB, free: 2.145 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005179/0.6619, allocations: 2.379 MB / 0.5028 GB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001305/0.6633, allocations: 0.8255 MB / 0.5036 GB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007495/0.6708, allocations: 4.641 MB / 0.5082 GB, free: 9.805 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/0.6709, allocations: 43.56 kB / 0.5082 GB, free: 9.754 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.256e-06/0.6709, allocations: 4 kB / 0.5082 GB, free: 9.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01577/0.6866, allocations: 6.859 MB / 0.5149 GB, free: 2.801 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.2e-05/0.6868, allocations: 64.72 kB / 0.515 GB, free: 2.727 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005604/0.6924, allocations: 2.648 MB / 0.5176 GB, free: 52 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003165/0.6927, allocations: 45.7 kB / 0.5176 GB, free: 0 / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00176/0.6945, allocations: 2.105 MB / 0.5197 GB, free: 13.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008432/0.6954, allocations: 0.5706 MB / 0.5202 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/0.6956, allocations: 79.98 kB / 0.5203 GB, free: 13.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002819/0.6959, allocations: 478.6 kB / 0.5208 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002247/0.6981, allocations: 1.276 MB / 0.522 GB, free: 11.45 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004065/0.7022, allocations: 3.42 MB / 0.5253 GB, free: 6.969 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003492/0.7057, allocations: 2.1 MB / 0.5274 GB, free: 4.867 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.095e-05/0.7058, allocations: 20 kB / 0.5274 GB, free: 4.848 MB / 398.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.009612/0.7154, allocations: 4.878 MB / 0.5322 GB, free: 15.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.992e-05/0.7155, allocations: 44 kB / 0.5322 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.711e-05/0.7156, allocations: 72 kB / 0.5323 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007162/0.7163, allocations: 312.7 kB / 0.5326 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002781/0.7191, allocations: 0.8659 MB / 0.5334 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00426/0.7234, allocations: 3.346 MB / 0.5367 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002689/0.7261, allocations: 208 kB / 0.5369 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004356/0.7266, allocations: 227.9 kB / 0.5371 GB, free: 10.77 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 (472): * Single equations (assignments): 467 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002723/0.7293, allocations: 1.566 MB / 0.5386 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003634/0.7297, allocations: 225.1 kB / 0.5389 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003374/0.7331, allocations: 2.014 MB / 0.5408 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/0.7332, allocations: 27.98 kB / 0.5409 GB, free: 6.906 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.467e-06/0.7332, allocations: 4 kB / 0.5409 GB, free: 6.902 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/0.7332, allocations: 7.969 kB / 0.5409 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01019/0.7434, allocations: 5.714 MB / 0.5464 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.739e-06/0.7435, allocations: 4 kB / 0.5464 GB, free: 1.062 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008321/0.7443, allocations: 203.7 kB / 0.5466 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005433/0.7449, allocations: 212.8 kB / 0.5468 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.891e-05/0.745, allocations: 28 kB / 0.5469 GB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003252/0.7482, allocations: 2.715 MB / 0.5495 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.7483, allocations: 4 kB / 0.5495 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004875/0.7531, allocations: 3.091 MB / 0.5525 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.7545, allocations: 466 kB / 0.553 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002793/0.7548, allocations: 24 kB / 0.553 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007884/0.7555, allocations: 71.91 kB / 0.5531 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.7557, allocations: 88.78 kB / 0.5532 GB, free: 9.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.664e-05/0.7558, allocations: 47.98 kB / 0.5532 GB, free: 9.934 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002681/0.7585, allocations: 1.701 MB / 0.5549 GB, free: 8.219 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.7585, allocations: 0 / 0.5549 GB, free: 8.219 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003172/0.7617, allocations: 0.6836 MB / 0.5555 GB, free: 7.535 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.w) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000362/0.7621, allocations: 169.7 kB / 0.5557 GB, free: 7.359 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005176/0.7673, allocations: 3.143 MB / 0.5588 GB, free: 4.219 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.7673, allocations: 0 / 0.5588 GB, free: 4.219 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.7688, allocations: 1.029 MB / 0.5598 GB, free: 3.184 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002092/0.7709, allocations: 383.3 kB / 0.5601 GB, free: 2.812 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01307/0.784, allocations: 7.901 MB / 0.5679 GB, free: 10.85 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002937/0.787, allocations: 2.588 MB / 0.5704 GB, free: 8.227 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003067/0.7901, allocations: 1.185 MB / 0.5715 GB, free: 7.035 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004537/0.7906, allocations: 171.4 kB / 0.5717 GB, free: 6.867 MB / 446.1 MB Notification: Performance of SimCode: time 1.473e-06/0.7906, allocations: 0 / 0.5717 GB, free: 6.867 MB / 446.1 MB Notification: Performance of Templates: time 0.2398/1.03, allocations: 24.12 MB / 0.5953 GB, free: 121.3 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)