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.000922/0.0009217, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.00764/0.00764, allocations: 171.9 kB / 16.26 MB, free: 6.613 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.499/1.499, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1806/0.1806, allocations: 9.12 MB / 300.5 MB, free: 2.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004259/0.000426, allocations: 12 kB / 363.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1192, allocations: 52.43 MB / 416.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.249/0.3682, allocations: 43.01 MB / 459.2 MB, free: 16.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01977/0.388, allocations: 9.207 MB / 468.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01019/0.3982, allocations: 166.8 kB / 468.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001232/0.3995, allocations: 364.4 kB / 468.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003787/0.4033, allocations: 1.482 MB / 470.4 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005712/0.4039, allocations: 182.5 kB / 470.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003554/0.4075, allocations: 4.069 MB / 474.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.4088, allocations: 1.058 MB / 475.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.4098, allocations: 0.9247 MB / 476.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001405/0.4113, allocations: 1.525 MB / 478.1 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002666/0.4115, allocations: 155.8 kB / 478.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00136/0.4129, allocations: 0.8053 MB / 479.1 MB, free: 6.504 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001088/0.414, allocations: 1.303 MB / 480.4 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00133/0.4153, allocations: 1.77 MB / 482.2 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005231/0.4206, allocations: 5.14 MB / 487.3 MB, free: 3.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4206, allocations: 1.781 kB / 487.3 MB, free: 3.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4206, allocations: 0 / 487.3 MB, free: 3.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001748/0.4208, allocations: 0 / 487.3 MB, free: 3.172 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.01346/0.4343, allocations: 4.98 MB / 492.3 MB, free: 1.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.4343, allocations: 10.59 kB / 492.3 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008149/0.4425, allocations: 1.87 MB / 494.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003805/0.4463, allocations: 1.565 MB / 495.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002347/0.4466, allocations: 185.1 kB / 495.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001134/0.4477, allocations: 250.2 kB / 496.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01825/0.466, allocations: 9.304 MB / 0.4936 GB, free: 9.793 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001006/0.4661, allocations: 35.72 kB / 0.4936 GB, free: 9.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003768/0.4665, allocations: 123.8 kB / 0.4938 GB, free: 9.637 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00361/0.4701, allocations: 2.072 MB / 0.4958 GB, free: 7.562 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01801/0.4881, allocations: 8.237 MB / 0.5038 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04734/0.5355, allocations: 30.05 MB / 0.5332 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008621/0.5442, allocations: 3.031 MB / 0.5361 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002227/0.5464, allocations: 1.116 MB / 0.5372 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009231/0.5557, allocations: 6.277 MB / 0.5434 GB, free: 5.441 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.5558, allocations: 51.81 kB / 0.5434 GB, free: 5.383 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 6.231e-06/0.5558, allocations: 0 / 0.5434 GB, free: 5.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=233): time 0.02506/0.5809, allocations: 8.329 MB / 0.5515 GB, free: 12.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.234e-05/0.581, allocations: 77.34 kB / 0.5516 GB, free: 12.89 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005072/0.5861, allocations: 3.076 MB / 0.5546 GB, free: 9.793 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003403/0.5864, allocations: 61.7 kB / 0.5547 GB, free: 9.727 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001749/0.5882, allocations: 2.42 MB / 0.557 GB, free: 7.273 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009799/0.5892, allocations: 0.8401 MB / 0.5579 GB, free: 6.422 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005785/0.5898, allocations: 425 kB / 0.5583 GB, free: 6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.5899, allocations: 301.1 kB / 0.5585 GB, free: 5.703 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002893/0.5928, allocations: 1.63 MB / 0.5601 GB, free: 4.066 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00481/0.5976, allocations: 4.264 MB / 0.5643 GB, free: 14.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008513/0.6062, allocations: 6.379 MB / 0.5705 GB, free: 6.871 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.048e-05/0.6063, allocations: 27.94 kB / 0.5706 GB, free: 6.844 MB / 446.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01471/0.621, allocations: 6.484 MB / 0.5769 GB, free: 344 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.108e-05/0.6212, allocations: 46.03 kB / 0.5769 GB, free: 300 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001337/0.6213, allocations: 88 kB / 0.577 GB, free: 212 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2183/0.8396, allocations: 0.6992 MB / 0.5777 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003456/0.843, allocations: 1.054 MB / 0.5787 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/0.8536, allocations: 11.12 MB / 0.5896 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00387/0.8575, allocations: 257.7 kB / 0.5898 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007218/0.8583, allocations: 293.6 kB / 0.5901 GB, free: 117.1 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.003812/0.8621, allocations: 1.79 MB / 0.5919 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004794/0.8626, allocations: 279.8 kB / 0.5921 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005043/0.8676, allocations: 3.124 MB / 0.5952 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001099/0.8677, allocations: 39 kB / 0.5952 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.8678, allocations: 9.406 kB / 0.5952 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/0.8678, allocations: 12.52 kB / 0.5952 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/0.8809, allocations: 8.319 MB / 0.6034 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.881, allocations: 6 kB / 0.6034 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.882, allocations: 299 kB / 0.6037 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001232/0.8832, allocations: 0.5343 MB / 0.6042 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.8834, allocations: 46.92 kB / 0.6042 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00743/0.8908, allocations: 9.182 MB / 0.6132 GB, free: 105.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.69e-06/0.8909, allocations: 10.09 kB / 0.6132 GB, free: 105.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006502/0.8974, allocations: 4.685 MB / 0.6178 GB, free: 103.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008192/0.8982, allocations: 367.6 kB / 0.6181 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003203/0.8985, allocations: 41.81 kB / 0.6182 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.8996, allocations: 103 kB / 0.6183 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000316/0.8999, allocations: 150.4 kB / 0.6184 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/0.9001, allocations: 59.81 kB / 0.6185 GB, free: 103.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002979/0.903, allocations: 1.971 MB / 0.6204 GB, free: 102.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9031, allocations: 0 / 0.6204 GB, free: 102.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004199/0.9073, allocations: 0.904 MB / 0.6213 GB, free: 102.3 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.0004153/0.9077, allocations: 183.8 kB / 0.6214 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007617/0.9153, allocations: 4.684 MB / 0.626 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.363e-06/0.9154, allocations: 0 / 0.626 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002903/0.9183, allocations: 1.97 MB / 0.6279 GB, free: 99.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003962/0.9223, allocations: 438.3 kB / 0.6284 GB, free: 98.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01991/0.9422, allocations: 9.89 MB / 0.638 GB, free: 93.44 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004232/0.9465, allocations: 2.93 MB / 0.6409 GB, free: 92.19 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003839/0.9503, allocations: 1.381 MB / 0.6422 GB, free: 92.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005374/0.9509, allocations: 206.6 kB / 0.6424 GB, free: 91.86 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.9509, allocations: 4 kB / 0.6424 GB, free: 91.85 MB / 446.1 MB Notification: Performance of Templates: time 0.05306/1.004, allocations: 34.09 MB / 0.6757 GB, free: 59.53 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)