Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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: translateModel(PlanarMechanics.Examples.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") translateModel(PlanarMechanics.Examples.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009633/0.009633, allocations: 172 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.595/1.595, allocations: 223.2 MB / 239 MB, free: 1.77 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.00089/0.0008899, allocations: 94.55 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03999/0.04, allocations: 8.942 MB / 350.3 MB, free: 2.055 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004129/0.0004131, allocations: 9.734 kB / 413.1 MB, free: 88.55 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1145, allocations: 52.4 MB / 465.5 MB, free: 41.69 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3476/0.4621, allocations: 88.58 MB / 0.5411 GB, free: 16.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000189/0.4623, allocations: 75.62 kB / 0.5412 GB, free: 16.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1712/0.6335, allocations: 74.26 MB / 0.6137 GB, free: 3.359 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.6336, allocations: 0 / 0.6137 GB, free: 3.359 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000148/0.6338, allocations: 60 kB / 0.6138 GB, free: 3.301 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.01697/0.6507, allocations: 4.034 MB / 0.6177 GB, free: 15.51 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.6508, allocations: 12.03 kB / 0.6177 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01031/0.6611, allocations: 2.011 MB / 0.6197 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007408/0.6686, allocations: 1.929 MB / 0.6216 GB, free: 12.01 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003643/0.669, allocations: 267.2 kB / 0.6218 GB, free: 11.83 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002618/0.6716, allocations: 345.1 kB / 0.6221 GB, free: 11.58 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02898/0.7006, allocations: 8.892 MB / 0.6308 GB, free: 3.031 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002801/0.701, allocations: 31.72 kB / 0.6309 GB, free: 3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002408/0.7034, allocations: 163.9 kB / 0.631 GB, free: 2.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002127/0.7056, allocations: 1.033 MB / 0.632 GB, free: 1.805 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02117/0.7267, allocations: 8.163 MB / 0.64 GB, free: 9.629 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05702/0.7838, allocations: 29.98 MB / 0.6693 GB, free: 11.01 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008684/0.7926, allocations: 3.05 MB / 0.6723 GB, free: 7.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01122/0.8038, allocations: 6.284 MB / 0.6784 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.557e-05/0.8039, allocations: 51.83 kB / 0.6784 GB, free: 0.832 MB / 442.7 MB Notification: Performance of pre-optimization done (n=181): time 4.358e-06/0.804, allocations: 0 / 0.6784 GB, free: 0.832 MB / 442.7 MB Notification: Performance of matching and sorting (n=235): time 0.02439/0.8284, allocations: 8.484 MB / 0.6867 GB, free: 8.223 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.8285, allocations: 73.41 kB / 0.6868 GB, free: 8.137 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005486/0.834, allocations: 2.692 MB / 0.6894 GB, free: 5.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000287/0.8343, allocations: 65.69 kB / 0.6895 GB, free: 5.359 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001934/0.8362, allocations: 2.413 MB / 0.6918 GB, free: 2.914 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009954/0.8372, allocations: 0.8479 MB / 0.6927 GB, free: 2.055 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004116/0.8376, allocations: 96 kB / 0.6928 GB, free: 1.961 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004161/0.8381, allocations: 0.5169 MB / 0.6933 GB, free: 1.438 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2139/1.052, allocations: 1.601 MB / 0.6948 GB, free: 109.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005888/1.058, allocations: 4.192 MB / 0.6989 GB, free: 106.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005194/1.063, allocations: 2.596 MB / 0.7015 GB, free: 106.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.932e-05/1.063, allocations: 26.53 kB / 0.7015 GB, free: 106.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.0162/1.079, allocations: 6.394 MB / 0.7077 GB, free: 106.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001463/1.08, allocations: 43.75 kB / 0.7078 GB, free: 106.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001516/1.08, allocations: 91.69 kB / 0.7079 GB, free: 106.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00245/1.082, allocations: 0.7029 MB / 0.7085 GB, free: 106.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004016/1.086, allocations: 1.047 MB / 0.7096 GB, free: 106.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0168/1.103, allocations: 12.64 MB / 0.7219 GB, free: 99.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004969/1.108, allocations: 252.9 kB / 0.7221 GB, free: 99.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00129/1.109, allocations: 287.8 kB / 0.7224 GB, free: 99.3 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 (583): * Single equations (assignments): 574 * 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%) 9,(2,100.0%) 17,(2,100.0%) 10,(1,100.0%) 1} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.004569/1.114, allocations: 1.793 MB / 0.7242 GB, free: 99.09 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006446/1.115, allocations: 281.3 kB / 0.7244 GB, free: 99.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006349/1.121, allocations: 3.104 MB / 0.7275 GB, free: 98.88 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002028/1.121, allocations: 38.41 kB / 0.7275 GB, free: 98.88 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-05/1.121, allocations: 5.375 kB / 0.7275 GB, free: 98.88 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-05/1.121, allocations: 15.3 kB / 0.7275 GB, free: 98.88 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02152/1.143, allocations: 8.244 MB / 0.7356 GB, free: 97.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.765e-05/1.143, allocations: 3.656 kB / 0.7356 GB, free: 97.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00166/1.145, allocations: 297.7 kB / 0.7359 GB, free: 97.55 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001678/1.146, allocations: 0.5095 MB / 0.7364 GB, free: 97.41 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002238/1.147, allocations: 42.31 kB / 0.7364 GB, free: 97.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01257/1.159, allocations: 10.89 MB / 0.747 GB, free: 89.06 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.223e-06/1.159, allocations: 6.906 kB / 0.747 GB, free: 89.06 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00959/1.169, allocations: 4.971 MB / 0.7519 GB, free: 86.68 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001511/1.17, allocations: 369.1 kB / 0.7522 GB, free: 86.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009255/1.171, allocations: 39.88 kB / 0.7523 GB, free: 86.37 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001767/1.173, allocations: 97.23 kB / 0.7524 GB, free: 86.35 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000369/1.174, allocations: 148.5 kB / 0.7525 GB, free: 86.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001753/1.174, allocations: 64.86 kB / 0.7526 GB, free: 86.31 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00425/1.178, allocations: 1.909 MB / 0.7544 GB, free: 85.61 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.51e-07/1.178, allocations: 0 / 0.7544 GB, free: 85.61 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007386/1.185, allocations: 0.9115 MB / 0.7553 GB, free: 85.49 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.w) * 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 (171): * Single equations (assignments): 162 * 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,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007197/1.186, allocations: 188.6 kB / 0.7555 GB, free: 85.36 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01042/1.197, allocations: 4.656 MB / 0.7601 GB, free: 83.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/1.197, allocations: 0 / 0.7601 GB, free: 83.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004049/1.201, allocations: 1.978 MB / 0.762 GB, free: 82.32 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003129/1.204, allocations: 412.4 kB / 0.7624 GB, free: 82.18 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01958/1.224, allocations: 9.402 MB / 0.7716 GB, free: 77.15 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004655/1.228, allocations: 3.006 MB / 0.7745 GB, free: 74.86 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005712/1.234, allocations: 1.373 MB / 0.7758 GB, free: 74 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008667/1.235, allocations: 209.8 kB / 0.776 GB, free: 73.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.062e-06/1.235, allocations: 0 / 0.776 GB, free: 73.8 MB / 458.7 MB Notification: Performance of Templates: time 0.06434/1.299, allocations: 33.42 MB / 0.8087 GB, free: 50.01 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1)