Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.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_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") translateModel(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001657/0.001657, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001773/0.001773, allocations: 193.6 kB / 16.14 MB, free: 6.703 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.466/1.466, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1818/0.1818, allocations: 9.109 MB / 299.1 MB, free: 1.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 67.84 kB / 361.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1192, allocations: 51.43 MB / 412.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.2088/0.328, allocations: 44.18 MB / 456.9 MB, free: 16.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01959/0.3477, allocations: 9.25 MB / 466.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009452/0.3572, allocations: 165.1 kB / 466.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001367/0.3586, allocations: 370.4 kB / 466.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003802/0.3624, allocations: 1.467 MB / 468.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007214/0.3632, allocations: 186.6 kB / 468.3 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004067/0.3673, allocations: 4.069 MB / 472.4 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001599/0.3689, allocations: 1.077 MB / 473.4 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0016/0.3705, allocations: 0.9512 MB / 474.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002252/0.3728, allocations: 1.556 MB / 476 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008026/0.3736, allocations: 170.3 kB / 476.1 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00202/0.3757, allocations: 0.8099 MB / 476.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001692/0.3774, allocations: 1.319 MB / 478.3 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002669/0.3801, allocations: 1.768 MB / 480 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007165/0.3873, allocations: 5.256 MB / 485.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3873, allocations: 1.375 kB / 485.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3873, allocations: 0 / 485.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002356/0.3876, allocations: 0 / 485.3 MB, free: 2.848 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.01763/0.4052, allocations: 5.735 MB / 491 MB, free: 480 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.4053, allocations: 10.44 kB / 491 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007348/0.4126, allocations: 1.825 MB / 492.8 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0041/0.4168, allocations: 1.567 MB / 494.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002149/0.417, allocations: 189.7 kB / 494.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001004/0.418, allocations: 240.5 kB / 494.8 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01688/0.4349, allocations: 9.304 MB / 0.4923 GB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.153e-05/0.435, allocations: 27.72 kB / 0.4924 GB, free: 8.887 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004879/0.4355, allocations: 115.8 kB / 0.4925 GB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00348/0.439, allocations: 2.076 MB / 0.4945 GB, free: 6.695 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01758/0.4566, allocations: 8.248 MB / 0.5025 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05112/0.5078, allocations: 30.02 MB / 0.5319 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009565/0.5174, allocations: 3.035 MB / 0.5348 GB, free: 12.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002533/0.52, allocations: 1.108 MB / 0.5359 GB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01078/0.5308, allocations: 6.291 MB / 0.542 GB, free: 4.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/0.5309, allocations: 47.88 kB / 0.5421 GB, free: 4.535 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 5.28e-06/0.5309, allocations: 0 / 0.5421 GB, free: 4.535 MB / 414.1 MB Notification: Performance of matching and sorting (n=239): time 0.03693/0.5679, allocations: 12.34 MB / 0.5541 GB, free: 8.031 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01366/0.5816, allocations: 6.631 MB / 0.5606 GB, free: 1.098 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009532/0.5912, allocations: 3.073 MB / 0.5636 GB, free: 14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005744/0.5918, allocations: 61.7 kB / 0.5637 GB, free: 13.94 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003027/0.5949, allocations: 2.413 MB / 0.566 GB, free: 11.49 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001685/0.5966, allocations: 0.871 MB / 0.5669 GB, free: 10.61 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004524/0.6011, allocations: 1.004 MB / 0.5679 GB, free: 9.594 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.6013, allocations: 305.1 kB / 0.5682 GB, free: 9.293 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005515/0.6069, allocations: 1.708 MB / 0.5698 GB, free: 7.578 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008765/0.6157, allocations: 4.339 MB / 0.5741 GB, free: 1.953 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2656/0.8813, allocations: 6.522 MB / 0.5804 GB, free: 122 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.332e-05/0.8815, allocations: 27.47 kB / 0.5805 GB, free: 122 MB / 446.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01311/0.8946, allocations: 6.678 MB / 0.587 GB, free: 120.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.295e-05/0.8947, allocations: 43.72 kB / 0.587 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/0.8948, allocations: 89.22 kB / 0.5871 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001879/0.8967, allocations: 0.7083 MB / 0.5878 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00401/0.9007, allocations: 1.067 MB / 0.5888 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01115/0.9119, allocations: 11.11 MB / 0.5997 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004408/0.9164, allocations: 303 kB / 0.6 GB, free: 112.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008246/0.9172, allocations: 297.5 kB / 0.6003 GB, free: 112.3 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 (590): * Single equations (assignments): 579 * Array equations: 6 * 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.003436/0.9207, allocations: 1.795 MB / 0.602 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005415/0.9212, allocations: 286.2 kB / 0.6023 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006211/0.9274, allocations: 3.498 MB / 0.6057 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00493/0.9324, allocations: 3.03 MB / 0.6087 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.526e-05/0.9325, allocations: 6.469 kB / 0.6087 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.682e-05/0.9325, allocations: 12.12 kB / 0.6087 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02655/0.9591, allocations: 10.72 MB / 0.6191 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.443e-05/0.9592, allocations: 4.141 kB / 0.6191 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/0.9605, allocations: 279 kB / 0.6194 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002302/0.9628, allocations: 0.7859 MB / 0.6202 GB, free: 104.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003616/0.9632, allocations: 48.77 kB / 0.6202 GB, free: 104.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01352/0.9767, allocations: 11.03 MB / 0.631 GB, free: 97.22 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006448/0.9832, allocations: 5.775 MB / 0.6366 GB, free: 93.24 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009008/0.9923, allocations: 5.107 MB / 0.6416 GB, free: 90.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/0.9936, allocations: 356.7 kB / 0.642 GB, free: 90.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/0.9946, allocations: 43.8 kB / 0.642 GB, free: 90.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001945/0.9966, allocations: 109.7 kB / 0.6421 GB, free: 90.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005777/0.9972, allocations: 154.3 kB / 0.6423 GB, free: 90 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002302/0.9975, allocations: 77.03 kB / 0.6423 GB, free: 89.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004007/1.001, allocations: 1.963 MB / 0.6442 GB, free: 88.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.5e-07/1.001, allocations: 1.125 kB / 0.6442 GB, free: 88.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006702/1.008, allocations: 0.9996 MB / 0.6452 GB, free: 87.29 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * 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 (158): * Single equations (assignments): 149 * 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%), (4,12,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008515/1.009, allocations: 183 kB / 0.6454 GB, free: 87.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008584/1.018, allocations: 4.85 MB / 0.6501 GB, free: 82.76 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/1.018, allocations: 5.922 kB / 0.6501 GB, free: 82.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004021/1.022, allocations: 2.215 MB / 0.6523 GB, free: 80.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00422/1.026, allocations: 446 kB / 0.6527 GB, free: 80.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01722/1.043, allocations: 10.14 MB / 0.6626 GB, free: 70.65 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004514/1.048, allocations: 2.96 MB / 0.6655 GB, free: 67.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004206/1.052, allocations: 1.417 MB / 0.6669 GB, free: 66.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/1.053, allocations: 215.4 kB / 0.6671 GB, free: 66.03 MB / 446.1 MB Notification: Performance of SimCode: time 1.343e-06/1.053, allocations: 0 / 0.6671 GB, free: 66.03 MB / 446.1 MB Notification: Performance of Templates: time 0.06548/1.119, allocations: 37.72 MB / 0.7039 GB, free: 28.56 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)