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.0009618/0.0009614, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009579/0.0009579, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.657/1.657, allocations: 205.4 MB / 222.1 MB, free: 5.527 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.5004/0.5004, allocations: 39.99 MB / 310.4 MB, free: 10.08 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.0005512/0.0005515, allocations: 16 kB / 378.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1347, allocations: 57.96 MB / 436.8 MB, free: 2.559 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2973/0.432, allocations: 35.52 MB / 472.3 MB, free: 32.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02164/0.4537, allocations: 8.813 MB / 481.1 MB, free: 27.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01042/0.4641, allocations: 169.3 kB / 481.3 MB, free: 27.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007905/0.4721, allocations: 1.743 MB / 483 MB, free: 26.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01885/0.4909, allocations: 5.204 MB / 488.2 MB, free: 24.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002966/0.4939, allocations: 495.2 kB / 488.7 MB, free: 24.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02322/0.5172, allocations: 13.89 MB / 0.4908 GB, free: 20.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007373/0.5246, allocations: 3.017 MB / 0.4938 GB, free: 19.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002758/0.5274, allocations: 0.8907 MB / 0.4946 GB, free: 18.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003575/0.531, allocations: 1.247 MB / 0.4958 GB, free: 18.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001333/0.5324, allocations: 126.9 kB / 0.496 GB, free: 18.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002863/0.5352, allocations: 0.894 MB / 0.4968 GB, free: 18.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002477/0.5377, allocations: 1.403 MB / 0.4982 GB, free: 17.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001214/0.539, allocations: 0.7389 MB / 0.4989 GB, free: 17.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007088/0.5461, allocations: 5.026 MB / 0.5038 GB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.5461, allocations: 4 kB / 0.5038 GB, free: 14.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5461, allocations: 0 / 0.5038 GB, free: 14.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001773/0.5463, allocations: 0 / 0.5038 GB, free: 14.96 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.009855/0.5561, allocations: 3.671 MB / 0.5074 GB, free: 12.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.5562, allocations: 8.25 kB / 0.5074 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08229/0.6385, allocations: 8.316 MB / 0.5156 GB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007441/0.646, allocations: 2.566 MB / 0.5181 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.6461, allocations: 200.9 kB / 0.5183 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007516/0.6469, allocations: 259.8 kB / 0.5185 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01563/0.6625, allocations: 8.718 MB / 0.527 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001209/0.6627, allocations: 39.59 kB / 0.5271 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000392/0.6631, allocations: 131.8 kB / 0.5272 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00323/0.6663, allocations: 1.837 MB / 0.529 GB, free: 8.523 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01498/0.6813, allocations: 7.362 MB / 0.5362 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05115/0.7325, allocations: 34.06 MB / 0.5694 GB, free: 14.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006046/0.7386, allocations: 2.538 MB / 0.5719 GB, free: 11.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000456/0.7391, allocations: 336 kB / 0.5722 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.344e-05/0.7392, allocations: 39.12 kB / 0.5723 GB, free: 10.97 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 6.071e-06/0.7392, allocations: 7.922 kB / 0.5723 GB, free: 10.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.02617/0.7654, allocations: 9.205 MB / 0.5813 GB, free: 1.609 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.7655, allocations: 196.6 kB / 0.5814 GB, free: 1.375 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006171/0.7717, allocations: 4.075 MB / 0.5854 GB, free: 13.32 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002304/0.772, allocations: 41.7 kB / 0.5855 GB, free: 13.27 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002082/0.774, allocations: 2.972 MB / 0.5884 GB, free: 10.25 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006868/0.7747, allocations: 0.5442 MB / 0.5889 GB, free: 9.703 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/0.775, allocations: 112 kB / 0.589 GB, free: 9.594 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003461/0.7753, allocations: 0.5536 MB / 0.5895 GB, free: 9.031 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002454/0.7778, allocations: 1.674 MB / 0.5912 GB, free: 7.352 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005332/0.7831, allocations: 5.462 MB / 0.5965 GB, free: 15.96 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004296/0.7874, allocations: 2.978 MB / 0.5994 GB, free: 12.99 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.267e-05/0.7875, allocations: 40 kB / 0.5995 GB, free: 12.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01176/0.7993, allocations: 7.049 MB / 0.6063 GB, free: 5.891 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.687e-05/0.7994, allocations: 60 kB / 0.6064 GB, free: 5.832 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001278/0.7995, allocations: 136 kB / 0.6065 GB, free: 5.699 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/0.8005, allocations: 438.7 kB / 0.6069 GB, free: 5.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003865/0.8044, allocations: 1.326 MB / 0.6082 GB, free: 3.941 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003692/0.8081, allocations: 3.153 MB / 0.6113 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004446/0.8126, allocations: 311.4 kB / 0.6116 GB, free: 356 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005863/0.8132, allocations: 371.9 kB / 0.612 GB, free: 15.98 MB / 494.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 (716): * Single equations (assignments): 712 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003941/0.8171, allocations: 1.943 MB / 0.6139 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006975/0.8178, allocations: 327.7 kB / 0.6142 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003026/0.8209, allocations: 1.695 MB / 0.6158 GB, free: 11.99 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.686e-05/0.8209, allocations: 24.64 kB / 0.6159 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.8209, allocations: 4 kB / 0.6159 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.821, allocations: 7.938 kB / 0.6159 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01122/0.8322, allocations: 5.445 MB / 0.6212 GB, free: 6.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/0.8322, allocations: 4 kB / 0.6212 GB, free: 6.426 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009181/0.8331, allocations: 191.9 kB / 0.6214 GB, free: 6.238 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006492/0.8338, allocations: 220.5 kB / 0.6216 GB, free: 6.02 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.267e-05/0.8339, allocations: 35.94 kB / 0.6216 GB, free: 5.984 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002915/0.8368, allocations: 2.569 MB / 0.6241 GB, free: 3.281 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.8368, allocations: 0 / 0.6241 GB, free: 3.281 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2931/1.13, allocations: 3.724 MB / 0.6278 GB, free: 139.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002609/1.133, allocations: 0.5388 MB / 0.6283 GB, free: 139.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001462/1.134, allocations: 20.88 kB / 0.6283 GB, free: 139.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002157/1.136, allocations: 59.08 kB / 0.6284 GB, free: 139.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002604/1.137, allocations: 74.39 kB / 0.6284 GB, free: 139.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/1.137, allocations: 33 kB / 0.6285 GB, free: 139.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006141/1.143, allocations: 2.567 MB / 0.631 GB, free: 139.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.6e-07/1.143, allocations: 0 / 0.631 GB, free: 139.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007056/1.15, allocations: 0.8742 MB / 0.6318 GB, free: 139.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006456/1.151, allocations: 171.9 kB / 0.632 GB, free: 139.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007767/1.158, allocations: 4.063 MB / 0.636 GB, free: 138.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.305e-06/1.159, allocations: 0 / 0.636 GB, free: 138.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/1.16, allocations: 1.006 MB / 0.6369 GB, free: 138.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002484/1.163, allocations: 362.6 kB / 0.6373 GB, free: 138.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0161/1.179, allocations: 9.137 MB / 0.6462 GB, free: 134.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003067/1.182, allocations: 3.038 MB / 0.6492 GB, free: 133.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004448/1.186, allocations: 1.8 MB / 0.6509 GB, free: 132.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006352/1.187, allocations: 227 kB / 0.6512 GB, free: 132.9 MB / 494.1 MB Notification: Performance of SimCode: time 9.22e-07/1.187, allocations: 4 kB / 0.6512 GB, free: 132.9 MB / 494.1 MB Notification: Performance of Templates: time 0.06937/1.256, allocations: 28.54 MB / 0.679 GB, free: 127.6 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: