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: "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004946/0.004946, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.001275/0.001275, allocations: 189 kB / 16.67 MB, free: 5.969 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.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04464/0.04464, allocations: 9.127 MB / 299.6 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 63.89 kB / 414.1 MB, free: 21.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08784/0.08915, allocations: 51.45 MB / 465.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01228/0.1015, allocations: 10.47 MB / 476.1 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007668/0.1092, allocations: 2.973 MB / 479 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002051/0.1113, allocations: 47.88 kB / 479.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.113, allocations: 444.9 kB / 479.5 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004234/0.1172, allocations: 1.583 MB / 481.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007687/0.118, allocations: 223.6 kB / 481.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003777/0.1218, allocations: 3.029 MB / 484.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001742/0.1236, allocations: 1.178 MB / 485.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001753/0.1253, allocations: 1.101 MB / 486.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002291/0.1276, allocations: 1.541 MB / 488.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000789/0.1285, allocations: 280 kB / 488.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001941/0.1304, allocations: 0.8777 MB / 489.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001605/0.132, allocations: 1.398 MB / 490.7 MB, free: 8.879 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002664/0.1347, allocations: 1.86 MB / 492.6 MB, free: 7.008 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006896/0.1416, allocations: 5.715 MB / 498.3 MB, free: 1.273 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.1417, allocations: 4 kB / 498.3 MB, free: 1.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1417, allocations: 0 / 498.3 MB, free: 1.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002092/0.1419, allocations: 0 / 498.3 MB, free: 1.27 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.01432/0.1562, allocations: 5.737 MB / 0.4922 GB, free: 11.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.1563, allocations: 12.03 kB / 0.4922 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001474/0.1578, allocations: 0.634 MB / 0.4928 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006901/0.1647, allocations: 1.833 MB / 0.4946 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003193/0.1679, allocations: 1.579 MB / 0.4962 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002032/0.1682, allocations: 188.6 kB / 0.4964 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008357/0.169, allocations: 243.8 kB / 0.4966 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2065/0.3755, allocations: 9.301 MB / 0.5057 GB, free: 39.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001155/0.3757, allocations: 27.8 kB / 0.5057 GB, free: 39.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004451/0.3761, allocations: 118.8 kB / 0.5058 GB, free: 39.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003597/0.3797, allocations: 2.078 MB / 0.5078 GB, free: 39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01855/0.3983, allocations: 8.243 MB / 0.5159 GB, free: 36.26 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03701/0.4354, allocations: 29.92 MB / 0.5451 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006803/0.4422, allocations: 3.035 MB / 0.5481 GB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001545/0.4438, allocations: 1.114 MB / 0.5492 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006687/0.4505, allocations: 6.285 MB / 0.5553 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.4506, allocations: 51.81 kB / 0.5553 GB, free: 1.887 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 5.651e-06/0.4506, allocations: 4 kB / 0.5553 GB, free: 1.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=239): time 0.03046/0.4811, allocations: 12.3 MB / 0.5674 GB, free: 5.418 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01063/0.4917, allocations: 9.3 MB / 0.5764 GB, free: 11.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00415/0.4959, allocations: 3.088 MB / 0.5795 GB, free: 8.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002917/0.4962, allocations: 53.7 kB / 0.5795 GB, free: 8.512 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001565/0.4978, allocations: 2.425 MB / 0.5819 GB, free: 6.055 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008915/0.4987, allocations: 0.8632 MB / 0.5827 GB, free: 5.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001278/0.5, allocations: 1 MB / 0.5837 GB, free: 4.168 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.5001, allocations: 305.2 kB / 0.584 GB, free: 3.867 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002691/0.5028, allocations: 1.693 MB / 0.5856 GB, free: 2.168 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004191/0.507, allocations: 4.312 MB / 0.5898 GB, free: 12.57 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007727/0.5148, allocations: 6.502 MB / 0.5962 GB, free: 4.801 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-05/0.5149, allocations: 28.88 kB / 0.5962 GB, free: 4.773 MB / 430.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01292/0.5278, allocations: 6.629 MB / 0.6027 GB, free: 14.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/0.528, allocations: 44 kB / 0.6027 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000154/0.5281, allocations: 92 kB / 0.6028 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001956/0.5301, allocations: 0.7318 MB / 0.6035 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003784/0.5339, allocations: 1.077 MB / 0.6046 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01504/0.549, allocations: 13.59 MB / 0.6179 GB, free: 13.87 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004016/0.553, allocations: 299.8 kB / 0.6182 GB, free: 13.58 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009135/0.554, allocations: 292 kB / 0.6184 GB, free: 13.29 MB / 462.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): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,9,100.0%), (2,17,100.0%), (1,1,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.003725/0.5577, allocations: 1.784 MB / 0.6202 GB, free: 11.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007778/0.5585, allocations: 296.3 kB / 0.6205 GB, free: 11.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00703/0.5656, allocations: 3.432 MB / 0.6238 GB, free: 7.738 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005452/0.5711, allocations: 2.974 MB / 0.6267 GB, free: 4.742 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.622e-05/0.5711, allocations: 4 kB / 0.6267 GB, free: 4.738 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.35e-05/0.5712, allocations: 19.95 kB / 0.6267 GB, free: 4.719 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01965/0.5908, allocations: 10.47 MB / 0.637 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/0.5909, allocations: 7.984 kB / 0.637 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.5919, allocations: 271.6 kB / 0.6372 GB, free: 9.785 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00207/0.594, allocations: 0.7886 MB / 0.638 GB, free: 8.98 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001891/0.5942, allocations: 43.98 kB / 0.638 GB, free: 8.938 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01912/0.6134, allocations: 13.47 MB / 0.6512 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0122/0.6256, allocations: 5.982 MB / 0.657 GB, free: 4.504 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01456/0.6402, allocations: 5.016 MB / 0.6619 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001316/0.6416, allocations: 361.4 kB / 0.6623 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009604/0.6426, allocations: 43.98 kB / 0.6623 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00256/0.6452, allocations: 111.8 kB / 0.6624 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006392/0.6459, allocations: 161.7 kB / 0.6626 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002959/0.6462, allocations: 63.98 kB / 0.6626 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005905/0.6521, allocations: 1.972 MB / 0.6646 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8.32e-07/0.6522, allocations: 0 / 0.6646 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007934/0.6601, allocations: 0.9869 MB / 0.6655 GB, free: 11.7 MB / 0.4981 GB 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 (159): * Single equations (assignments): 150 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,7,100.0%), (2,15,100.0%), (1,1,100.0%), (3,13,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01462/0.6748, allocations: 5.697 MB / 0.6711 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009565/0.6844, allocations: 4.858 MB / 0.6758 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/0.6844, allocations: 1.438 kB / 0.6758 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003445/0.6879, allocations: 2.189 MB / 0.678 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003062/0.691, allocations: 486.1 kB / 0.6784 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2552/0.9462, allocations: 36.04 MB / 0.7136 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00368/0.9499, allocations: 2.96 MB / 0.7165 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003284/0.9533, allocations: 1.383 MB / 0.7179 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001925/0.9552, allocations: 1.635 MB / 0.7195 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of SimCode: time 9.91e-07/0.9552, allocations: 0 / 0.7195 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1301/1.085, allocations: 66.23 MB / 0.7842 GB, free: 120.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.36/21.45, allocations: 5.922 kB / 0.7842 GB, free: 120.9 MB / 0.5294 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)