Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006349/0.006349, allocations: 99.64 kB / 15.73 MB, free: 6.023 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.00108/0.00108, allocations: 187.1 kB / 16.67 MB, free: 5.957 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.533/1.533, allocations: 205.1 MB / 222.6 MB, free: 4.379 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.3175/0.3175, allocations: 39.94 MB / 309.8 MB, free: 9.73 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.001483/0.001484, allocations: 67.91 kB / 435.8 MB, free: 2.477 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3135, allocations: 56.88 MB / 492.6 MB, free: 19.47 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01017/0.3237, allocations: 9.428 MB / 0.4903 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008353/0.3321, allocations: 3.604 MB / 0.4938 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002566/0.3347, allocations: 49.69 kB / 0.4939 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003931/0.3387, allocations: 1.692 MB / 0.4955 GB, free: 9.625 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007284/0.346, allocations: 1.633 MB / 0.4971 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001905/0.3479, allocations: 0.5672 MB / 0.4977 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006464/0.3544, allocations: 3.512 MB / 0.5011 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00291/0.3574, allocations: 2.262 MB / 0.5033 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002081/0.3595, allocations: 1.164 MB / 0.5044 GB, free: 4.301 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002295/0.3618, allocations: 1.635 MB / 0.506 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006803/0.3625, allocations: 236.4 kB / 0.5063 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002258/0.3648, allocations: 1.118 MB / 0.5074 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001584/0.3664, allocations: 1.514 MB / 0.5088 GB, free: 2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001906/0.3683, allocations: 1.737 MB / 0.5105 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007783/0.3761, allocations: 5.763 MB / 0.5162 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.458e-06/0.3761, allocations: 4 kB / 0.5162 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3761, allocations: 0 / 0.5162 GB, free: 12.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000174/0.3763, allocations: 0 / 0.5162 GB, free: 12.34 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.009649/0.386, allocations: 3.861 MB / 0.5199 GB, free: 8.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.386, allocations: 11.89 kB / 0.5199 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01638/0.4024, allocations: 2.379 MB / 0.5223 GB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007071/0.4095, allocations: 2.319 MB / 0.5245 GB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002373/0.4098, allocations: 172.7 kB / 0.5247 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009876/0.4108, allocations: 231.9 kB / 0.5249 GB, free: 3.242 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01416/0.425, allocations: 7.898 MB / 0.5326 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001046/0.4251, allocations: 43.64 kB / 0.5327 GB, free: 10.67 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004279/0.4256, allocations: 107.9 kB / 0.5328 GB, free: 10.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002895/0.4285, allocations: 1.672 MB / 0.5344 GB, free: 8.887 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01348/0.442, allocations: 6.746 MB / 0.541 GB, free: 2.129 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0491/0.4911, allocations: 31.4 MB / 0.5717 GB, free: 1.773 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00474/0.4959, allocations: 2.35 MB / 0.574 GB, free: 15.27 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001528/0.4974, allocations: 1.181 MB / 0.5751 GB, free: 14.08 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003955/0.4978, allocations: 327.8 kB / 0.5754 GB, free: 13.71 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.4979, allocations: 51 kB / 0.5755 GB, free: 13.65 MB / 462.1 MB Notification: Performance of pre-optimization done (n=117): time 3.727e-06/0.4979, allocations: 0 / 0.5755 GB, free: 13.65 MB / 462.1 MB Notification: Performance of matching and sorting (n=141): time 0.03568/0.5336, allocations: 12.3 MB / 0.5875 GB, free: 1.211 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.395e-05/0.5337, allocations: 192.7 kB / 0.5877 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004748/0.5385, allocations: 3.742 MB / 0.5913 GB, free: 13.24 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001805/0.5387, allocations: 49.7 kB / 0.5914 GB, free: 13.19 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001723/0.5404, allocations: 2.67 MB / 0.594 GB, free: 10.48 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005276/0.5409, allocations: 0.5555 MB / 0.5945 GB, free: 9.918 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001377/0.5423, allocations: 1.122 MB / 0.5956 GB, free: 8.785 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.589e-05/0.5424, allocations: 301.1 kB / 0.5959 GB, free: 8.488 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002587/0.545, allocations: 1.807 MB / 0.5977 GB, free: 6.676 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005215/0.5502, allocations: 5.252 MB / 0.6028 GB, free: 15.69 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008898/0.5592, allocations: 7.612 MB / 0.6102 GB, free: 6.363 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.469e-05/0.5593, allocations: 36 kB / 0.6103 GB, free: 6.328 MB / 494.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01223/0.5715, allocations: 7.288 MB / 0.6174 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.073e-05/0.5716, allocations: 56 kB / 0.6174 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001221/0.5717, allocations: 124 kB / 0.6175 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001541/0.5733, allocations: 0.6563 MB / 0.6182 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003715/0.577, allocations: 1.267 MB / 0.6194 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00471/0.5817, allocations: 4.055 MB / 0.6234 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003823/0.5856, allocations: 307.3 kB / 0.6237 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006141/0.5862, allocations: 348 kB / 0.624 GB, free: 8.09 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (684): * Single equations (assignments): 680 * 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.002842/0.5891, allocations: 1.778 MB / 0.6257 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005544/0.5896, allocations: 311.9 kB / 0.626 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004191/0.5938, allocations: 2.223 MB / 0.6282 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.891e-05/0.5939, allocations: 16 kB / 0.6282 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.5939, allocations: 7.938 kB / 0.6282 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.5939, allocations: 7.969 kB / 0.6282 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2726/0.8665, allocations: 5.932 MB / 0.634 GB, free: 123.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.925e-05/0.8665, allocations: 1.094 kB / 0.634 GB, free: 123.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001862/0.8684, allocations: 215.7 kB / 0.6342 GB, free: 123.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002441/0.8709, allocations: 488.9 kB / 0.6347 GB, free: 123.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003107/0.8712, allocations: 31.91 kB / 0.6347 GB, free: 123.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006027/0.8773, allocations: 3.423 MB / 0.6381 GB, free: 121.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.8773, allocations: 2.375 kB / 0.6381 GB, free: 121.4 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01263/0.89, allocations: 4.35 MB / 0.6423 GB, free: 119.8 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002589/0.8926, allocations: 0.5523 MB / 0.6429 GB, free: 119.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009838/0.8936, allocations: 22.53 kB / 0.6429 GB, free: 119.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002523/0.8962, allocations: 75.53 kB / 0.643 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004011/0.8966, allocations: 83.03 kB / 0.643 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001808/0.8968, allocations: 39.81 kB / 0.6431 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006658/0.9035, allocations: 2.336 MB / 0.6454 GB, free: 118.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6.92e-07/0.9035, allocations: 0 / 0.6454 GB, free: 118.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008512/0.912, allocations: 0.8374 MB / 0.6462 GB, free: 118.6 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * 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.0005961/0.9127, allocations: 155.7 kB / 0.6463 GB, free: 118.5 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01155/0.9243, allocations: 4.304 MB / 0.6505 GB, free: 117 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/0.9243, allocations: 3.906 kB / 0.6505 GB, free: 117 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003112/0.9275, allocations: 1.19 MB / 0.6517 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.003893/0.9314, allocations: 358.4 kB / 0.652 GB, free: 116.4 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02222/0.9536, allocations: 7.452 MB / 0.6593 GB, free: 113.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006315/0.96, allocations: 2.763 MB / 0.662 GB, free: 112.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.007012/0.967, allocations: 1.747 MB / 0.6637 GB, free: 112 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/0.9683, allocations: 214.6 kB / 0.6639 GB, free: 112 MB / 0.4981 GB Notification: Performance of SimCode: time 9.82e-07/0.9683, allocations: 0 / 0.6639 GB, free: 112 MB / 0.4981 GB Notification: Performance of Templates: time 0.05402/1.022, allocations: 26.71 MB / 0.69 GB, free: 90.6 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1)