Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") translateModel(PlanarMechanics.Examples.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001292/0.001292, allocations: 193 kB / 16.13 MB, free: 6.648 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.527/1.527, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2163/0.2163, allocations: 9.125 MB / 299.1 MB, free: 1.93 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 63.91 kB / 361.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1397, allocations: 51.45 MB / 412.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.2691/0.4088, allocations: 27.33 MB / 440 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01425/0.4231, allocations: 6.106 MB / 446.2 MB, free: 25.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007355/0.4305, allocations: 101.2 kB / 446.3 MB, free: 25.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001304/0.4318, allocations: 308.9 kB / 446.6 MB, free: 24.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003635/0.4355, allocations: 1.309 MB / 447.9 MB, free: 24.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004389/0.4359, allocations: 132.8 kB / 448 MB, free: 24.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003433/0.4394, allocations: 3.487 MB / 451.5 MB, free: 23.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001157/0.4406, allocations: 0.8579 MB / 452.3 MB, free: 22.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008581/0.4414, allocations: 0.7641 MB / 453.1 MB, free: 22.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001269/0.4427, allocations: 1.322 MB / 454.4 MB, free: 22.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002501/0.443, allocations: 135.5 kB / 454.6 MB, free: 22.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001333/0.4443, allocations: 0.7903 MB / 455.3 MB, free: 21.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008951/0.4452, allocations: 1.129 MB / 456.5 MB, free: 21.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.4463, allocations: 1.48 MB / 458 MB, free: 20.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003933/0.4503, allocations: 4.605 MB / 462.6 MB, free: 18.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.919e-06/0.4503, allocations: 0 / 462.6 MB, free: 18.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4503, allocations: 0 / 462.6 MB, free: 18.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001548/0.4505, allocations: 0 / 462.6 MB, free: 18.59 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.009232/0.4597, allocations: 3.876 MB / 466.4 MB, free: 16.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.4598, allocations: 13.47 kB / 466.5 MB, free: 16.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006044/0.4658, allocations: 1.758 MB / 468.2 MB, free: 16.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002849/0.4687, allocations: 1.361 MB / 469.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001402/0.4689, allocations: 148.7 kB / 469.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004285/0.4693, allocations: 197.5 kB / 469.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01424/0.4836, allocations: 7.97 MB / 477.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.367e-05/0.4837, allocations: 26.28 kB / 477.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002824/0.484, allocations: 89.45 kB / 478 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003117/0.4871, allocations: 1.847 MB / 479.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0167/0.5038, allocations: 7.163 MB / 487 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0401/0.544, allocations: 24.16 MB / 0.4992 GB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005726/0.5497, allocations: 2.37 MB / 0.5015 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.5513, allocations: 0.832 MB / 0.5023 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008637/0.56, allocations: 4.734 MB / 0.5069 GB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.246e-05/0.5601, allocations: 47.5 kB / 0.507 GB, free: 9.211 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.817e-06/0.5601, allocations: 0 / 0.507 GB, free: 9.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01642/0.5765, allocations: 7.009 MB / 0.5138 GB, free: 2.125 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.5766, allocations: 64.72 kB / 0.5139 GB, free: 2.047 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005179/0.5818, allocations: 2.609 MB / 0.5164 GB, free: 15.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000164/0.582, allocations: 45.7 kB / 0.5165 GB, free: 15.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001693/0.5837, allocations: 2.085 MB / 0.5185 GB, free: 13.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006455/0.5844, allocations: 0.5667 MB / 0.5191 GB, free: 12.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001521/0.5859, allocations: 0.7858 MB / 0.5198 GB, free: 11.87 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.586, allocations: 301.1 kB / 0.5201 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002499/0.5885, allocations: 1.308 MB / 0.5214 GB, free: 10.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004706/0.5932, allocations: 3.437 MB / 0.5248 GB, free: 5.766 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007077/0.6003, allocations: 5.089 MB / 0.5297 GB, free: 15.64 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.929e-05/0.6004, allocations: 20 kB / 0.5297 GB, free: 15.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.009981/0.6104, allocations: 4.8 MB / 0.5344 GB, free: 10.81 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.307e-05/0.6105, allocations: 36 kB / 0.5345 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001515/0.6107, allocations: 72.28 kB / 0.5345 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004813/0.6112, allocations: 196.7 kB / 0.5347 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003201/0.6144, allocations: 0.8971 MB / 0.5356 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003481/0.6179, allocations: 2.195 MB / 0.5377 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003986/0.6219, allocations: 203.8 kB / 0.5379 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006249/0.6226, allocations: 231.9 kB / 0.5382 GB, free: 6.836 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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 (478): * Single equations (assignments): 473 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003351/0.6259, allocations: 1.566 MB / 0.5397 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005708/0.6265, allocations: 217.2 kB / 0.5399 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004019/0.6305, allocations: 1.955 MB / 0.5418 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001313/0.6307, allocations: 27.98 kB / 0.5418 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/0.6307, allocations: 4 kB / 0.5418 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.6307, allocations: 3.984 kB / 0.5418 GB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01339/0.6441, allocations: 5.605 MB / 0.5473 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/0.6442, allocations: 4.703 kB / 0.5473 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.6453, allocations: 243.6 kB / 0.5476 GB, free: 13.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002839/0.6456, allocations: 84.73 kB / 0.5476 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001177/0.6457, allocations: 27.98 kB / 0.5477 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001996/0.6477, allocations: 1.931 MB / 0.5495 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.6477, allocations: 7.938 kB / 0.5496 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004976/0.6527, allocations: 3.024 MB / 0.5525 GB, free: 7.789 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009481/0.6537, allocations: 298.3 kB / 0.5528 GB, free: 7.477 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006357/0.6543, allocations: 28.06 kB / 0.5528 GB, free: 7.449 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.6556, allocations: 75.91 kB / 0.5529 GB, free: 7.375 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/0.6558, allocations: 88.83 kB / 0.553 GB, free: 7.285 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000195/0.656, allocations: 44.17 kB / 0.553 GB, free: 7.242 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004028/0.6601, allocations: 1.68 MB / 0.5547 GB, free: 5.547 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6601, allocations: 3.938 kB / 0.5547 GB, free: 5.543 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004202/0.6643, allocations: 0.664 MB / 0.5553 GB, free: 4.879 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.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 (124): * Single equations (assignments): 119 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005036/0.6648, allocations: 163 kB / 0.5555 GB, free: 4.711 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006451/0.6713, allocations: 3.114 MB / 0.5585 GB, free: 1.609 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.6713, allocations: 3.938 kB / 0.5585 GB, free: 1.605 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001717/0.673, allocations: 0.9849 MB / 0.5595 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002765/0.6758, allocations: 352.9 kB / 0.5598 GB, free: 268 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/0.6914, allocations: 7.935 MB / 0.5676 GB, free: 8.285 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004352/0.6958, allocations: 2.563 MB / 0.5701 GB, free: 5.691 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003676/0.6995, allocations: 1.204 MB / 0.5712 GB, free: 4.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007128/0.7002, allocations: 175.4 kB / 0.5714 GB, free: 4.312 MB / 446.1 MB Notification: Performance of SimCode: time 3.336e-06/0.7003, allocations: 0 / 0.5714 GB, free: 4.312 MB / 446.1 MB Notification: Performance of Templates: time 0.2617/0.962, allocations: 23.52 MB / 0.5944 GB, free: 122 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)