Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2") [: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 3.2.1+maint.om/package.mo): time 0.003728/0.003728, allocations: 173.1 kB / 7.447 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.221/1.221, allocations: 170.6 MB / 178.4 MB, free: 15.4 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001907/0.001907, allocations: 128.3 kB / 217.7 MB, free: 8.16 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1856/0.1856, allocations: 37.97 MB / 294.8 MB, free: 9.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.047e-06/9.077e-06, allocations: 1.781 kB / 349.5 MB, free: 37.06 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1244, allocations: 48.71 MB / 398.2 MB, free: 5.695 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3856/0.5101, allocations: 90.81 MB / 489 MB, free: 13.33 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.5105, allocations: 74.47 kB / 489.1 MB, free: 13.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.2151/0.7256, allocations: 76.26 MB / 0.5521 GB, free: 208 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003068/0.7259, allocations: 68 kB / 0.5522 GB, free: 140 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.01724/0.7432, allocations: 3.499 MB / 0.5556 GB, free: 12.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.614e-05/0.7433, allocations: 16.02 kB / 0.5556 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01993/0.7632, allocations: 3.968 MB / 0.5595 GB, free: 8.586 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01502/0.7783, allocations: 4.406 MB / 0.5638 GB, free: 4.156 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003023/0.7787, allocations: 123.9 kB / 0.5639 GB, free: 4.035 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002827/0.7815, allocations: 215.9 kB / 0.5641 GB, free: 3.824 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01379/0.7953, allocations: 5.363 MB / 0.5693 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02505/0.8205, allocations: 8.47 MB / 0.5776 GB, free: 5.004 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004331/0.821, allocations: 59.45 kB / 0.5777 GB, free: 4.945 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002161/0.8232, allocations: 28 kB / 0.5777 GB, free: 4.918 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001673/0.8249, allocations: 0.9544 MB / 0.5786 GB, free: 3.961 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2819/1.107, allocations: 41.46 MB / 0.6191 GB, free: 112.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002756/1.11, allocations: 2.542 MB / 0.6216 GB, free: 111.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001268/1.111, allocations: 1.19 MB / 0.6227 GB, free: 111.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006933/1.118, allocations: 4.443 MB / 0.6271 GB, free: 110.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/1.118, allocations: 48 kB / 0.6271 GB, free: 110.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=106): time 4.238e-06/1.118, allocations: 0 / 0.6271 GB, free: 110.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=121): time 0.01751/1.135, allocations: 8.823 MB / 0.6357 GB, free: 108 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.298e-05/1.135, allocations: 198 kB / 0.6359 GB, free: 107.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004679/1.14, allocations: 3.072 MB / 0.6389 GB, free: 107.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001495/1.14, allocations: 25.7 kB / 0.639 GB, free: 107.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001541/1.142, allocations: 2.894 MB / 0.6418 GB, free: 105.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004987/1.142, allocations: 0.4927 MB / 0.6423 GB, free: 105.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/1.143, allocations: 2.594 kB / 0.6423 GB, free: 105.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003017/1.143, allocations: 0.5529 MB / 0.6428 GB, free: 105.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002036/1.145, allocations: 1.563 MB / 0.6443 GB, free: 105.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004152/1.149, allocations: 5.526 MB / 0.6497 GB, free: 99.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003874/1.153, allocations: 2.962 MB / 0.6526 GB, free: 99.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.326e-05/1.153, allocations: 39.06 kB / 0.6527 GB, free: 99.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=777) (initialization): time 0.01091/1.164, allocations: 6.21 MB / 0.6587 GB, free: 99.49 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/1.164, allocations: 6.594 kB / 0.6587 GB, free: 99.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002137/1.164, allocations: 141.5 kB / 0.6589 GB, free: 99.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009353/1.165, allocations: 369.4 kB / 0.6592 GB, free: 99.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005149/1.17, allocations: 1.377 MB / 0.6606 GB, free: 99.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003048/1.174, allocations: 2.599 MB / 0.6631 GB, free: 97.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005699/1.179, allocations: 182.2 kB / 0.6633 GB, free: 97.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001109/1.18, allocations: 389.9 kB / 0.6636 GB, free: 97.97 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 738 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009193/1.181, allocations: 446.5 kB / 0.6641 GB, free: 97.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006966/1.182, allocations: 299.8 kB / 0.6644 GB, free: 97.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002568/1.185, allocations: 1.428 MB / 0.6658 GB, free: 97.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.45e-05/1.185, allocations: 10.59 kB / 0.6658 GB, free: 97.38 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/1.185, allocations: 3.594 kB / 0.6658 GB, free: 97.38 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/1.185, allocations: 3.75 kB / 0.6658 GB, free: 97.38 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008369/1.193, allocations: 4.082 MB / 0.6698 GB, free: 96.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/1.193, allocations: 3.75 kB / 0.6698 GB, free: 96.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/1.194, allocations: 177 kB / 0.6699 GB, free: 96.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004852/1.195, allocations: 148.6 kB / 0.6701 GB, free: 96.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.27e-05/1.195, allocations: 7.031 kB / 0.6701 GB, free: 96.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001988/1.197, allocations: 2.024 MB / 0.6721 GB, free: 94.89 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/1.197, allocations: 3.906 kB / 0.6721 GB, free: 94.88 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004154/1.201, allocations: 3.248 MB / 0.6752 GB, free: 93.41 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001474/1.202, allocations: 480.3 kB / 0.6757 GB, free: 93.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004009/1.203, allocations: 2.125 kB / 0.6757 GB, free: 93.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/1.204, allocations: 34.75 kB / 0.6757 GB, free: 93.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002138/1.204, allocations: 51.97 kB / 0.6758 GB, free: 93.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002381/1.204, allocations: 32.39 kB / 0.6758 GB, free: 93.08 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.005497/1.21, allocations: 2.037 MB / 0.6778 GB, free: 92.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007374/1.217, allocations: 0.7169 MB / 0.6785 GB, free: 92.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 88 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004984/1.218, allocations: 129.3 kB / 0.6786 GB, free: 92.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006191/1.224, allocations: 3.742 MB / 0.6823 GB, free: 90.97 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/1.224, allocations: 0 / 0.6823 GB, free: 90.97 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/1.225, allocations: 0.8996 MB / 0.6831 GB, free: 90.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001868/1.227, allocations: 288.5 kB / 0.6834 GB, free: 90.46 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/1.241, allocations: 6.16 MB / 0.6894 GB, free: 88.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004066/1.245, allocations: 3.268 MB / 0.6926 GB, free: 86 MB / 426.7 MB Notification: Performance of SimCode: time 1.483e-06/1.245, allocations: 0 / 0.6926 GB, free: 86 MB / 426.7 MB Notification: Performance of Templates: time 0.05924/1.305, allocations: 27.23 MB / 0.7192 GB, free: 70.26 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1)