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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.002252/0.002251, allocations: 175.6 kB / 15.78 MB, free: 6.348 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.407/2.407, allocations: 223.2 MB / 239.8 MB, free: 15.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 100.4 kB / 290.9 MB, free: 4.566 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.06393/0.06393, allocations: 8.948 MB / 351 MB, free: 4.148 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006835/0.0006839, allocations: 12 kB / 413.9 MB, free: 5.246 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4623/0.463, allocations: 52.39 MB / 466.2 MB, free: 69.24 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.02755/0.4906, allocations: 24.87 MB / 491.1 MB, free: 44.3 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01935/0.51, allocations: 5.895 MB / 497 MB, free: 38.39 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007739/0.5178, allocations: 99.81 kB / 497.1 MB, free: 38.29 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005727/0.5236, allocations: 1.201 MB / 498.3 MB, free: 37.09 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01778/0.5414, allocations: 4.276 MB / 0.4908 GB, free: 32.79 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002885/0.5443, allocations: 147.8 kB / 0.4909 GB, free: 32.65 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006029/0.5504, allocations: 2.854 MB / 0.4937 GB, free: 29.79 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002264/0.5527, allocations: 0.8644 MB / 0.4946 GB, free: 28.9 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002116/0.5549, allocations: 0.8208 MB / 0.4954 GB, free: 28.07 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002637/0.5575, allocations: 1.304 MB / 0.4966 GB, free: 26.77 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006482/0.5582, allocations: 132 kB / 0.4968 GB, free: 26.64 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002202/0.5604, allocations: 0.6787 MB / 0.4974 GB, free: 25.96 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001579/0.562, allocations: 1.106 MB / 0.4985 GB, free: 24.85 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001121/0.5632, allocations: 0.6404 MB / 0.4991 GB, free: 24.2 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005471/0.5687, allocations: 3.722 MB / 0.5028 GB, free: 20.47 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.279e-05/0.5687, allocations: 3.984 kB / 0.5028 GB, free: 20.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.5687, allocations: 4 kB / 0.5028 GB, free: 20.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001664/0.5689, allocations: 0 / 0.5028 GB, free: 20.46 MB / 346.7 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.01479/0.5837, allocations: 3.327 MB / 0.506 GB, free: 17.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.957e-05/0.5838, allocations: 12.03 kB / 0.506 GB, free: 17.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01218/0.596, allocations: 1.809 MB / 0.5078 GB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005749/0.6018, allocations: 1.374 MB / 0.5091 GB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002596/0.6022, allocations: 151.8 kB / 0.5093 GB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001161/0.6033, allocations: 203.8 kB / 0.5095 GB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02029/0.6236, allocations: 7.982 MB / 0.5173 GB, free: 5.129 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001824/0.6239, allocations: 31.72 kB / 0.5173 GB, free: 5.098 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006598/0.6246, allocations: 91.86 kB / 0.5174 GB, free: 5.008 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00467/0.6293, allocations: 1.844 MB / 0.5192 GB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02693/0.6562, allocations: 7.145 MB / 0.5262 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07575/0.732, allocations: 24.44 MB / 0.55 GB, free: 3.062 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008944/0.7411, allocations: 2.379 MB / 0.5524 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.4514/1.193, allocations: 0.811 MB / 0.5532 GB, free: 88.17 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01571/1.208, allocations: 4.642 MB / 0.5577 GB, free: 85.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.14e-05/1.208, allocations: 40.22 kB / 0.5577 GB, free: 85.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=131): time 6.392e-06/1.208, allocations: 0 / 0.5577 GB, free: 85.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=153): time 0.02733/1.236, allocations: 6.855 MB / 0.5644 GB, free: 82.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.707e-05/1.236, allocations: 65.56 kB / 0.5645 GB, free: 82.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008069/1.244, allocations: 2.653 MB / 0.5671 GB, free: 81.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003945/1.245, allocations: 55.06 kB / 0.5671 GB, free: 81.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002079/1.247, allocations: 2.108 MB / 0.5692 GB, free: 80.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009902/1.248, allocations: 0.5686 MB / 0.5697 GB, free: 79.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002873/1.248, allocations: 76.77 kB / 0.5698 GB, free: 79.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003983/1.248, allocations: 480.5 kB / 0.5703 GB, free: 79.31 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003614/1.252, allocations: 1.275 MB / 0.5715 GB, free: 78.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005287/1.257, allocations: 3.419 MB / 0.5749 GB, free: 75.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005797/1.263, allocations: 2.099 MB / 0.5769 GB, free: 73.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00013/1.263, allocations: 20 kB / 0.5769 GB, free: 73.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.01682/1.28, allocations: 4.871 MB / 0.5817 GB, free: 69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/1.28, allocations: 50.05 kB / 0.5817 GB, free: 68.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001442/1.28, allocations: 72 kB / 0.5818 GB, free: 68.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001222/1.282, allocations: 316.7 kB / 0.5821 GB, free: 68.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005242/1.287, allocations: 0.8578 MB / 0.5829 GB, free: 67.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006461/1.293, allocations: 3.351 MB / 0.5862 GB, free: 64.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006562/1.3, allocations: 196 kB / 0.5864 GB, free: 64.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001083/1.301, allocations: 237.4 kB / 0.5866 GB, free: 63.8 MB / 378.7 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.005188/1.306, allocations: 1.567 MB / 0.5882 GB, free: 62.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/1.308, allocations: 229 kB / 0.5884 GB, free: 62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005101/1.313, allocations: 2.011 MB / 0.5903 GB, free: 59.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001497/1.313, allocations: 28.61 kB / 0.5904 GB, free: 59.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/1.313, allocations: 4 kB / 0.5904 GB, free: 59.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.15e-05/1.313, allocations: 7.969 kB / 0.5904 GB, free: 59.94 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01509/1.328, allocations: 5.71 MB / 0.596 GB, free: 54.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.612e-05/1.328, allocations: 4 kB / 0.596 GB, free: 54.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/1.329, allocations: 203.7 kB / 0.5962 GB, free: 53.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007827/1.33, allocations: 208.6 kB / 0.5964 GB, free: 53.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/1.33, allocations: 35.23 kB / 0.5964 GB, free: 53.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003877/1.334, allocations: 2.709 MB / 0.599 GB, free: 50.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/1.334, allocations: 7.938 kB / 0.599 GB, free: 50.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006388/1.341, allocations: 3.092 MB / 0.6021 GB, free: 47.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001705/1.342, allocations: 466.1 kB / 0.6025 GB, free: 47.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004531/1.343, allocations: 25.56 kB / 0.6025 GB, free: 47.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/1.344, allocations: 63.92 kB / 0.6026 GB, free: 47.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002629/1.344, allocations: 96.77 kB / 0.6027 GB, free: 47.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/1.344, allocations: 49.86 kB / 0.6027 GB, free: 47.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003945/1.348, allocations: 1.701 MB / 0.6044 GB, free: 45.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.348, allocations: 0 / 0.6044 GB, free: 45.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005942/1.354, allocations: 0.6893 MB / 0.6051 GB, free: 44.62 MB / 378.7 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.0005515/1.355, allocations: 157.8 kB / 0.6052 GB, free: 44.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007866/1.363, allocations: 3.147 MB / 0.6083 GB, free: 41.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/1.363, allocations: 0 / 0.6083 GB, free: 41.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002134/1.365, allocations: 1.026 MB / 0.6093 GB, free: 40.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003523/1.369, allocations: 384.2 kB / 0.6097 GB, free: 39.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01893/1.388, allocations: 8.248 MB / 0.6177 GB, free: 31.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003771/1.391, allocations: 2.599 MB / 0.6202 GB, free: 28.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001147/1.393, allocations: 215.3 kB / 0.6205 GB, free: 28.75 MB / 378.7 MB Notification: Performance of SimCode: time 1.593e-06/1.393, allocations: 0 / 0.6205 GB, free: 28.75 MB / 378.7 MB Notification: Performance of Templates: time 0.1295/1.522, allocations: 56.34 MB / 0.6755 GB, free: 4.508 MB / 410.7 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)