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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003693/0.003693, allocations: 178.3 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 221.4 MB / 229.3 MB, free: 3.074 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.001015/0.001015, allocations: 89.55 kB / 280.1 MB, free: 1.32 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04361/0.04361, allocations: 8.835 MB / 339.7 MB, free: 5.773 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.21e-06/5.25e-06, allocations: 0 / 398.1 MB, free: 67.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06788/0.0679, allocations: 52.39 MB / 450.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2266/0.2945, allocations: 88.13 MB / 0.526 GB, free: 5.383 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000174/0.2947, allocations: 71.72 kB / 0.5261 GB, free: 5.352 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.195/0.4898, allocations: 71.52 MB / 0.5959 GB, free: 4.781 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001467/0.49, allocations: 64 kB / 0.596 GB, free: 4.719 MB / 410.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.01463/0.5046, allocations: 3.956 MB / 0.5999 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.5047, allocations: 8.031 kB / 0.5999 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009969/0.5146, allocations: 1.676 MB / 0.6015 GB, free: 15.01 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004493/0.5192, allocations: 1.93 MB / 0.6034 GB, free: 13.03 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001534/0.5193, allocations: 112 kB / 0.6035 GB, free: 12.92 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001095/0.5204, allocations: 203.9 kB / 0.6037 GB, free: 12.72 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009915/0.5304, allocations: 6.121 MB / 0.6097 GB, free: 6.598 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01542/0.5458, allocations: 8.187 MB / 0.6177 GB, free: 13.94 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001624/0.546, allocations: 27.72 kB / 0.6177 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001024/0.547, allocations: 12 kB / 0.6177 GB, free: 13.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001532/0.5486, allocations: 1.088 MB / 0.6188 GB, free: 12.81 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1541/0.7027, allocations: 29.68 MB / 0.6477 GB, free: 167.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00176/0.7045, allocations: 1.359 MB / 0.6491 GB, free: 167.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001218/0.7057, allocations: 0.9751 MB / 0.65 GB, free: 167.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00584/0.7116, allocations: 5.422 MB / 0.6553 GB, free: 164.5 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.7116, allocations: 47.84 kB / 0.6554 GB, free: 164.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 4.158e-06/0.7116, allocations: 3.562 kB / 0.6554 GB, free: 164.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=233): time 0.01257/0.7242, allocations: 5.779 MB / 0.661 GB, free: 163.9 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.7244, allocations: 74.34 kB / 0.6611 GB, free: 163.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00301/0.7274, allocations: 2.227 MB / 0.6633 GB, free: 163.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001639/0.7276, allocations: 25.7 kB / 0.6633 GB, free: 163.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009688/0.7285, allocations: 2.395 MB / 0.6656 GB, free: 162.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005286/0.7291, allocations: 0.8124 MB / 0.6664 GB, free: 161.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/0.7293, allocations: 3.938 kB / 0.6664 GB, free: 161.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003013/0.7297, allocations: 0.5789 MB / 0.667 GB, free: 161.3 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002129/0.7318, allocations: 1.595 MB / 0.6685 GB, free: 161.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002879/0.7347, allocations: 4.317 MB / 0.6728 GB, free: 157.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002999/0.7377, allocations: 2.689 MB / 0.6754 GB, free: 157.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-05/0.7377, allocations: 27 kB / 0.6754 GB, free: 157.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=687) (initialization): time 0.008709/0.7465, allocations: 5.966 MB / 0.6812 GB, free: 157.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.7465, allocations: 10.72 kB / 0.6812 GB, free: 157.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-05/0.7466, allocations: 98.41 kB / 0.6813 GB, free: 157.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001708/0.7483, allocations: 0.7044 MB / 0.682 GB, free: 157.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003306/0.7516, allocations: 1.094 MB / 0.6831 GB, free: 157.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/0.762, allocations: 11.41 MB / 0.6942 GB, free: 150.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003483/0.7656, allocations: 136.7 kB / 0.6944 GB, free: 150.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004397/0.766, allocations: 304.2 kB / 0.6947 GB, free: 150.1 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedTranslation2.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real fixedTranslation1.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 437 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (611): * Single equations (assignments): 602 * 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.0006386/0.7667, allocations: 351.5 kB / 0.695 GB, free: 149.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003145/0.767, allocations: 245.9 kB / 0.6952 GB, free: 149.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004471/0.7715, allocations: 2.909 MB / 0.6981 GB, free: 148.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001302/0.7716, allocations: 30.22 kB / 0.6981 GB, free: 148.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.7716, allocations: 3.938 kB / 0.6981 GB, free: 148.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.906e-05/0.7717, allocations: 10.17 kB / 0.6981 GB, free: 148.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/0.7828, allocations: 7.059 MB / 0.705 GB, free: 145.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.7829, allocations: 1.406 kB / 0.705 GB, free: 145.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.7842, allocations: 293.6 kB / 0.7053 GB, free: 145.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001376/0.7856, allocations: 0.5082 MB / 0.7058 GB, free: 145.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000119/0.7857, allocations: 15.03 kB / 0.7058 GB, free: 145.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008572/0.7943, allocations: 9.984 MB / 0.7155 GB, free: 137 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.7943, allocations: 7.906 kB / 0.7155 GB, free: 137 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006201/0.8005, allocations: 4.647 MB / 0.7201 GB, free: 132.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006388/0.8012, allocations: 320 kB / 0.7204 GB, free: 132.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004588/0.8017, allocations: 4 kB / 0.7204 GB, free: 132.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.8028, allocations: 38.16 kB / 0.7204 GB, free: 132.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.803, allocations: 115.3 kB / 0.7205 GB, free: 132.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.8031, allocations: 59.84 kB / 0.7206 GB, free: 132.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001842/0.8049, allocations: 1.481 MB / 0.722 GB, free: 130.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003819/0.8088, allocations: 0.7708 MB / 0.7228 GB, free: 130.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 160 * 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.0003558/0.8091, allocations: 152 kB / 0.7229 GB, free: 130 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005263/0.8144, allocations: 4.405 MB / 0.7272 GB, free: 126 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.8144, allocations: 0 / 0.7272 GB, free: 126 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002054/0.8165, allocations: 1.807 MB / 0.729 GB, free: 124.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.8177, allocations: 238 kB / 0.7292 GB, free: 124.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.8287, allocations: 6.444 MB / 0.7355 GB, free: 118.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003913/0.8327, allocations: 3.214 MB / 0.7387 GB, free: 115.8 MB / 458.7 MB Notification: Performance of SimCode: time 1.122e-06/0.8327, allocations: 0 / 0.7387 GB, free: 115.8 MB / 458.7 MB Notification: Performance of Templates: time 0.05411/0.8868, allocations: 32.49 MB / 0.7704 GB, free: 89.74 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)