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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001133/0.001133, allocations: 195.4 kB / 16.14 MB, free: 6.668 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.384/1.384, allocations: 222.9 MB / 239.8 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1574/0.1574, allocations: 9.118 MB / 299.1 MB, free: 1.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002254/0.002254, allocations: 64.09 kB / 361.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1182, allocations: 51.43 MB / 412.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.2368/0.355, allocations: 44.17 MB / 456.9 MB, free: 17.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02229/0.3774, allocations: 9.251 MB / 466.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009676/0.3871, allocations: 166.1 kB / 466.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001141/0.3884, allocations: 374.7 kB / 466.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003082/0.3915, allocations: 1.471 MB / 468.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000454/0.3919, allocations: 180.5 kB / 468.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002694/0.3946, allocations: 4.081 MB / 472.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009888/0.3956, allocations: 1.076 MB / 473.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008885/0.3965, allocations: 0.9475 MB / 474.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001414/0.3979, allocations: 1.553 MB / 476 MB, free: 6.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003689/0.3983, allocations: 169.5 kB / 476.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001456/0.3998, allocations: 0.8119 MB / 476.9 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001049/0.4009, allocations: 1.327 MB / 478.3 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001333/0.4022, allocations: 1.761 MB / 480 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005222/0.4074, allocations: 5.265 MB / 485.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.4075, allocations: 0 / 485.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4075, allocations: 0 / 485.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001672/0.4076, allocations: 1.062 kB / 485.3 MB, free: 2.93 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.017/0.4246, allocations: 5.729 MB / 491 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.4247, allocations: 9.156 kB / 491 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007164/0.4319, allocations: 1.829 MB / 492.9 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003673/0.4356, allocations: 1.564 MB / 494.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001998/0.4358, allocations: 186.3 kB / 494.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006229/0.4364, allocations: 246.2 kB / 494.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0152/0.4516, allocations: 9.306 MB / 0.4923 GB, free: 8.938 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-05/0.4517, allocations: 31.7 kB / 0.4924 GB, free: 8.906 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003466/0.4521, allocations: 115.8 kB / 0.4925 GB, free: 8.793 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003075/0.4552, allocations: 2.075 MB / 0.4945 GB, free: 6.715 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01607/0.4713, allocations: 8.237 MB / 0.5026 GB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04943/0.5207, allocations: 30.02 MB / 0.5319 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008752/0.5295, allocations: 3.039 MB / 0.5348 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002334/0.5319, allocations: 1.108 MB / 0.5359 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01011/0.542, allocations: 6.287 MB / 0.5421 GB, free: 4.605 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.228e-05/0.5422, allocations: 51.81 kB / 0.5421 GB, free: 4.547 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 5.931e-06/0.5422, allocations: 0 / 0.5421 GB, free: 4.547 MB / 414.1 MB Notification: Performance of matching and sorting (n=233): time 0.03893/0.5811, allocations: 8.283 MB / 0.5502 GB, free: 12.19 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.399e-05/0.5812, allocations: 73.41 kB / 0.5503 GB, free: 12.1 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00819/0.5894, allocations: 3.08 MB / 0.5533 GB, free: 9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000445/0.5899, allocations: 57.7 kB / 0.5533 GB, free: 8.938 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002801/0.5928, allocations: 2.413 MB / 0.5557 GB, free: 6.492 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001603/0.5944, allocations: 0.8479 MB / 0.5565 GB, free: 5.633 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002968/0.5974, allocations: 0.9807 MB / 0.5575 GB, free: 4.641 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.5976, allocations: 317 kB / 0.5578 GB, free: 4.328 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004875/0.6024, allocations: 1.634 MB / 0.5594 GB, free: 2.688 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007182/0.6096, allocations: 4.244 MB / 0.5635 GB, free: 13.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009805/0.6195, allocations: 6.385 MB / 0.5698 GB, free: 5.504 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.099e-05/0.6196, allocations: 35.92 kB / 0.5698 GB, free: 5.469 MB / 446.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.1977/0.8173, allocations: 6.473 MB / 0.5761 GB, free: 122.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.672e-05/0.8174, allocations: 47.38 kB / 0.5762 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001055/0.8175, allocations: 90.5 kB / 0.5762 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001838/0.8194, allocations: 0.6974 MB / 0.5769 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003353/0.8227, allocations: 1.057 MB / 0.578 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.8335, allocations: 11.11 MB / 0.5888 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003961/0.8375, allocations: 258.3 kB / 0.589 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006217/0.8381, allocations: 289.4 kB / 0.5893 GB, free: 116.9 MB / 446.1 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.00294/0.8411, allocations: 1.781 MB / 0.5911 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004989/0.8416, allocations: 284.5 kB / 0.5913 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004685/0.8463, allocations: 3.13 MB / 0.5944 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/0.8464, allocations: 41.2 kB / 0.5944 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.8464, allocations: 10.03 kB / 0.5944 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-05/0.8464, allocations: 12.55 kB / 0.5945 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01294/0.8594, allocations: 8.313 MB / 0.6026 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.8594, allocations: 3 kB / 0.6026 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.8605, allocations: 299.6 kB / 0.6029 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/0.8618, allocations: 0.536 MB / 0.6034 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.8619, allocations: 46.16 kB / 0.6034 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007703/0.8697, allocations: 9.172 MB / 0.6124 GB, free: 104.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.291e-06/0.8697, allocations: 8.344 kB / 0.6124 GB, free: 104.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007695/0.8774, allocations: 4.684 MB / 0.617 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008721/0.8783, allocations: 357 kB / 0.6173 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000351/0.8787, allocations: 45.03 kB / 0.6173 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009963/0.8797, allocations: 95.91 kB / 0.6174 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003578/0.88, allocations: 157.8 kB / 0.6176 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.8802, allocations: 63.02 kB / 0.6177 GB, free: 102.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002867/0.883, allocations: 1.965 MB / 0.6196 GB, free: 102 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.805e-06/0.8831, allocations: 0 / 0.6196 GB, free: 102 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005011/0.8881, allocations: 0.9092 MB / 0.6205 GB, free: 101.9 MB / 446.1 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.0005032/0.8886, allocations: 177.9 kB / 0.6206 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007801/0.8964, allocations: 4.679 MB / 0.6252 GB, free: 99.81 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/0.8965, allocations: 8.969 kB / 0.6252 GB, free: 99.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002717/0.8992, allocations: 1.963 MB / 0.6271 GB, free: 98.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002491/0.9017, allocations: 441.8 kB / 0.6275 GB, free: 98.56 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.9144, allocations: 9.8 MB / 0.6371 GB, free: 93.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003099/0.9175, allocations: 2.927 MB / 0.64 GB, free: 91.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003293/0.9208, allocations: 1.375 MB / 0.6413 GB, free: 91.42 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005255/0.9214, allocations: 207.3 kB / 0.6415 GB, free: 91.23 MB / 446.1 MB Notification: Performance of SimCode: time 1.573e-06/0.9214, allocations: 0 / 0.6415 GB, free: 91.23 MB / 446.1 MB Notification: Performance of Templates: time 0.05085/0.9722, allocations: 34.56 MB / 0.6753 GB, free: 58.81 MB / 446.1 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)