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.009905/0.009906, allocations: 97.41 kB / 15.73 MB, free: 6.039 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.002004/0.002004, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1451/0.1451, allocations: 9.113 MB / 299.6 MB, free: 1.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002158, allocations: 67.89 kB / 414.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.247, allocations: 51.43 MB / 465.6 MB, free: 17.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.009102/0.2561, allocations: 10.47 MB / 476.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005878/0.262, allocations: 2.974 MB / 479 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.2636, allocations: 46.22 kB / 479.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.2648, allocations: 444.4 kB / 479.5 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004051/0.2689, allocations: 1.583 MB / 481.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007568/0.2697, allocations: 223.3 kB / 481.3 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004379/0.2741, allocations: 3.015 MB / 484.3 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001969/0.2761, allocations: 1.191 MB / 485.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00204/0.2781, allocations: 1.093 MB / 486.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00239/0.2805, allocations: 1.544 MB / 488.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006735/0.2812, allocations: 276.2 kB / 488.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001694/0.2829, allocations: 0.8766 MB / 489.3 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001303/0.2843, allocations: 1.394 MB / 490.7 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001951/0.2862, allocations: 1.867 MB / 492.6 MB, free: 4 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008891/0.2951, allocations: 5.74 MB / 498.3 MB, free: 11.42 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.2952, allocations: 0 / 498.3 MB, free: 11.42 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2952, allocations: 0 / 498.3 MB, free: 11.42 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001703/0.2953, allocations: 0 / 498.3 MB, free: 11.42 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.01497/0.3103, allocations: 5.839 MB / 0.4923 GB, free: 5.508 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.3104, allocations: 8.031 kB / 0.4923 GB, free: 5.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001058/0.3115, allocations: 0.6301 MB / 0.4929 GB, free: 4.859 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007105/0.3186, allocations: 1.863 MB / 0.4948 GB, free: 2.992 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002955/0.3215, allocations: 1.588 MB / 0.4963 GB, free: 1.359 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002046/0.3218, allocations: 184.6 kB / 0.4965 GB, free: 1.176 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005921/0.3224, allocations: 251.7 kB / 0.4967 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01582/0.3382, allocations: 9.311 MB / 0.5058 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.444e-05/0.3383, allocations: 27.77 kB / 0.5058 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003559/0.3387, allocations: 115.8 kB / 0.506 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0035/0.3422, allocations: 2.087 MB / 0.508 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01742/0.3596, allocations: 8.229 MB / 0.516 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04441/0.4041, allocations: 30 MB / 0.5453 GB, free: 14.03 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008079/0.4122, allocations: 3.033 MB / 0.5483 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002081/0.4143, allocations: 1.116 MB / 0.5494 GB, free: 9.762 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009475/0.4238, allocations: 6.293 MB / 0.5555 GB, free: 2.805 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.822e-05/0.4239, allocations: 47.88 kB / 0.5556 GB, free: 2.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.017e-06/0.4239, allocations: 0 / 0.5556 GB, free: 2.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.03278/0.4567, allocations: 12.38 MB / 0.5677 GB, free: 6.215 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01214/0.4689, allocations: 9.294 MB / 0.5767 GB, free: 12.45 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005388/0.4743, allocations: 3.089 MB / 0.5797 GB, free: 9.34 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003287/0.4747, allocations: 61.69 kB / 0.5798 GB, free: 9.273 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002141/0.4768, allocations: 2.525 MB / 0.5823 GB, free: 6.727 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00116/0.478, allocations: 0.899 MB / 0.5831 GB, free: 5.82 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002051/0.4801, allocations: 1.009 MB / 0.5841 GB, free: 4.801 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.4802, allocations: 305.1 kB / 0.5844 GB, free: 4.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003282/0.4835, allocations: 1.689 MB / 0.5861 GB, free: 2.805 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2042/0.6877, allocations: 4.313 MB / 0.5903 GB, free: 106.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007169/0.6949, allocations: 6.501 MB / 0.5966 GB, free: 102.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001103/0.6951, allocations: 25.97 kB / 0.5967 GB, free: 102.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01154/0.7066, allocations: 6.65 MB / 0.6032 GB, free: 99.84 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.75e-05/0.7067, allocations: 49.5 kB / 0.6032 GB, free: 99.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001214/0.7069, allocations: 90.09 kB / 0.6033 GB, free: 99.83 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001754/0.7086, allocations: 0.7251 MB / 0.604 GB, free: 99.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003085/0.7117, allocations: 1.074 MB / 0.605 GB, free: 99.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01208/0.7238, allocations: 13.62 MB / 0.6183 GB, free: 89.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003354/0.7272, allocations: 291.1 kB / 0.6186 GB, free: 89.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004683/0.7277, allocations: 293.4 kB / 0.6189 GB, free: 89.5 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.002396/0.7301, allocations: 1.795 MB / 0.6207 GB, free: 88.64 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003775/0.7305, allocations: 301.2 kB / 0.6209 GB, free: 88.64 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005066/0.7355, allocations: 3.436 MB / 0.6243 GB, free: 87.37 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003985/0.7395, allocations: 2.969 MB / 0.6272 GB, free: 86.36 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.911e-05/0.7396, allocations: 7.531 kB / 0.6272 GB, free: 86.36 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/0.7396, allocations: 15.77 kB / 0.6272 GB, free: 86.35 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01432/0.7539, allocations: 10.49 MB / 0.6375 GB, free: 81.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.754, allocations: 4.656 kB / 0.6375 GB, free: 81.01 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009318/0.7549, allocations: 267.7 kB / 0.6377 GB, free: 80.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001747/0.7567, allocations: 0.783 MB / 0.6385 GB, free: 79.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001775/0.7569, allocations: 47.98 kB / 0.6385 GB, free: 79.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01082/0.7677, allocations: 13.48 MB / 0.6517 GB, free: 65.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005391/0.7731, allocations: 6.003 MB / 0.6576 GB, free: 59.58 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006894/0.7801, allocations: 5.041 MB / 0.6625 GB, free: 54.46 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007991/0.7809, allocations: 377.2 kB / 0.6628 GB, free: 54.08 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006586/0.7816, allocations: 39.98 kB / 0.6629 GB, free: 54.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001425/0.783, allocations: 111.9 kB / 0.663 GB, free: 53.93 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003746/0.7834, allocations: 160.9 kB / 0.6631 GB, free: 53.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001555/0.7836, allocations: 63.98 kB / 0.6632 GB, free: 53.71 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003018/0.7866, allocations: 1.976 MB / 0.6651 GB, free: 51.73 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.7866, allocations: 7.938 kB / 0.6651 GB, free: 51.72 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004761/0.7914, allocations: 0.9884 MB / 0.6661 GB, free: 50.74 MB / 462.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 (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.00635/0.7978, allocations: 5.702 MB / 0.6717 GB, free: 44.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006219/0.804, allocations: 4.866 MB / 0.6764 GB, free: 40.07 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/0.8041, allocations: 0 / 0.6764 GB, free: 40.07 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002521/0.8066, allocations: 2.183 MB / 0.6786 GB, free: 37.82 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002342/0.809, allocations: 473.4 kB / 0.679 GB, free: 37.37 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04304/0.852, allocations: 36.23 MB / 0.7144 GB, free: 13.36 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0042/0.8563, allocations: 2.961 MB / 0.7173 GB, free: 10.36 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003339/0.8596, allocations: 1.382 MB / 0.7186 GB, free: 8.977 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002779/0.8624, allocations: 1.632 MB / 0.7202 GB, free: 7.344 MB / 478.1 MB Notification: Performance of SimCode: time 1.022e-06/0.8624, allocations: 0 / 0.7202 GB, free: 7.344 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1425/1.005, allocations: 65.17 MB / 0.7839 GB, free: 6.469 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.27/22.28, allocations: 6.859 kB / 0.7839 GB, free: 6.465 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)