Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 194.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.536/1.536, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3112/0.3112, allocations: 39.94 MB / 309.7 MB, free: 9.309 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001569, allocations: 66.41 kB / 377.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1333, allocations: 56.88 MB / 434.5 MB, free: 3.695 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01119/0.1445, allocations: 10.01 MB / 444.5 MB, free: 9.633 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007971/0.1525, allocations: 3.696 MB / 448.2 MB, free: 5.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002117/0.1547, allocations: 55.88 kB / 448.3 MB, free: 5.871 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004051/0.1588, allocations: 1.958 MB / 450.2 MB, free: 3.906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005791/0.1646, allocations: 1.743 MB / 452 MB, free: 2.156 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001726/0.1664, allocations: 0.5692 MB / 452.5 MB, free: 1.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2283/0.3947, allocations: 3.728 MB / 456.3 MB, free: 36.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003581/0.3983, allocations: 2.555 MB / 458.8 MB, free: 36.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002688/0.401, allocations: 1.271 MB / 460.1 MB, free: 36.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002622/0.4037, allocations: 1.826 MB / 461.9 MB, free: 35.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006168/0.4043, allocations: 273.1 kB / 462.2 MB, free: 35.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002485/0.4068, allocations: 1.148 MB / 463.3 MB, free: 35.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001955/0.4088, allocations: 1.693 MB / 465 MB, free: 35.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002605/0.4114, allocations: 1.94 MB / 467 MB, free: 35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00716/0.4186, allocations: 6.165 MB / 473.1 MB, free: 33.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.4186, allocations: 0 / 473.1 MB, free: 33.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4186, allocations: 0 / 473.1 MB, free: 33.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002028/0.4188, allocations: 2.875 kB / 473.1 MB, free: 33.05 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.009887/0.4287, allocations: 4.208 MB / 477.3 MB, free: 30.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.4288, allocations: 16.2 kB / 477.3 MB, free: 30.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01624/0.445, allocations: 2.436 MB / 479.8 MB, free: 30.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006454/0.4515, allocations: 2.417 MB / 482.2 MB, free: 29.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.4517, allocations: 195.3 kB / 482.4 MB, free: 29.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001057/0.4528, allocations: 254.8 kB / 482.6 MB, free: 29.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01674/0.4695, allocations: 8.76 MB / 491.4 MB, free: 25.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001271/0.4697, allocations: 36.61 kB / 491.4 MB, free: 25.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000426/0.4701, allocations: 129.2 kB / 491.6 MB, free: 25.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003531/0.4737, allocations: 1.832 MB / 493.4 MB, free: 24.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01772/0.4914, allocations: 7.472 MB / 0.4891 GB, free: 22.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04289/0.5343, allocations: 34.3 MB / 0.5226 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005417/0.5398, allocations: 2.594 MB / 0.5252 GB, free: 8.004 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001589/0.5414, allocations: 1.188 MB / 0.5263 GB, free: 6.801 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004149/0.5419, allocations: 319.7 kB / 0.5266 GB, free: 6.438 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.826e-05/0.5419, allocations: 50.39 kB / 0.5267 GB, free: 6.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=119): time 3.226e-06/0.5419, allocations: 0 / 0.5267 GB, free: 6.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=133): time 0.02549/0.5674, allocations: 9.81 MB / 0.5362 GB, free: 12.49 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.5676, allocations: 203.1 kB / 0.5364 GB, free: 12.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00581/0.5734, allocations: 3.968 MB / 0.5403 GB, free: 8.301 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003451/0.5738, allocations: 44.2 kB / 0.5404 GB, free: 8.254 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002847/0.5766, allocations: 2.94 MB / 0.5432 GB, free: 5.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001101/0.5777, allocations: 0.543 MB / 0.5438 GB, free: 4.781 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001817/0.5796, allocations: 1.204 MB / 0.5449 GB, free: 3.566 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.5797, allocations: 301.1 kB / 0.5452 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003017/0.5827, allocations: 1.807 MB / 0.547 GB, free: 1.457 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005344/0.5881, allocations: 5.633 MB / 0.5525 GB, free: 9.973 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009526/0.5976, allocations: 8.056 MB / 0.5604 GB, free: 140 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001043/0.5978, allocations: 43.94 kB / 0.5604 GB, free: 96 kB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01527/0.613, allocations: 7.582 MB / 0.5678 GB, free: 8.496 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/0.6132, allocations: 64 kB / 0.5679 GB, free: 8.434 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001999/0.6134, allocations: 136 kB / 0.568 GB, free: 8.301 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001723/0.6151, allocations: 0.676 MB / 0.5687 GB, free: 7.621 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004545/0.6197, allocations: 1.354 MB / 0.57 GB, free: 6.266 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005114/0.6248, allocations: 4.092 MB / 0.574 GB, free: 2.039 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005618/0.6305, allocations: 319.3 kB / 0.5743 GB, free: 1.727 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008746/0.6314, allocations: 375.5 kB / 0.5746 GB, free: 1.363 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (735): * Single equations (assignments): 731 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004639/0.636, allocations: 1.935 MB / 0.5765 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008562/0.6369, allocations: 323.8 kB / 0.5768 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004413/0.6413, allocations: 2.077 MB / 0.5789 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.384e-05/0.6414, allocations: 20 kB / 0.5789 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/0.6414, allocations: 4 kB / 0.5789 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.785e-05/0.6414, allocations: 3.984 kB / 0.5789 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/0.6557, allocations: 5.809 MB / 0.5846 GB, free: 7.098 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.689e-05/0.6558, allocations: 4 kB / 0.5846 GB, free: 7.094 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009815/0.6568, allocations: 195.8 kB / 0.5847 GB, free: 6.902 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001402/0.6582, allocations: 484.2 kB / 0.5852 GB, free: 6.426 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001452/0.6584, allocations: 35.77 kB / 0.5852 GB, free: 6.395 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004119/0.6625, allocations: 3.434 MB / 0.5886 GB, free: 2.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.6625, allocations: 4 kB / 0.5886 GB, free: 2.816 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006197/0.6687, allocations: 3.999 MB / 0.5925 GB, free: 14.79 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001878/0.6706, allocations: 0.5397 MB / 0.593 GB, free: 14.22 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009269/0.6716, allocations: 24.06 kB / 0.5931 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/0.673, allocations: 59.92 kB / 0.5931 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002115/0.6732, allocations: 76.41 kB / 0.5932 GB, free: 14.07 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.851e-05/0.6733, allocations: 37.7 kB / 0.5932 GB, free: 14.03 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003857/0.6772, allocations: 2.472 MB / 0.5956 GB, free: 11.58 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6772, allocations: 0 / 0.5956 GB, free: 11.58 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005023/0.6822, allocations: 0.875 MB / 0.5965 GB, free: 10.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004168/0.6826, allocations: 162.6 kB / 0.5966 GB, free: 10.54 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007958/0.6906, allocations: 4.667 MB / 0.6012 GB, free: 5.891 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/0.6907, allocations: 4.125 kB / 0.6012 GB, free: 5.887 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001693/0.6924, allocations: 1.064 MB / 0.6022 GB, free: 4.805 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003041/0.6954, allocations: 391.5 kB / 0.6026 GB, free: 4.43 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01814/0.7136, allocations: 7.948 MB / 0.6104 GB, free: 12.44 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003829/0.7174, allocations: 2.954 MB / 0.6133 GB, free: 9.457 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005208/0.7227, allocations: 1.814 MB / 0.615 GB, free: 7.633 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008772/0.7236, allocations: 231.4 kB / 0.6153 GB, free: 7.406 MB / 494.1 MB Notification: Performance of SimCode: time 2.645e-06/0.7236, allocations: 0 / 0.6153 GB, free: 7.406 MB / 494.1 MB Notification: Performance of Templates: time 0.2808/1.004, allocations: 30.9 MB / 0.6454 GB, free: 139.1 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1)