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/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.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 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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008389/0.008389, allocations: 101.9 kB / 15.73 MB, free: 6.438 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.0019/0.0019, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.465/1.465, allocations: 205.1 MB / 222.6 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3407/0.3407, allocations: 37.99 MB / 307.9 MB, free: 10.17 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.1. 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.00168/0.00168, allocations: 71.89 kB / 433 MB, free: 5.422 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3236, allocations: 56.46 MB / 489.4 MB, free: 19.85 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009761/0.3334, allocations: 10.01 MB / 499.5 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008871/0.3423, allocations: 3.71 MB / 0.4914 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002345/0.3447, allocations: 52.5 kB / 0.4914 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003749/0.3485, allocations: 1.954 MB / 0.4933 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005772/0.3543, allocations: 1.782 MB / 0.4951 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001607/0.3559, allocations: 0.5667 MB / 0.4956 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00588/0.3618, allocations: 3.751 MB / 0.4993 GB, free: 6.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002738/0.3646, allocations: 2.543 MB / 0.5018 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002006/0.3666, allocations: 1.284 MB / 0.503 GB, free: 4.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002025/0.3686, allocations: 1.835 MB / 0.5048 GB, free: 3.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000498/0.3691, allocations: 274.5 kB / 0.5051 GB, free: 3.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001896/0.3711, allocations: 1.141 MB / 0.5062 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001251/0.3723, allocations: 1.704 MB / 0.5079 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001481/0.3738, allocations: 1.925 MB / 0.5097 GB, free: 484 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007744/0.3816, allocations: 6.413 MB / 0.516 GB, free: 12.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3816, allocations: 5.438 kB / 0.516 GB, free: 12.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3816, allocations: 0 / 0.516 GB, free: 12.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001235/0.3817, allocations: 0 / 0.516 GB, free: 12.07 MB / 398.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.008851/0.3906, allocations: 4.193 MB / 0.5201 GB, free: 8.246 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.3906, allocations: 19.83 kB / 0.5201 GB, free: 8.227 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.014/0.4046, allocations: 2.449 MB / 0.5225 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007447/0.4121, allocations: 2.448 MB / 0.5249 GB, free: 3.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000263/0.4124, allocations: 201.2 kB / 0.5251 GB, free: 3.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001826/0.4143, allocations: 259.9 kB / 0.5253 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01893/0.4332, allocations: 8.753 MB / 0.5339 GB, free: 9.414 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001716/0.4334, allocations: 39.66 kB / 0.5339 GB, free: 9.375 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001182/0.4346, allocations: 123.9 kB / 0.534 GB, free: 9.254 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003174/0.4378, allocations: 1.836 MB / 0.5358 GB, free: 7.414 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01607/0.4539, allocations: 7.472 MB / 0.5431 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04998/0.5039, allocations: 34.13 MB / 0.5765 GB, free: 12.77 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00545/0.5094, allocations: 2.588 MB / 0.579 GB, free: 10.03 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001823/0.5113, allocations: 1.192 MB / 0.5802 GB, free: 8.828 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004308/0.5118, allocations: 327.8 kB / 0.5805 GB, free: 8.449 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.867e-05/0.5118, allocations: 47.06 kB / 0.5805 GB, free: 8.395 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 4.518e-06/0.5118, allocations: 0 / 0.5805 GB, free: 8.395 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.02641/0.5382, allocations: 9.819 MB / 0.5901 GB, free: 14.45 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.5384, allocations: 200.6 kB / 0.5903 GB, free: 14.21 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006613/0.545, allocations: 3.964 MB / 0.5942 GB, free: 10.27 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001939/0.5452, allocations: 41.7 kB / 0.5942 GB, free: 10.22 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002053/0.5473, allocations: 2.948 MB / 0.5971 GB, free: 7.23 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006439/0.5479, allocations: 0.5443 MB / 0.5976 GB, free: 6.68 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001502/0.5494, allocations: 1.202 MB / 0.5988 GB, free: 5.465 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.102e-05/0.5495, allocations: 301.1 kB / 0.5991 GB, free: 5.168 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002571/0.5521, allocations: 1.807 MB / 0.6008 GB, free: 3.355 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004887/0.557, allocations: 5.632 MB / 0.6063 GB, free: 11.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009637/0.5667, allocations: 8.044 MB / 0.6142 GB, free: 1.855 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001539/0.5669, allocations: 40 kB / 0.6142 GB, free: 1.816 MB / 494.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01636/0.5832, allocations: 7.59 MB / 0.6216 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001398/0.5834, allocations: 64 kB / 0.6217 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002149/0.5836, allocations: 136 kB / 0.6218 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001772/0.5854, allocations: 0.6686 MB / 0.6225 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004811/0.5903, allocations: 1.357 MB / 0.6238 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005425/0.5957, allocations: 4.078 MB / 0.6278 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00556/0.6013, allocations: 323.3 kB / 0.6281 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001581/0.6029, allocations: 368 kB / 0.6285 GB, free: 3.09 MB / 0.4981 GB 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.005581/0.6085, allocations: 1.951 MB / 0.6304 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008689/0.6094, allocations: 331.7 kB / 0.6307 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3043/0.9137, allocations: 2.064 MB / 0.6327 GB, free: 125.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.406e-05/0.9138, allocations: 18.38 kB / 0.6327 GB, free: 125.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.9138, allocations: 4.656 kB / 0.6327 GB, free: 125.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-05/0.9138, allocations: 6.828 kB / 0.6327 GB, free: 125.2 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01247/0.9263, allocations: 5.78 MB / 0.6384 GB, free: 123.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/0.9264, allocations: 4.531 kB / 0.6384 GB, free: 123.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009976/0.9274, allocations: 185.6 kB / 0.6386 GB, free: 123.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001464/0.9288, allocations: 495.9 kB / 0.639 GB, free: 123.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.845e-05/0.929, allocations: 21.62 kB / 0.639 GB, free: 123.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003906/0.9329, allocations: 3.448 MB / 0.6424 GB, free: 121.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.9329, allocations: 4.359 kB / 0.6424 GB, free: 121.1 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006526/0.9394, allocations: 4 MB / 0.6463 GB, free: 119.6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001548/0.941, allocations: 0.5398 MB / 0.6468 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003734/0.9414, allocations: 26.2 kB / 0.6469 GB, free: 119.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.9425, allocations: 66.05 kB / 0.6469 GB, free: 119.4 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002299/0.9427, allocations: 74.89 kB / 0.647 GB, free: 119.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.9428, allocations: 41.67 kB / 0.647 GB, free: 119.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004689/0.9475, allocations: 2.471 MB / 0.6495 GB, free: 118.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.61e-07/0.9475, allocations: 0 / 0.6495 GB, free: 118.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005065/0.9526, allocations: 0.8815 MB / 0.6503 GB, free: 118.5 MB / 0.4981 GB 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.0004074/0.953, allocations: 148.4 kB / 0.6505 GB, free: 118.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008421/0.9615, allocations: 4.31 MB / 0.6547 GB, free: 116.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.9615, allocations: 1.156 kB / 0.6547 GB, free: 116.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00185/0.9634, allocations: 1.073 MB / 0.6557 GB, free: 116.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002859/0.9662, allocations: 379.2 kB / 0.6561 GB, free: 116.3 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01692/0.9832, allocations: 7.833 MB / 0.6637 GB, free: 113 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002851/0.986, allocations: 2.955 MB / 0.6666 GB, free: 111.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003821/0.9899, allocations: 1.826 MB / 0.6684 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004957/0.9904, allocations: 230 kB / 0.6686 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of SimCode: time 1.332e-06/0.9904, allocations: 0 / 0.6686 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.04637/1.037, allocations: 27.57 MB / 0.6955 GB, free: 87.71 MB / 0.4981 GB 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)