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/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.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.001112/0.001112, allocations: 101.5 kB / 16.41 MB, free: 6.461 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.001101/0.001101, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.265/1.265, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0431/0.0431, allocations: 9.125 MB / 300.3 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 63.91 kB / 415.3 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08457/0.08577, allocations: 51.44 MB / 466.7 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.009063/0.09487, allocations: 8.641 MB / 475.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004979/0.09989, allocations: 2.604 MB / 478 MB, free: 6.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001154/0.1011, allocations: 39.88 kB / 478 MB, free: 6.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.1022, allocations: 357.6 kB / 478.4 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003468/0.1057, allocations: 1.4 MB / 479.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005064/0.1062, allocations: 155.7 kB / 479.9 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003148/0.1094, allocations: 2.518 MB / 482.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001323/0.1107, allocations: 0.9386 MB / 483.4 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001312/0.112, allocations: 0.9066 MB / 484.3 MB, free: 24 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00178/0.1138, allocations: 1.315 MB / 485.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005081/0.1144, allocations: 232 kB / 485.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001545/0.1159, allocations: 0.8387 MB / 486.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.117, allocations: 1.215 MB / 487.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001447/0.1185, allocations: 1.565 MB / 489.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005149/0.1236, allocations: 4.99 MB / 494.4 MB, free: 5.836 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.1237, allocations: 4 kB / 494.4 MB, free: 5.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1237, allocations: 0 / 494.4 MB, free: 5.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001164/0.1238, allocations: 0 / 494.4 MB, free: 5.832 MB / 366.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.008692/0.1325, allocations: 3.877 MB / 498.3 MB, free: 1.891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.1326, allocations: 8.031 kB / 498.3 MB, free: 1.883 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006684/0.1393, allocations: 1.763 MB / 0.4884 GB, free: 116 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002616/0.1419, allocations: 1.355 MB / 0.4897 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000148/0.1421, allocations: 160 kB / 0.4899 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005775/0.1427, allocations: 203.9 kB / 0.49 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01201/0.1547, allocations: 7.959 MB / 0.4978 GB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.295e-05/0.1548, allocations: 19.81 kB / 0.4978 GB, free: 6.023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003106/0.1551, allocations: 95.88 kB / 0.4979 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002882/0.158, allocations: 1.852 MB / 0.4997 GB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1935/0.3515, allocations: 7.156 MB / 0.5067 GB, free: 39.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03179/0.3833, allocations: 24.07 MB / 0.5302 GB, free: 23.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004591/0.388, allocations: 2.37 MB / 0.5325 GB, free: 22.26 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001046/0.389, allocations: 0.8277 MB / 0.5334 GB, free: 21.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005638/0.3947, allocations: 4.74 MB / 0.538 GB, free: 18.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.3947, allocations: 43.41 kB / 0.538 GB, free: 18.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 3.426e-06/0.3948, allocations: 0 / 0.538 GB, free: 18.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01233/0.4071, allocations: 7.007 MB / 0.5449 GB, free: 13.35 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.4072, allocations: 64.72 kB / 0.5449 GB, free: 13.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002717/0.4099, allocations: 2.609 MB / 0.5475 GB, free: 10.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.365e-05/0.41, allocations: 49.69 kB / 0.5475 GB, free: 10.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000745/0.4108, allocations: 2.084 MB / 0.5496 GB, free: 8.492 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003063/0.4111, allocations: 0.5619 MB / 0.5501 GB, free: 7.934 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007634/0.4118, allocations: 0.7819 MB / 0.5509 GB, free: 7.141 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.182e-05/0.4119, allocations: 309.1 kB / 0.5512 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001672/0.4136, allocations: 1.307 MB / 0.5524 GB, free: 5.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002391/0.416, allocations: 3.447 MB / 0.5558 GB, free: 1.031 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005956/0.4219, allocations: 5.089 MB / 0.5608 GB, free: 10.91 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.232e-05/0.422, allocations: 20 kB / 0.5608 GB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.007987/0.43, allocations: 4.798 MB / 0.5655 GB, free: 6.086 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.457e-05/0.4301, allocations: 40 kB / 0.5655 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.402e-05/0.4302, allocations: 76.12 kB / 0.5656 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004202/0.4306, allocations: 196.7 kB / 0.5658 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002819/0.4335, allocations: 0.8929 MB / 0.5667 GB, free: 4.883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00233/0.4358, allocations: 2.371 MB / 0.569 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002743/0.4386, allocations: 219.8 kB / 0.5692 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005532/0.4392, allocations: 231.3 kB / 0.5694 GB, free: 1.914 MB / 398.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.002839/0.442, allocations: 1.557 MB / 0.5709 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005063/0.4425, allocations: 221.2 kB / 0.5711 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003732/0.4463, allocations: 1.954 MB / 0.573 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001102/0.4464, allocations: 27.98 kB / 0.5731 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.4464, allocations: 4 kB / 0.5731 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.669e-05/0.4465, allocations: 13.28 kB / 0.5731 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/0.457, allocations: 5.563 MB / 0.5785 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.457, allocations: 0 / 0.5785 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.4581, allocations: 236.2 kB / 0.5787 GB, free: 8.227 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002808/0.4584, allocations: 92.62 kB / 0.5788 GB, free: 8.137 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/0.4585, allocations: 28 kB / 0.5789 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001841/0.4603, allocations: 2.114 MB / 0.5809 GB, free: 5.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.4603, allocations: 8.031 kB / 0.5809 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004671/0.465, allocations: 3.025 MB / 0.5839 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007085/0.4658, allocations: 298.3 kB / 0.5842 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004835/0.4663, allocations: 31.66 kB / 0.5842 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/0.4674, allocations: 71.91 kB / 0.5843 GB, free: 2.355 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/0.4676, allocations: 84.83 kB / 0.5843 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.718e-05/0.4677, allocations: 40 kB / 0.5844 GB, free: 2.234 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002799/0.4705, allocations: 1.687 MB / 0.586 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4705, allocations: 4 kB / 0.586 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003192/0.4737, allocations: 0.6576 MB / 0.5867 GB, free: 15.87 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.0004583/0.4742, allocations: 162.4 kB / 0.5868 GB, free: 15.71 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005475/0.4797, allocations: 3.125 MB / 0.5899 GB, free: 12.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.4797, allocations: 0 / 0.5899 GB, free: 12.59 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001533/0.4812, allocations: 0.9923 MB / 0.5909 GB, free: 11.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002527/0.4838, allocations: 389.8 kB / 0.5912 GB, free: 11.22 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.4965, allocations: 6.696 MB / 0.5978 GB, free: 4.496 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003429/0.5, allocations: 2.57 MB / 0.6003 GB, free: 1.895 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007766/0.5008, allocations: 207.4 kB / 0.6005 GB, free: 1.691 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5008, allocations: 0 / 0.6005 GB, free: 1.691 MB / 430.1 MB Notification: Performance of Templates: time 0.0762/0.577, allocations: 56.72 MB / 0.6559 GB, free: 9.078 MB / 494.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)