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.0007997/0.0007997, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006077/0.006077, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.588/1.588, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.3454/0.3454, allocations: 40 MB / 310.7 MB, free: 9.598 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.0005279/0.0005281, allocations: 16 kB / 379.4 MB, free: 11.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1296, allocations: 57.97 MB / 437.4 MB, free: 1.91 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2965/0.4262, allocations: 40.37 MB / 477.8 MB, free: 28.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02545/0.4517, allocations: 8.9 MB / 486.7 MB, free: 23.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01225/0.4639, allocations: 169 kB / 486.8 MB, free: 23.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001747/0.4657, allocations: 376.7 kB / 487.2 MB, free: 23.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00533/0.4711, allocations: 1.637 MB / 488.9 MB, free: 22.87 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.4728, allocations: 0.5188 MB / 489.4 MB, free: 22.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007241/0.48, allocations: 5.389 MB / 494.8 MB, free: 21.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005161/0.4853, allocations: 3.39 MB / 498.1 MB, free: 19.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001989/0.4873, allocations: 0.9729 MB / 499.1 MB, free: 19.33 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002738/0.49, allocations: 1.764 MB / 0.4891 GB, free: 18.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005936/0.4907, allocations: 127 kB / 0.4893 GB, free: 18.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002391/0.493, allocations: 1.071 MB / 0.4903 GB, free: 18.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002282/0.4953, allocations: 1.556 MB / 0.4918 GB, free: 18.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002995/0.4984, allocations: 1.786 MB / 0.4936 GB, free: 16.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01176/0.5101, allocations: 5.951 MB / 0.4994 GB, free: 15.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.5102, allocations: 4 kB / 0.4994 GB, free: 15.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.5102, allocations: 1.438 kB / 0.4994 GB, free: 15.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003185/0.5105, allocations: 0 / 0.4994 GB, free: 15.15 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.01355/0.5241, allocations: 3.445 MB / 0.5028 GB, free: 13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.17e-05/0.5242, allocations: 9.062 kB / 0.5028 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01876/0.5429, allocations: 2.505 MB / 0.5052 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006885/0.5499, allocations: 2.415 MB / 0.5076 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002144/0.5501, allocations: 194.9 kB / 0.5078 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001218/0.5513, allocations: 264.8 kB / 0.508 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01997/0.5713, allocations: 8.772 MB / 0.5166 GB, free: 4.621 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000158/0.5715, allocations: 38.88 kB / 0.5166 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005193/0.5721, allocations: 134.7 kB / 0.5167 GB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00313/0.5752, allocations: 1.841 MB / 0.5185 GB, free: 3.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01597/0.5912, allocations: 7.48 MB / 0.5258 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04408/0.6353, allocations: 34.33 MB / 0.5594 GB, free: 8.867 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005167/0.6405, allocations: 2.597 MB / 0.5619 GB, free: 6.121 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001673/0.6422, allocations: 1.188 MB / 0.5631 GB, free: 4.922 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004067/0.6426, allocations: 332 kB / 0.5634 GB, free: 4.543 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.395e-05/0.6427, allocations: 47.45 kB / 0.5634 GB, free: 4.488 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 5.391e-06/0.6427, allocations: 0 / 0.5634 GB, free: 4.488 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.02529/0.668, allocations: 9.796 MB / 0.573 GB, free: 10.58 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.6682, allocations: 200.5 kB / 0.5732 GB, free: 10.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006456/0.6747, allocations: 3.956 MB / 0.577 GB, free: 6.398 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003098/0.675, allocations: 45.7 kB / 0.5771 GB, free: 6.348 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002472/0.6775, allocations: 2.952 MB / 0.58 GB, free: 3.355 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007688/0.6782, allocations: 0.5481 MB / 0.5805 GB, free: 2.801 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006775/0.6789, allocations: 0.4951 MB / 0.581 GB, free: 2.297 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.6791, allocations: 305.1 kB / 0.5813 GB, free: 1.996 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003188/0.6823, allocations: 1.807 MB / 0.583 GB, free: 188 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006526/0.6888, allocations: 5.632 MB / 0.5885 GB, free: 8.629 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01198/0.7008, allocations: 8.045 MB / 0.5964 GB, free: 14.67 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002317/0.7011, allocations: 40 kB / 0.5964 GB, free: 14.63 MB / 478.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01943/0.7206, allocations: 7.599 MB / 0.6039 GB, free: 7.031 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001083/0.7207, allocations: 64 kB / 0.6039 GB, free: 6.969 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001903/0.7209, allocations: 136.1 kB / 0.6041 GB, free: 6.836 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001665/0.7226, allocations: 0.6687 MB / 0.6047 GB, free: 6.164 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004709/0.7273, allocations: 1.353 MB / 0.606 GB, free: 4.809 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004693/0.732, allocations: 3.808 MB / 0.6097 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00535/0.7374, allocations: 323.4 kB / 0.6101 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/0.7386, allocations: 368 kB / 0.6104 GB, free: 200 kB / 478.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.005587/0.7442, allocations: 1.947 MB / 0.6123 GB, free: 14.23 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009589/0.7452, allocations: 327.8 kB / 0.6126 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005071/0.7503, allocations: 2.073 MB / 0.6146 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.551e-05/0.7503, allocations: 12 kB / 0.6147 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.611e-05/0.7504, allocations: 7.984 kB / 0.6147 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.897e-05/0.7504, allocations: 7.984 kB / 0.6147 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01863/0.769, allocations: 5.809 MB / 0.6203 GB, free: 5.891 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.91e-05/0.7691, allocations: 4 kB / 0.6203 GB, free: 5.887 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.7702, allocations: 191.7 kB / 0.6205 GB, free: 5.699 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001602/0.7718, allocations: 488.4 kB / 0.621 GB, free: 5.219 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001835/0.772, allocations: 23.98 kB / 0.621 GB, free: 5.195 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004541/0.7766, allocations: 3.221 MB / 0.6242 GB, free: 1.844 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.7766, allocations: 4 kB / 0.6242 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.322/1.099, allocations: 3.999 MB / 0.6281 GB, free: 142.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001837/1.1, allocations: 0.544 MB / 0.6286 GB, free: 142.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004899/1.101, allocations: 19.22 kB / 0.6286 GB, free: 142.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/1.102, allocations: 69.8 kB / 0.6287 GB, free: 142.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002265/1.102, allocations: 73.23 kB / 0.6288 GB, free: 142.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/1.103, allocations: 43.39 kB / 0.6288 GB, free: 142.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004768/1.107, allocations: 2.469 MB / 0.6312 GB, free: 142.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.91e-07/1.107, allocations: 0 / 0.6312 GB, free: 142.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006426/1.114, allocations: 0.8764 MB / 0.6321 GB, free: 142.1 MB / 494.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.0004918/1.114, allocations: 152.4 kB / 0.6322 GB, free: 142 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007776/1.122, allocations: 4.295 MB / 0.6364 GB, free: 141.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/1.122, allocations: 3.438 kB / 0.6364 GB, free: 141.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/1.124, allocations: 1.073 MB / 0.6375 GB, free: 141.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003797/1.127, allocations: 358 kB / 0.6378 GB, free: 141 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01738/1.145, allocations: 9.729 MB / 0.6473 GB, free: 136 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00319/1.148, allocations: 2.96 MB / 0.6502 GB, free: 134.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004494/1.153, allocations: 1.81 MB / 0.652 GB, free: 134.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007356/1.153, allocations: 226.2 kB / 0.6522 GB, free: 134.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.552e-06/1.153, allocations: 0 / 0.6522 GB, free: 134.6 MB / 494.1 MB Notification: Performance of Templates: time 0.06547/1.219, allocations: 29.38 MB / 0.6809 GB, free: 125.9 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: