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.002157/0.002157, allocations: 174.8 kB / 15.77 MB, free: 6.328 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.263/2.263, allocations: 223.2 MB / 239.8 MB, free: 1.746 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 97.84 kB / 290.9 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.07111/0.07111, allocations: 8.94 MB / 351 MB, free: 2.078 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000636/0.0006365, allocations: 9.969 kB / 413.8 MB, free: 88.57 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.1742, allocations: 52.39 MB / 466.2 MB, free: 41.72 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.05494/0.2293, allocations: 40.05 MB / 0.4944 GB, free: 1.559 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03649/0.2658, allocations: 8.882 MB / 0.5031 GB, free: 8.648 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01388/0.2798, allocations: 167.7 kB / 0.5033 GB, free: 8.484 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01233/0.2922, allocations: 1.983 MB / 0.5052 GB, free: 6.492 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0412/0.3335, allocations: 6.869 MB / 0.5119 GB, free: 15.6 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005/0.3386, allocations: 195.8 kB / 0.5121 GB, free: 15.41 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.008242/0.347, allocations: 3.295 MB / 0.5153 GB, free: 12.1 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003155/0.3502, allocations: 1.036 MB / 0.5163 GB, free: 11.04 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003123/0.3534, allocations: 0.9726 MB / 0.5173 GB, free: 10.06 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004281/0.3577, allocations: 1.502 MB / 0.5187 GB, free: 8.555 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001223/0.359, allocations: 164 kB / 0.5189 GB, free: 8.395 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003085/0.3621, allocations: 0.6944 MB / 0.5196 GB, free: 7.699 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00284/0.365, allocations: 1.266 MB / 0.5208 GB, free: 6.43 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001907/0.3669, allocations: 0.7417 MB / 0.5215 GB, free: 5.68 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008816/0.3757, allocations: 4.17 MB / 0.5256 GB, free: 1.496 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.008e-05/0.3758, allocations: 0 / 0.5256 GB, free: 1.496 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.489e-06/0.3758, allocations: 4 kB / 0.5256 GB, free: 1.492 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002338/0.3761, allocations: 3.938 kB / 0.5256 GB, free: 1.488 MB / 362.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.4161/0.7922, allocations: 5.01 MB / 0.5305 GB, free: 68.44 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.11e-05/0.7923, allocations: 10.27 kB / 0.5305 GB, free: 68.44 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01315/0.8055, allocations: 1.868 MB / 0.5323 GB, free: 68.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007317/0.8129, allocations: 1.539 MB / 0.5338 GB, free: 67.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005214/0.8134, allocations: 187.1 kB / 0.534 GB, free: 67.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002034/0.8155, allocations: 248.7 kB / 0.5342 GB, free: 67.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03282/0.8483, allocations: 9.286 MB / 0.5433 GB, free: 64.65 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003226/0.8488, allocations: 28.92 kB / 0.5433 GB, free: 64.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001978/0.8508, allocations: 119.5 kB / 0.5435 GB, free: 64.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007656/0.8584, allocations: 2.072 MB / 0.5455 GB, free: 63.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03285/0.8914, allocations: 8.205 MB / 0.5535 GB, free: 57.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07079/0.9623, allocations: 30.02 MB / 0.5828 GB, free: 26.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01496/0.9773, allocations: 3.022 MB / 0.5858 GB, free: 23.52 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005905/0.9833, allocations: 1.108 MB / 0.5868 GB, free: 22.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01877/1.002, allocations: 6.287 MB / 0.593 GB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001218/1.002, allocations: 51.88 kB / 0.593 GB, free: 15.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 1.26e-05/1.003, allocations: 0 / 0.593 GB, free: 15.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=233): time 0.03865/1.041, allocations: 8.299 MB / 0.6011 GB, free: 7.074 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.762e-05/1.041, allocations: 73.41 kB / 0.6012 GB, free: 6.988 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006788/1.048, allocations: 3.049 MB / 0.6042 GB, free: 3.918 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004571/1.049, allocations: 61.7 kB / 0.6042 GB, free: 3.852 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001787/1.05, allocations: 2.419 MB / 0.6066 GB, free: 1.434 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001547/1.052, allocations: 0.8484 MB / 0.6074 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003346/1.052, allocations: 96 kB / 0.6075 GB, free: 0.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003847/1.053, allocations: 0.513 MB / 0.608 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004529/1.057, allocations: 1.618 MB / 0.6096 GB, free: 14.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01203/1.069, allocations: 4.233 MB / 0.6137 GB, free: 8.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007405/1.077, allocations: 2.616 MB / 0.6163 GB, free: 6.227 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.34e-05/1.077, allocations: 28 kB / 0.6163 GB, free: 6.199 MB / 378.7 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.02778/1.105, allocations: 6.434 MB / 0.6226 GB, free: 15.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001296/1.105, allocations: 45.72 kB / 0.6227 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002033/1.105, allocations: 92.88 kB / 0.6227 GB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003487/1.109, allocations: 0.7128 MB / 0.6234 GB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006821/1.116, allocations: 1.057 MB / 0.6245 GB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02405/1.14, allocations: 11.1 MB / 0.6353 GB, free: 2.195 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007698/1.147, allocations: 259.9 kB / 0.6356 GB, free: 1.941 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001445/1.149, allocations: 291.4 kB / 0.6358 GB, free: 1.66 MB / 394.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(2,100.0%) 17,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.006482/1.155, allocations: 1.796 MB / 0.6376 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/1.157, allocations: 280.3 kB / 0.6379 GB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008956/1.166, allocations: 3.116 MB / 0.6409 GB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001575/1.166, allocations: 35.98 kB / 0.6409 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-05/1.166, allocations: 4 kB / 0.6409 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.873e-05/1.166, allocations: 15.95 kB / 0.6409 GB, free: 12.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02363/1.189, allocations: 8.298 MB / 0.6491 GB, free: 3.922 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-05/1.19, allocations: 4 kB / 0.6491 GB, free: 3.918 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001947/1.192, allocations: 296 kB / 0.6493 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002249/1.194, allocations: 0.5408 MB / 0.6499 GB, free: 3.074 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003819/1.194, allocations: 43.98 kB / 0.6499 GB, free: 3.031 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01594/1.21, allocations: 9.182 MB / 0.6589 GB, free: 9.309 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.309e-05/1.21, allocations: 7.828 kB / 0.6589 GB, free: 9.305 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0135/1.224, allocations: 4.669 MB / 0.6634 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001876/1.226, allocations: 365.4 kB / 0.6638 GB, free: 4.176 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001409/1.227, allocations: 36 kB / 0.6638 GB, free: 4.141 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002796/1.23, allocations: 95.89 kB / 0.6639 GB, free: 4.047 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007848/1.231, allocations: 153.7 kB / 0.6641 GB, free: 3.895 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004102/1.231, allocations: 71.91 kB / 0.6641 GB, free: 3.824 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006681/1.238, allocations: 1.941 MB / 0.666 GB, free: 1.879 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.262e-06/1.238, allocations: 0 / 0.666 GB, free: 1.879 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009305/1.247, allocations: 0.905 MB / 0.6669 GB, free: 0.9766 MB / 426.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 6,(2,100.0%) 15,(2,100.0%) 6} * Non-linear torn systems: 1 {2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.001041/1.249, allocations: 180.6 kB / 0.6671 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01355/1.262, allocations: 4.666 MB / 0.6716 GB, free: 12.08 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.629e-05/1.262, allocations: 1.562 kB / 0.6716 GB, free: 12.08 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00537/1.268, allocations: 1.957 MB / 0.6736 GB, free: 10.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007189/1.275, allocations: 441.5 kB / 0.674 GB, free: 9.625 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03009/1.305, allocations: 9.873 MB / 0.6836 GB, free: 15.68 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008297/1.313, allocations: 2.936 MB / 0.6865 GB, free: 12.71 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001614/1.315, allocations: 259.4 kB / 0.6867 GB, free: 12.46 MB / 458.7 MB Notification: Performance of SimCode: time 2.124e-06/1.315, allocations: 0 / 0.6867 GB, free: 12.46 MB / 458.7 MB Notification: Performance of Templates: time 0.6127/1.928, allocations: 138.9 MB / 0.8224 GB, free: 33.43 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)