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.008205/0.008205, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001557/0.001557, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.518/1.518, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.2908/0.2908, 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.001464/0.001464, allocations: 68.36 kB / 433 MB, free: 5.414 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3053, allocations: 56.47 MB / 489.5 MB, free: 19.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01023/0.3156, allocations: 10 MB / 499.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009186/0.3248, allocations: 3.708 MB / 0.4914 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002617/0.3275, allocations: 52.47 kB / 0.4914 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004645/0.3322, allocations: 1.953 MB / 0.4933 GB, free: 9.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007066/0.3393, allocations: 1.745 MB / 0.495 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001997/0.3413, allocations: 0.5635 MB / 0.4956 GB, free: 8.504 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006842/0.3482, allocations: 3.752 MB / 0.4992 GB, free: 6.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003047/0.3513, allocations: 2.538 MB / 0.5017 GB, free: 5.312 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001939/0.3532, allocations: 1.277 MB / 0.503 GB, free: 4.586 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002117/0.3553, allocations: 1.829 MB / 0.5048 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005609/0.3559, allocations: 274.5 kB / 0.505 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001993/0.3579, allocations: 1.149 MB / 0.5061 GB, free: 3.023 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001427/0.3594, allocations: 1.691 MB / 0.5078 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002036/0.3614, allocations: 1.935 MB / 0.5097 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00758/0.369, allocations: 6.404 MB / 0.5159 GB, free: 12.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.369, allocations: 0 / 0.5159 GB, free: 12.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.369, allocations: 4 kB / 0.5159 GB, free: 12.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001754/0.3692, allocations: 1.125 kB / 0.5159 GB, free: 12.18 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.01075/0.38, allocations: 4.203 MB / 0.52 GB, free: 8.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.38, allocations: 15.89 kB / 0.5201 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01724/0.3973, allocations: 2.441 MB / 0.5224 GB, free: 5.805 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006093/0.4034, allocations: 2.444 MB / 0.5248 GB, free: 3.309 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.4036, allocations: 201.3 kB / 0.525 GB, free: 3.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005711/0.4041, allocations: 263.9 kB / 0.5253 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01295/0.4171, allocations: 8.753 MB / 0.5338 GB, free: 9.449 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.797e-05/0.4172, allocations: 43.58 kB / 0.5339 GB, free: 9.406 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003777/0.4176, allocations: 127.9 kB / 0.534 GB, free: 9.281 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003092/0.4207, allocations: 1.833 MB / 0.5358 GB, free: 7.445 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01275/0.4335, allocations: 7.476 MB / 0.5431 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04142/0.4749, allocations: 34.13 MB / 0.5764 GB, free: 12.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005158/0.4801, allocations: 2.592 MB / 0.5789 GB, free: 10.06 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00163/0.4818, allocations: 1.188 MB / 0.5801 GB, free: 8.863 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003827/0.4822, allocations: 327.8 kB / 0.5804 GB, free: 8.484 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.4823, allocations: 47.11 kB / 0.5805 GB, free: 8.43 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 3.426e-06/0.4823, allocations: 0 / 0.5805 GB, free: 8.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.02872/0.511, allocations: 9.822 MB / 0.59 GB, free: 14.49 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/0.5112, allocations: 200.5 kB / 0.5902 GB, free: 14.25 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006772/0.518, allocations: 3.96 MB / 0.5941 GB, free: 10.31 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003671/0.5184, allocations: 49.7 kB / 0.5942 GB, free: 10.25 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002518/0.5209, allocations: 2.948 MB / 0.597 GB, free: 7.266 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007498/0.5217, allocations: 0.5443 MB / 0.5976 GB, free: 6.715 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001578/0.5232, allocations: 1.202 MB / 0.5987 GB, free: 5.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.695e-05/0.5234, allocations: 301.1 kB / 0.599 GB, free: 5.203 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002946/0.5263, allocations: 1.803 MB / 0.6008 GB, free: 3.395 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005475/0.5318, allocations: 5.636 MB / 0.6063 GB, free: 11.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009832/0.5417, allocations: 8.044 MB / 0.6141 GB, free: 1.887 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.514e-05/0.5418, allocations: 40 kB / 0.6142 GB, free: 1.848 MB / 494.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01389/0.5557, allocations: 7.586 MB / 0.6216 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.5558, allocations: 64 kB / 0.6217 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001518/0.556, allocations: 136 kB / 0.6218 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00175/0.5577, allocations: 0.6681 MB / 0.6224 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004332/0.5621, allocations: 1.361 MB / 0.6238 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005146/0.5672, allocations: 4.083 MB / 0.6277 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004528/0.5718, allocations: 323.3 kB / 0.6281 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009247/0.5727, allocations: 372 kB / 0.6284 GB, free: 3.113 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.003325/0.5761, allocations: 1.943 MB / 0.6303 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00063/0.5767, allocations: 323.8 kB / 0.6306 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2779/0.8546, allocations: 2.07 MB / 0.6326 GB, free: 125.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.281e-05/0.8547, allocations: 16.34 kB / 0.6327 GB, free: 125.3 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.8547, allocations: 2.094 kB / 0.6327 GB, free: 125.3 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.137e-05/0.8547, allocations: 8.312 kB / 0.6327 GB, free: 125.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01276/0.8675, allocations: 5.783 MB / 0.6383 GB, free: 123.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/0.8675, allocations: 2.219 kB / 0.6383 GB, free: 123.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009403/0.8685, allocations: 189.9 kB / 0.6385 GB, free: 123.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/0.87, allocations: 490.8 kB / 0.639 GB, free: 123.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/0.8701, allocations: 25.81 kB / 0.639 GB, free: 123.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004082/0.8742, allocations: 3.443 MB / 0.6424 GB, free: 121.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.8742, allocations: 2.062 kB / 0.6424 GB, free: 121.2 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006446/0.8807, allocations: 3.996 MB / 0.6463 GB, free: 119.7 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001738/0.8824, allocations: 0.5448 MB / 0.6468 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004351/0.8829, allocations: 21.91 kB / 0.6468 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.884, allocations: 70.56 kB / 0.6469 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/0.8842, allocations: 75.61 kB / 0.6469 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.534e-05/0.8843, allocations: 39.69 kB / 0.647 GB, free: 119.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005198/0.8895, allocations: 2.47 MB / 0.6494 GB, free: 118.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.21e-07/0.8895, allocations: 3.062 kB / 0.6494 GB, free: 118.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005474/0.895, allocations: 0.8766 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.0003613/0.8954, allocations: 158.3 kB / 0.6504 GB, free: 118.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006559/0.902, allocations: 4.309 MB / 0.6546 GB, free: 116.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.902, allocations: 0 / 0.6546 GB, free: 116.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001381/0.9034, allocations: 1.073 MB / 0.6557 GB, free: 116.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002126/0.9055, allocations: 377.5 kB / 0.656 GB, free: 116.3 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01253/0.9181, allocations: 7.848 MB / 0.6637 GB, free: 113 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002448/0.9205, allocations: 2.949 MB / 0.6666 GB, free: 111.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003412/0.924, allocations: 1.825 MB / 0.6683 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005079/0.9245, allocations: 229.6 kB / 0.6686 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of SimCode: time 2.475e-06/0.9245, allocations: 0 / 0.6686 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.04645/0.971, 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)