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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.00102/0.00102, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.001398/0.001398, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 223.2 MB / 239.9 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.155/0.155, allocations: 9.097 MB / 300.1 MB, free: 2.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002893/0.0002893, allocations: 8 kB / 363 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1086, allocations: 52.43 MB / 415.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.2133/0.322, allocations: 37.63 MB / 453 MB, free: 21.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02026/0.3423, allocations: 9.302 MB / 462.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009181/0.3515, allocations: 164.8 kB / 462.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006547/0.3581, allocations: 1.885 MB / 464.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01688/0.375, allocations: 5.573 MB / 470 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001721/0.3768, allocations: 201.9 kB / 470.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002438/0.3793, allocations: 1.74 MB / 471.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009834/0.3802, allocations: 1.035 MB / 472.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007379/0.381, allocations: 0.8379 MB / 473.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001067/0.3821, allocations: 1.162 MB / 474.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002715/0.3823, allocations: 156.8 kB / 475.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.3835, allocations: 0.678 MB / 475.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009343/0.3844, allocations: 1.191 MB / 477 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006378/0.3851, allocations: 0.7463 MB / 477.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00451/0.3896, allocations: 4.17 MB / 481.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3896, allocations: 0 / 481.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3896, allocations: 0 / 481.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002168/0.3898, allocations: 0 / 481.9 MB, free: 7.16 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.015/0.4048, allocations: 5.119 MB / 487 MB, free: 5.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.4049, allocations: 9.812 kB / 487 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009652/0.4146, allocations: 2.245 MB / 489.2 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004736/0.4193, allocations: 1.534 MB / 490.8 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.4195, allocations: 187.5 kB / 491 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008513/0.4204, allocations: 246.9 kB / 491.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01666/0.4371, allocations: 9.337 MB / 0.4888 GB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.415e-05/0.4372, allocations: 26.59 kB / 0.4888 GB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003983/0.4376, allocations: 115.5 kB / 0.4889 GB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00346/0.4411, allocations: 2.08 MB / 0.491 GB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01738/0.4585, allocations: 8.269 MB / 0.4991 GB, free: 3.672 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04348/0.502, allocations: 29.99 MB / 0.5283 GB, free: 5.055 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007546/0.5096, allocations: 3.022 MB / 0.5313 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002624/0.5122, allocations: 2.711 MB / 0.5339 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.909e-05/0.5123, allocations: 56.5 kB / 0.534 GB, free: 14.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=205): time 5.471e-06/0.5123, allocations: 0 / 0.534 GB, free: 14.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=265): time 0.0356/0.5479, allocations: 13.65 MB / 0.5473 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0115/0.5595, allocations: 9.105 MB / 0.5562 GB, free: 7.203 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004572/0.5641, allocations: 2.968 MB / 0.5591 GB, free: 4.223 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003745/0.5645, allocations: 69.7 kB / 0.5592 GB, free: 4.148 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001651/0.5661, allocations: 2.352 MB / 0.5615 GB, free: 1.762 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001069/0.5672, allocations: 0.9478 MB / 0.5624 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/0.5674, allocations: 100 kB / 0.5625 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003035/0.5678, allocations: 0.5211 MB / 0.563 GB, free: 180 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002833/0.5706, allocations: 1.7 MB / 0.5647 GB, free: 14.47 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00477/0.5754, allocations: 4.309 MB / 0.5689 GB, free: 8.879 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004364/0.5798, allocations: 2.72 MB / 0.5715 GB, free: 6.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.773e-05/0.5799, allocations: 28 kB / 0.5716 GB, free: 6.133 MB / 446.1 MB Notification: Performance of matching and sorting (n=676) (initialization): time 0.2356/0.8154, allocations: 6.661 MB / 0.5781 GB, free: 117.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.613e-05/0.8156, allocations: 43.28 kB / 0.5781 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001282/0.8157, allocations: 95.59 kB / 0.5782 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001922/0.8176, allocations: 0.7335 MB / 0.5789 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004114/0.8218, allocations: 1.088 MB / 0.58 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01229/0.8341, allocations: 12.67 MB / 0.5923 GB, free: 111.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00446/0.8386, allocations: 294.3 kB / 0.5926 GB, free: 111.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008612/0.8395, allocations: 299.2 kB / 0.5929 GB, free: 111.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 (598): * Single equations (assignments): 587 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(1,100.0%) 1,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.004067/0.8435, allocations: 1.806 MB / 0.5947 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000584/0.8441, allocations: 289.5 kB / 0.5949 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006883/0.851, allocations: 3.917 MB / 0.5988 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004365/0.8554, allocations: 3.114 MB / 0.6018 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/0.8555, allocations: 13.16 kB / 0.6018 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.196e-05/0.8555, allocations: 13.88 kB / 0.6018 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01758/0.8731, allocations: 11.3 MB / 0.6129 GB, free: 104.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.905e-05/0.8731, allocations: 9.875 kB / 0.6129 GB, free: 104.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.8743, allocations: 321.7 kB / 0.6132 GB, free: 104.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002594/0.8769, allocations: 0.7912 MB / 0.614 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000301/0.8772, allocations: 55.77 kB / 0.614 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01437/0.8916, allocations: 12.6 MB / 0.6263 GB, free: 95.26 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006664/0.8983, allocations: 5.874 MB / 0.6321 GB, free: 91.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008388/0.9067, allocations: 5.973 MB / 0.6379 GB, free: 88.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/0.908, allocations: 377.3 kB / 0.6383 GB, free: 88.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004151/0.9085, allocations: 47.16 kB / 0.6383 GB, free: 88.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/0.9097, allocations: 124 kB / 0.6384 GB, free: 88.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003706/0.91, allocations: 185.6 kB / 0.6386 GB, free: 87.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/0.9102, allocations: 80.39 kB / 0.6387 GB, free: 87.97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002665/0.9129, allocations: 1.915 MB / 0.6405 GB, free: 87.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9129, allocations: 0 / 0.6405 GB, free: 87.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005229/0.9181, allocations: 1.002 MB / 0.6415 GB, free: 87.15 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (182): * Single equations (assignments): 173 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(3,88.9%) 13} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005659/0.9187, allocations: 190 kB / 0.6417 GB, free: 87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007419/0.9261, allocations: 4.942 MB / 0.6465 GB, free: 84.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.016e-06/0.9262, allocations: 0 / 0.6465 GB, free: 84.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002797/0.929, allocations: 2.28 MB / 0.6488 GB, free: 83.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002347/0.9313, allocations: 420.6 kB / 0.6492 GB, free: 83.24 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.9448, allocations: 9.959 MB / 0.6589 GB, free: 73.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00276/0.9477, allocations: 3.054 MB / 0.6619 GB, free: 71.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003372/0.951, allocations: 1.434 MB / 0.6633 GB, free: 69.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005697/0.9516, allocations: 223.4 kB / 0.6635 GB, free: 69.66 MB / 446.1 MB Notification: Performance of SimCode: time 1.282e-06/0.9516, allocations: 0 / 0.6635 GB, free: 69.66 MB / 446.1 MB Notification: Performance of Templates: time 0.05815/1.01, allocations: 36.56 MB / 0.6992 GB, free: 33.36 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)