Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") translateModel(PlanarMechanics.Examples.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 183.1 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.25/1.25, allocations: 222.9 MB / 239.6 MB, free: 11.02 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.0009168/0.0009168, allocations: 96.56 kB / 289.9 MB, free: 10.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04053/0.04053, allocations: 8.94 MB / 349 MB, free: 48 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001028, allocations: 55.05 kB / 411.1 MB, free: 57.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08005/0.08109, allocations: 51.39 MB / 462.5 MB, free: 5.754 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.2039/0.285, allocations: 44.19 MB / 0.4948 GB, free: 4.434 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02106/0.3062, allocations: 9.255 MB / 0.5039 GB, free: 14.06 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01125/0.3175, allocations: 166.2 kB / 0.504 GB, free: 14.04 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.3188, allocations: 377.1 kB / 0.5044 GB, free: 13.89 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003779/0.3226, allocations: 1.466 MB / 0.5058 GB, free: 13.15 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005286/0.3231, allocations: 185.3 kB / 0.506 GB, free: 13 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004413/0.3275, allocations: 4.101 MB / 0.51 GB, free: 10.79 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001682/0.3292, allocations: 1.091 MB / 0.5111 GB, free: 10.09 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001816/0.3311, allocations: 0.9479 MB / 0.512 GB, free: 9.566 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00262/0.3337, allocations: 1.554 MB / 0.5135 GB, free: 8.656 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007336/0.3345, allocations: 171.6 kB / 0.5137 GB, free: 8.656 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002395/0.3369, allocations: 0.8159 MB / 0.5145 GB, free: 8.062 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00193/0.3388, allocations: 1.305 MB / 0.5157 GB, free: 6.754 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003068/0.3419, allocations: 1.77 MB / 0.5175 GB, free: 4.973 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005679/0.3476, allocations: 5.264 MB / 0.5226 GB, free: 15.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3476, allocations: 0 / 0.5226 GB, free: 15.69 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3476, allocations: 0 / 0.5226 GB, free: 15.69 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.091e-05/0.3477, allocations: 0 / 0.5226 GB, free: 15.69 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.0126/0.3603, allocations: 5.74 MB / 0.5282 GB, free: 9.883 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.3604, allocations: 8.031 kB / 0.5282 GB, free: 9.875 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006714/0.3671, allocations: 1.829 MB / 0.53 GB, free: 8.039 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003478/0.3706, allocations: 1.56 MB / 0.5315 GB, free: 6.434 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/0.3708, allocations: 192.6 kB / 0.5317 GB, free: 6.242 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005451/0.3714, allocations: 235.9 kB / 0.5319 GB, free: 6.012 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01424/0.3856, allocations: 9.311 MB / 0.541 GB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.31e-05/0.3857, allocations: 27.72 kB / 0.541 GB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003239/0.3861, allocations: 115.8 kB / 0.5412 GB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003099/0.3892, allocations: 2.072 MB / 0.5432 GB, free: 10 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01577/0.405, allocations: 8.249 MB / 0.5512 GB, free: 1.742 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03795/0.443, allocations: 30.02 MB / 0.5806 GB, free: 3.074 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007446/0.4504, allocations: 3.026 MB / 0.5835 GB, free: 15.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00168/0.4522, allocations: 1.108 MB / 0.5846 GB, free: 14.81 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008008/0.4602, allocations: 6.286 MB / 0.5907 GB, free: 7.867 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.4603, allocations: 47.88 kB / 0.5908 GB, free: 7.812 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 4.088e-06/0.4603, allocations: 4 kB / 0.5908 GB, free: 7.809 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.01997/0.4802, allocations: 8.281 MB / 0.5989 GB, free: 15.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.4803, allocations: 73.41 kB / 0.5989 GB, free: 15.37 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004091/0.4844, allocations: 3.08 MB / 0.6019 GB, free: 12.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002429/0.4847, allocations: 57.7 kB / 0.602 GB, free: 12.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001618/0.4863, allocations: 2.421 MB / 0.6044 GB, free: 9.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008015/0.4871, allocations: 0.8479 MB / 0.6052 GB, free: 8.891 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001173/0.4883, allocations: 0.9768 MB / 0.6061 GB, free: 7.902 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.101e-05/0.4884, allocations: 305.1 kB / 0.6064 GB, free: 7.602 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002427/0.4909, allocations: 1.638 MB / 0.608 GB, free: 5.957 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003834/0.4947, allocations: 4.256 MB / 0.6122 GB, free: 424 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/0.5048, allocations: 6.388 MB / 0.6184 GB, free: 8.762 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.812e-05/0.5049, allocations: 28 kB / 0.6185 GB, free: 8.734 MB / 442.7 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01831/0.5233, allocations: 6.479 MB / 0.6248 GB, free: 2.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.838e-05/0.5234, allocations: 44 kB / 0.6248 GB, free: 2.188 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001371/0.5235, allocations: 92.09 kB / 0.6249 GB, free: 2.098 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002284/0.5258, allocations: 0.7066 MB / 0.6256 GB, free: 1.379 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004952/0.5308, allocations: 1.053 MB / 0.6266 GB, free: 332 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01728/0.5481, allocations: 11.11 MB / 0.6375 GB, free: 4.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005421/0.5536, allocations: 259.8 kB / 0.6377 GB, free: 4.406 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/0.5546, allocations: 288 kB / 0.638 GB, free: 4.125 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 574 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,8,100.0%), (2,17,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.003847/0.5585, allocations: 1.792 MB / 0.6398 GB, free: 2.32 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006272/0.5591, allocations: 284.3 kB / 0.64 GB, free: 2.039 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2147/0.7739, allocations: 3.133 MB / 0.6431 GB, free: 151.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001434/0.7741, allocations: 34.59 kB / 0.6431 GB, free: 151.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.777e-05/0.7741, allocations: 7.578 kB / 0.6431 GB, free: 151.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-05/0.7742, allocations: 10.84 kB / 0.6431 GB, free: 151.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/0.789, allocations: 8.311 MB / 0.6512 GB, free: 148.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/0.7891, allocations: 4.016 kB / 0.6513 GB, free: 148.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.7901, allocations: 301.6 kB / 0.6515 GB, free: 148.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001278/0.7914, allocations: 0.5336 MB / 0.6521 GB, free: 148.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/0.7915, allocations: 41.61 kB / 0.6521 GB, free: 148.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007444/0.799, allocations: 9.18 MB / 0.6611 GB, free: 142 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.799, allocations: 8.281 kB / 0.6611 GB, free: 142 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02913/0.8281, allocations: 23.31 MB / 0.6838 GB, free: 129.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005886/0.8288, allocations: 355.9 kB / 0.6842 GB, free: 129.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003001/0.8291, allocations: 43.44 kB / 0.6842 GB, free: 129.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009419/0.83, allocations: 98.5 kB / 0.6843 GB, free: 129.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003381/0.8304, allocations: 152.1 kB / 0.6845 GB, free: 129 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.8305, allocations: 63.98 kB / 0.6845 GB, free: 128.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002442/0.8329, allocations: 1.964 MB / 0.6864 GB, free: 126.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8329, allocations: 0 / 0.6864 GB, free: 126.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004326/0.8373, allocations: 1.153 MB / 0.6876 GB, free: 125.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.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 (170): * Single equations (assignments): 161 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,6,100.0%), (2,15,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004135/0.8377, allocations: 186.8 kB / 0.6877 GB, free: 125.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005573/0.8433, allocations: 4.688 MB / 0.6923 GB, free: 120.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.148e-06/0.8433, allocations: 3.062 kB / 0.6923 GB, free: 120.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001965/0.8453, allocations: 1.972 MB / 0.6942 GB, free: 118.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/0.8474, allocations: 435.5 kB / 0.6947 GB, free: 118.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.8599, allocations: 11.78 MB / 0.7062 GB, free: 106.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00248/0.8624, allocations: 3.015 MB / 0.7091 GB, free: 103.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003184/0.8656, allocations: 1.389 MB / 0.7105 GB, free: 102.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004736/0.8661, allocations: 211.4 kB / 0.7107 GB, free: 101.9 MB / 458.7 MB Notification: Performance of SimCode: time 2.064e-06/0.8661, allocations: 0 / 0.7107 GB, free: 101.9 MB / 458.7 MB Notification: Performance of Templates: time 0.05687/0.923, allocations: 39.83 MB / 0.7496 GB, free: 62.37 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1)