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.001293/0.001293, allocations: 100.1 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.001791/0.001791, allocations: 177.3 kB / 15.95 MB, free: 216 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.595/1.595, allocations: 205.4 MB / 222.1 MB, free: 5.887 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.329/0.329, allocations: 38.03 MB / 308.4 MB, free: 10.23 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.0005581/0.0005581, allocations: 12.22 kB / 376.4 MB, free: 15.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1368, allocations: 57.52 MB / 433.9 MB, free: 5.574 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2498/0.3866, allocations: 35.52 MB / 469.4 MB, free: 32.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0183/0.4049, allocations: 8.828 MB / 478.3 MB, free: 29.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008436/0.4134, allocations: 172.6 kB / 478.4 MB, free: 29.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006164/0.4196, allocations: 1.737 MB / 480.2 MB, free: 28.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01824/0.4379, allocations: 5.198 MB / 485.4 MB, free: 26.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003117/0.441, allocations: 493.5 kB / 485.9 MB, free: 26.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01982/0.4609, allocations: 13.9 MB / 499.8 MB, free: 22.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004956/0.4659, allocations: 3.009 MB / 0.491 GB, free: 21.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001906/0.4678, allocations: 0.8905 MB / 0.4919 GB, free: 21.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002143/0.47, allocations: 1.251 MB / 0.4931 GB, free: 20.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005014/0.4705, allocations: 127.8 kB / 0.4932 GB, free: 20.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.4725, allocations: 0.8899 MB / 0.4941 GB, free: 20.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001855/0.4743, allocations: 1.406 MB / 0.4954 GB, free: 20.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009983/0.4753, allocations: 0.7383 MB / 0.4962 GB, free: 19.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008281/0.4836, allocations: 5.029 MB / 0.5011 GB, free: 17.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4837, allocations: 0 / 0.5011 GB, free: 17.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.4837, allocations: 0 / 0.5011 GB, free: 17.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002136/0.4839, allocations: 3.938 kB / 0.5011 GB, free: 17.86 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.01142/0.4953, allocations: 3.675 MB / 0.5047 GB, free: 15.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.4954, allocations: 8.469 kB / 0.5047 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08632/0.5817, allocations: 8.306 MB / 0.5128 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006986/0.5887, allocations: 2.582 MB / 0.5153 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.5889, allocations: 192.9 kB / 0.5155 GB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007768/0.5897, allocations: 255.8 kB / 0.5157 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0127/0.6024, allocations: 8.722 MB / 0.5242 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001191/0.6025, allocations: 39.59 kB / 0.5243 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004001/0.6029, allocations: 131.8 kB / 0.5244 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003092/0.606, allocations: 1.825 MB / 0.5262 GB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01592/0.622, allocations: 7.366 MB / 0.5334 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04596/0.668, allocations: 34.07 MB / 0.5667 GB, free: 2.332 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005249/0.6733, allocations: 2.539 MB / 0.5691 GB, free: 15.65 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004719/0.6738, allocations: 323.7 kB / 0.5694 GB, free: 15.28 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.21e-05/0.6739, allocations: 51.08 kB / 0.5695 GB, free: 15.22 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 5.77e-06/0.6739, allocations: 0 / 0.5695 GB, free: 15.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.02404/0.698, allocations: 9.205 MB / 0.5785 GB, free: 5.863 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.6981, allocations: 192.6 kB / 0.5787 GB, free: 5.633 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006576/0.7047, allocations: 4.079 MB / 0.5826 GB, free: 1.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003343/0.7051, allocations: 53.69 kB / 0.5827 GB, free: 1.512 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002433/0.7075, allocations: 2.968 MB / 0.5856 GB, free: 14.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007976/0.7083, allocations: 0.5443 MB / 0.5861 GB, free: 13.95 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002498/0.7086, allocations: 112 kB / 0.5862 GB, free: 13.84 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003567/0.709, allocations: 0.5497 MB / 0.5868 GB, free: 13.28 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002791/0.7118, allocations: 1.67 MB / 0.5884 GB, free: 11.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005593/0.7174, allocations: 5.478 MB / 0.5938 GB, free: 4.199 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004746/0.7221, allocations: 2.97 MB / 0.5967 GB, free: 1.23 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.332e-05/0.7222, allocations: 40 kB / 0.5967 GB, free: 1.191 MB / 462.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01407/0.7363, allocations: 7.041 MB / 0.6036 GB, free: 10.14 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.583e-05/0.7364, allocations: 64 kB / 0.6036 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001489/0.7366, allocations: 136 kB / 0.6038 GB, free: 9.945 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.7376, allocations: 436.9 kB / 0.6042 GB, free: 9.516 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00436/0.742, allocations: 1.329 MB / 0.6055 GB, free: 8.184 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003968/0.746, allocations: 3.158 MB / 0.6086 GB, free: 4.895 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006463/0.7525, allocations: 311.5 kB / 0.6089 GB, free: 4.59 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001621/0.7542, allocations: 372 kB / 0.6092 GB, free: 4.227 MB / 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 (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.004648/0.7588, allocations: 1.936 MB / 0.6111 GB, free: 2.277 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008165/0.7597, allocations: 331.8 kB / 0.6114 GB, free: 1.949 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003212/0.7629, allocations: 1.698 MB / 0.6131 GB, free: 236 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-05/0.7629, allocations: 16 kB / 0.6131 GB, free: 220 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.7629, allocations: 112 / 0.6131 GB, free: 220 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.763, allocations: 15.88 kB / 0.6131 GB, free: 204 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01122/0.7742, allocations: 5.441 MB / 0.6184 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.7742, allocations: 0 / 0.6184 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009127/0.7752, allocations: 183.8 kB / 0.6186 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006628/0.7758, allocations: 228.7 kB / 0.6188 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.829e-05/0.776, allocations: 31.94 kB / 0.6188 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002859/0.7788, allocations: 2.577 MB / 0.6214 GB, free: 7.531 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.7788, allocations: 4 kB / 0.6214 GB, free: 7.527 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005372/0.7842, allocations: 3.727 MB / 0.625 GB, free: 3.723 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001909/0.7862, allocations: 0.5434 MB / 0.6255 GB, free: 3.156 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004482/0.7866, allocations: 24 kB / 0.6256 GB, free: 3.133 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.7877, allocations: 55.94 kB / 0.6256 GB, free: 3.078 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.7879, allocations: 68.41 kB / 0.6257 GB, free: 3.012 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.011e-05/0.788, allocations: 39.98 kB / 0.6257 GB, free: 2.973 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005607/0.7936, allocations: 2.567 MB / 0.6282 GB, free: 436 kB / 494.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7937, allocations: 0 / 0.6282 GB, free: 436 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.2683/1.062, allocations: 0.8703 MB / 0.6291 GB, free: 142.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.0006939/1.063, allocations: 161.8 kB / 0.6292 GB, free: 142.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007137/1.07, allocations: 4.067 MB / 0.6332 GB, free: 141.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/1.07, allocations: 0 / 0.6332 GB, free: 141.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001595/1.072, allocations: 1.007 MB / 0.6342 GB, free: 141.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/1.074, allocations: 363.5 kB / 0.6345 GB, free: 141.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/1.089, allocations: 9.137 MB / 0.6435 GB, free: 138 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002456/1.091, allocations: 3.031 MB / 0.6464 GB, free: 136.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004853/1.096, allocations: 1.805 MB / 0.6482 GB, free: 136.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008315/1.097, allocations: 229.2 kB / 0.6484 GB, free: 136.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.273e-06/1.097, allocations: 3.938 kB / 0.6484 GB, free: 136.7 MB / 494.1 MB Notification: Performance of Templates: time 0.07246/1.17, allocations: 28.53 MB / 0.6763 GB, free: 132 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: