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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.004774/0.004774, allocations: 171.6 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.194/1.194, allocations: 223.2 MB / 239 MB, free: 1.809 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008435/0.0008434, allocations: 95.42 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03947/0.03947, allocations: 8.942 MB / 350.3 MB, free: 2.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003332/0.0003332, allocations: 12.56 kB / 413.2 MB, free: 88.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07892/0.07927, allocations: 52.39 MB / 465.6 MB, free: 41.61 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2642/0.3435, allocations: 88.55 MB / 0.5412 GB, free: 15.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.3437, allocations: 78.7 kB / 0.5412 GB, free: 15.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1588/0.5025, allocations: 74.22 MB / 0.6137 GB, free: 2.969 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5026, allocations: 0 / 0.6137 GB, free: 2.969 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001625/0.5028, allocations: 60 kB / 0.6138 GB, free: 2.91 MB / 378.7 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.01528/0.518, allocations: 4.036 MB / 0.6177 GB, free: 15.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.5181, allocations: 8.031 kB / 0.6177 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002461/0.5206, allocations: 0.6801 MB / 0.6184 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009017/0.5296, allocations: 2.011 MB / 0.6204 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005549/0.5352, allocations: 1.925 MB / 0.6222 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002822/0.5355, allocations: 270.8 kB / 0.6225 GB, free: 11 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001774/0.5373, allocations: 356.6 kB / 0.6228 GB, free: 10.74 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01926/0.5565, allocations: 8.88 MB / 0.6315 GB, free: 2.25 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000172/0.5568, allocations: 39.73 kB / 0.6315 GB, free: 2.211 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001295/0.5581, allocations: 159.9 kB / 0.6317 GB, free: 2.055 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001609/0.5597, allocations: 1.033 MB / 0.6327 GB, free: 1.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01566/0.5754, allocations: 8.163 MB / 0.6407 GB, free: 8.848 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0414/0.6168, allocations: 29.98 MB / 0.6699 GB, free: 10.23 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007285/0.6241, allocations: 3.042 MB / 0.6729 GB, free: 7.066 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009113/0.6333, allocations: 6.307 MB / 0.6791 GB, free: 96 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/0.6333, allocations: 47.88 kB / 0.6791 GB, free: 40 kB / 442.7 MB Notification: Performance of pre-optimization done (n=181): time 4.548e-06/0.6333, allocations: 0 / 0.6791 GB, free: 40 kB / 442.7 MB Notification: Performance of matching and sorting (n=241): time 0.02992/0.6633, allocations: 12.38 MB / 0.6912 GB, free: 3.445 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1756/0.8389, allocations: 6.575 MB / 0.6976 GB, free: 109.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003569/0.8425, allocations: 2.692 MB / 0.7003 GB, free: 109.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002814/0.8428, allocations: 63.38 kB / 0.7003 GB, free: 109.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009635/0.8438, allocations: 2.416 MB / 0.7027 GB, free: 108.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005292/0.8443, allocations: 0.8713 MB / 0.7035 GB, free: 108.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.8445, allocations: 107.8 kB / 0.7036 GB, free: 108.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.8447, allocations: 0.5128 MB / 0.7041 GB, free: 107.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002129/0.8468, allocations: 1.655 MB / 0.7058 GB, free: 107.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002691/0.8495, allocations: 4.264 MB / 0.7099 GB, free: 104.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002921/0.8525, allocations: 2.66 MB / 0.7125 GB, free: 104.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.741e-05/0.8525, allocations: 25.09 kB / 0.7125 GB, free: 104.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.009199/0.8617, allocations: 6.553 MB / 0.7189 GB, free: 104 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.979e-05/0.8618, allocations: 47.09 kB / 0.719 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.307e-05/0.8619, allocations: 87.62 kB / 0.7191 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001561/0.8635, allocations: 0.7016 MB / 0.7197 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003023/0.8665, allocations: 1.063 MB / 0.7208 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/0.8773, allocations: 12.62 MB / 0.7331 GB, free: 96.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003374/0.8807, allocations: 280.4 kB / 0.7334 GB, free: 96.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004249/0.8811, allocations: 300.7 kB / 0.7337 GB, free: 96.98 MB / 458.7 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 (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.002713/0.8838, allocations: 1.793 MB / 0.7354 GB, free: 96.75 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003346/0.8842, allocations: 283.8 kB / 0.7357 GB, free: 96.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004655/0.8888, allocations: 3.411 MB / 0.739 GB, free: 95.74 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003784/0.8926, allocations: 2.936 MB / 0.7419 GB, free: 94.73 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.8926, allocations: 10.94 kB / 0.7419 GB, free: 94.73 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/0.8927, allocations: 11.2 kB / 0.7419 GB, free: 94.73 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01387/0.9065, allocations: 10.56 MB / 0.7522 GB, free: 90.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.9066, allocations: 3.938 kB / 0.7522 GB, free: 90.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009321/0.9075, allocations: 279.2 kB / 0.7525 GB, free: 90.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001562/0.9091, allocations: 0.7202 MB / 0.7532 GB, free: 90.27 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.9092, allocations: 46.94 kB / 0.7532 GB, free: 90.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0102/0.9194, allocations: 12.55 MB / 0.7655 GB, free: 81.33 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004771/0.9242, allocations: 5.825 MB / 0.7712 GB, free: 77.35 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00591/0.9301, allocations: 5.228 MB / 0.7763 GB, free: 74.44 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006597/0.9308, allocations: 373 kB / 0.7766 GB, free: 74.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002773/0.9311, allocations: 37.56 kB / 0.7767 GB, free: 74.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009979/0.9321, allocations: 111.6 kB / 0.7768 GB, free: 73.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/0.9323, allocations: 164.9 kB / 0.7769 GB, free: 73.87 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.9325, allocations: 69.16 kB / 0.777 GB, free: 73.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002336/0.9348, allocations: 1.899 MB / 0.7789 GB, free: 72.22 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.9348, allocations: 0 / 0.7789 GB, free: 72.22 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003548/0.9384, allocations: 0.9958 MB / 0.7798 GB, free: 71.23 MB / 458.7 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 (160): * Single equations (assignments): 151 * 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.006005/0.9444, allocations: 6.63 MB / 0.7863 GB, free: 65.16 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005594/0.95, allocations: 4.778 MB / 0.791 GB, free: 60.89 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.95, allocations: 0 / 0.791 GB, free: 60.89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002185/0.9522, allocations: 2.162 MB / 0.7931 GB, free: 58.91 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.9538, allocations: 420.2 kB / 0.7935 GB, free: 58.58 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2167/1.171, allocations: 89.06 MB / 0.8805 GB, free: 111.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00304/1.174, allocations: 3.042 MB / 0.8834 GB, free: 110.4 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0032/1.177, allocations: 1.407 MB / 0.8848 GB, free: 110.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001544/1.178, allocations: 1.626 MB / 0.8864 GB, free: 110.4 MB / 474.7 MB Notification: Performance of SimCode: time 8.52e-07/1.178, allocations: 0 / 0.8864 GB, free: 110.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09231/1.271, allocations: 70.75 MB / 0.9555 GB, free: 74.09 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001269/1.271, allocations: 220.7 kB / 0.9557 GB, free: 73.86 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.564/4.835, allocations: 0 / 0.9557 GB, free: 73.86 MB / 474.7 MB (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/linux/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)