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.001215/0.001214, allocations: 107.2 kB / 16.41 MB, free: 6.496 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.001397/0.001397, allocations: 187 kB / 17.34 MB, free: 5.766 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.371/1.371, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04459/0.04459, allocations: 9.121 MB / 300.3 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 63.89 kB / 415.3 MB, free: 21.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08071/0.08193, allocations: 51.43 MB / 466.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01119/0.09315, allocations: 10.48 MB / 477.2 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006192/0.09939, allocations: 2.974 MB / 480.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001273/0.1007, allocations: 43.94 kB / 480.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001061/0.1018, allocations: 448.8 kB / 480.7 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003801/0.1056, allocations: 1.587 MB / 482.3 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006684/0.1063, allocations: 219.6 kB / 482.5 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003807/0.1101, allocations: 3.018 MB / 485.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001809/0.112, allocations: 1.182 MB / 486.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001748/0.1137, allocations: 1.105 MB / 487.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00237/0.1161, allocations: 1.537 MB / 489.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007996/0.1169, allocations: 279.9 kB / 489.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002059/0.119, allocations: 0.8777 MB / 490.5 MB, free: 9.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001693/0.1207, allocations: 1.406 MB / 491.9 MB, free: 8.398 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00284/0.1236, allocations: 1.86 MB / 493.7 MB, free: 6.527 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006541/0.1301, allocations: 5.714 MB / 499.5 MB, free: 0.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1302, allocations: 0 / 499.5 MB, free: 0.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1302, allocations: 4 kB / 499.5 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001674/0.1304, allocations: 0 / 499.5 MB, free: 0.7891 MB / 366.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.01319/0.1436, allocations: 5.725 MB / 0.4933 GB, free: 11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.1436, allocations: 8.031 kB / 0.4934 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006483/0.1501, allocations: 1.829 MB / 0.4951 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003291/0.1534, allocations: 1.572 MB / 0.4967 GB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001761/0.1536, allocations: 188.6 kB / 0.4969 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006169/0.1543, allocations: 247.8 kB / 0.4971 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2028/0.357, allocations: 9.305 MB / 0.5062 GB, free: 39.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/0.3572, allocations: 30.7 kB / 0.5062 GB, free: 39.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003711/0.3576, allocations: 113.6 kB / 0.5063 GB, free: 39.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003185/0.3608, allocations: 2.077 MB / 0.5083 GB, free: 39.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01652/0.3773, allocations: 8.242 MB / 0.5164 GB, free: 36.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03371/0.411, allocations: 29.92 MB / 0.5456 GB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006765/0.4178, allocations: 3.036 MB / 0.5486 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/0.4193, allocations: 1.112 MB / 0.5497 GB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006329/0.4257, allocations: 6.276 MB / 0.5558 GB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.4257, allocations: 55.81 kB / 0.5558 GB, free: 2.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 3.376e-06/0.4258, allocations: 0 / 0.5558 GB, free: 2.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=239): time 0.02884/0.4546, allocations: 12.34 MB / 0.5679 GB, free: 5.812 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008144/0.4628, allocations: 6.937 MB / 0.5747 GB, free: 14.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004143/0.4669, allocations: 3.065 MB / 0.5777 GB, free: 11.49 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002994/0.4673, allocations: 61.7 kB / 0.5777 GB, free: 11.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001578/0.4689, allocations: 2.421 MB / 0.5801 GB, free: 8.969 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008632/0.4697, allocations: 0.8672 MB / 0.5809 GB, free: 8.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001278/0.471, allocations: 1.004 MB / 0.5819 GB, free: 7.074 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.487e-05/0.4711, allocations: 305.1 kB / 0.5822 GB, free: 6.773 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002655/0.4738, allocations: 1.71 MB / 0.5839 GB, free: 5.059 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004349/0.4781, allocations: 4.335 MB / 0.5881 GB, free: 15.44 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007626/0.4858, allocations: 6.541 MB / 0.5945 GB, free: 7.633 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.237e-05/0.4859, allocations: 24 kB / 0.5945 GB, free: 7.609 MB / 430.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01193/0.4978, allocations: 6.665 MB / 0.601 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.124e-05/0.4979, allocations: 44 kB / 0.6011 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.722e-05/0.498, allocations: 92 kB / 0.6012 GB, free: 0.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001719/0.4998, allocations: 0.7106 MB / 0.6019 GB, free: 68 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003409/0.5032, allocations: 1.072 MB / 0.6029 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01343/0.5166, allocations: 12.18 MB / 0.6148 GB, free: 2.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003608/0.5203, allocations: 295.8 kB / 0.6151 GB, free: 1.961 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000704/0.521, allocations: 303.9 kB / 0.6154 GB, free: 1.664 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.00296/0.524, allocations: 1.783 MB / 0.6171 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004851/0.5245, allocations: 292.3 kB / 0.6174 GB, free: 15.58 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00592/0.5304, allocations: 3.491 MB / 0.6208 GB, free: 12.05 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005103/0.5355, allocations: 3.032 MB / 0.6238 GB, free: 9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-05/0.5356, allocations: 8 kB / 0.6238 GB, free: 8.992 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.692e-05/0.5356, allocations: 11.95 kB / 0.6238 GB, free: 8.98 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01781/0.5534, allocations: 10.6 MB / 0.6341 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.5535, allocations: 384 / 0.6341 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.5545, allocations: 279.6 kB / 0.6344 GB, free: 13.92 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001885/0.5564, allocations: 0.7843 MB / 0.6352 GB, free: 13.13 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001541/0.5566, allocations: 47.98 kB / 0.6352 GB, free: 13.08 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0134/0.57, allocations: 12 MB / 0.6469 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006559/0.5766, allocations: 6.024 MB / 0.6528 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00772/0.5843, allocations: 5.105 MB / 0.6578 GB, free: 5.027 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/0.5855, allocations: 361.5 kB / 0.6581 GB, free: 4.652 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004136/0.586, allocations: 43.98 kB / 0.6582 GB, free: 4.609 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.5871, allocations: 111.9 kB / 0.6583 GB, free: 4.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003469/0.5875, allocations: 161.6 kB / 0.6584 GB, free: 4.344 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.5876, allocations: 72.25 kB / 0.6585 GB, free: 4.273 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00278/0.5904, allocations: 1.964 MB / 0.6604 GB, free: 2.305 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5904, allocations: 0 / 0.6604 GB, free: 2.305 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004087/0.5945, allocations: 1.001 MB / 0.6614 GB, free: 1.309 MB / 494.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.0004166/0.595, allocations: 185.5 kB / 0.6616 GB, free: 1.121 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006991/0.602, allocations: 4.874 MB / 0.6663 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.602, allocations: 3.938 kB / 0.6663 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003266/0.6053, allocations: 2.219 MB / 0.6685 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002368/0.6077, allocations: 475.1 kB / 0.669 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/0.6207, allocations: 8.612 MB / 0.6774 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003016/0.6238, allocations: 2.969 MB / 0.6803 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009107/0.6247, allocations: 263.4 kB / 0.6805 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of SimCode: time 5.91e-07/0.6247, allocations: 0 / 0.6805 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of Templates: time 0.3422/0.967, allocations: 142 MB / 0.8192 GB, free: 85.48 MB / 0.5294 GB 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)