Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001732/0.001732, allocations: 120.4 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002131/0.002131, allocations: 208.9 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.538/1.538, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2389/0.2389, allocations: 46.88 MB / 357.4 MB, free: 10.53 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002458/0.002458, allocations: 83.86 kB / 0.4912 GB, free: 8.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1386, allocations: 65.99 MB / 0.5556 GB, free: 6.461 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01256/0.1511, allocations: 8.964 MB / 0.5644 GB, free: 13.45 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009232/0.1604, allocations: 3.567 MB / 0.5679 GB, free: 9.867 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002028/0.1624, allocations: 51.81 kB / 0.5679 GB, free: 9.816 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004156/0.1666, allocations: 1.693 MB / 0.5696 GB, free: 8.117 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004782/0.1713, allocations: 1.572 MB / 0.5711 GB, free: 6.539 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001655/0.173, allocations: 0.5575 MB / 0.5717 GB, free: 5.98 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005884/0.1789, allocations: 3.576 MB / 0.5752 GB, free: 2.398 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003167/0.182, allocations: 1.869 MB / 0.577 GB, free: 488 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002348/0.1844, allocations: 1.102 MB / 0.5781 GB, free: 15.37 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003029/0.1874, allocations: 1.67 MB / 0.5797 GB, free: 13.7 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009679/0.1884, allocations: 223.9 kB / 0.5799 GB, free: 13.48 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002914/0.1913, allocations: 1.127 MB / 0.581 GB, free: 12.35 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002222/0.1935, allocations: 1.453 MB / 0.5824 GB, free: 10.89 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003009/0.1965, allocations: 1.689 MB / 0.5841 GB, free: 9.191 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008535/0.2051, allocations: 5.564 MB / 0.5895 GB, free: 3.605 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.828e-06/0.2051, allocations: 4 kB / 0.5895 GB, free: 3.602 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.2051, allocations: 0 / 0.5895 GB, free: 3.602 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002061/0.2053, allocations: 4 kB / 0.5895 GB, free: 3.598 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.2826/0.4879, allocations: 3.874 MB / 0.5933 GB, free: 33.06 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.4879, allocations: 14.09 kB / 0.5933 GB, free: 33.06 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001523/0.4894, allocations: 0.5361 MB / 0.5938 GB, free: 32.99 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08366/0.5731, allocations: 6.949 MB / 0.6006 GB, free: 32.72 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007442/0.5805, allocations: 2.401 MB / 0.603 GB, free: 32.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000239/0.5808, allocations: 167.1 kB / 0.6031 GB, free: 32.15 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001123/0.5819, allocations: 215 kB / 0.6033 GB, free: 32.1 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01549/0.5974, allocations: 7.343 MB / 0.6105 GB, free: 28.39 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002028/0.5976, allocations: 39.11 kB / 0.6105 GB, free: 28.37 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007559/0.5983, allocations: 106 kB / 0.6106 GB, free: 28.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002871/0.6012, allocations: 1.545 MB / 0.6122 GB, free: 27.72 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01229/0.6135, allocations: 6.189 MB / 0.6182 GB, free: 24.83 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0327/0.6462, allocations: 29.91 MB / 0.6474 GB, free: 10.22 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004991/0.6512, allocations: 2.101 MB / 0.6495 GB, free: 7.969 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/0.6528, allocations: 0.9825 MB / 0.6504 GB, free: 6.977 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004713/0.6533, allocations: 319.5 kB / 0.6507 GB, free: 6.609 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.162e-05/0.6534, allocations: 50.09 kB / 0.6508 GB, free: 6.555 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 4.048e-06/0.6534, allocations: 0 / 0.6508 GB, free: 6.555 MB / 462.1 MB Notification: Performance of matching and sorting (n=132): time 0.03859/0.692, allocations: 11.06 MB / 0.6616 GB, free: 11.44 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.6921, allocations: 196.6 kB / 0.6618 GB, free: 11.21 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007446/0.6996, allocations: 3.618 MB / 0.6653 GB, free: 7.59 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003414/0.6999, allocations: 41.7 kB / 0.6653 GB, free: 7.543 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003066/0.703, allocations: 2.671 MB / 0.6679 GB, free: 4.848 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009051/0.7039, allocations: 0.5544 MB / 0.6685 GB, free: 4.289 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002164/0.706, allocations: 1.044 MB / 0.6695 GB, free: 3.234 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.7062, allocations: 301.1 kB / 0.6698 GB, free: 2.938 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003297/0.7095, allocations: 1.634 MB / 0.6714 GB, free: 1.297 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006701/0.7162, allocations: 4.969 MB / 0.6762 GB, free: 10.64 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/0.7264, allocations: 7.168 MB / 0.6832 GB, free: 1.809 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001341/0.7265, allocations: 32 kB / 0.6833 GB, free: 1.777 MB / 494.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01356/0.7401, allocations: 6.573 MB / 0.6897 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.01e-05/0.7402, allocations: 63.92 kB / 0.6897 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001616/0.7404, allocations: 120 kB / 0.6899 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.7414, allocations: 393.2 kB / 0.6902 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004023/0.7454, allocations: 1.189 MB / 0.6914 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0044/0.7498, allocations: 3.318 MB / 0.6946 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003816/0.7536, allocations: 287.6 kB / 0.6949 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008812/0.7545, allocations: 320 kB / 0.6952 GB, free: 5.398 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (640): * Single equations (assignments): 636 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003231/0.7578, allocations: 1.713 MB / 0.6969 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007594/0.7585, allocations: 317.8 kB / 0.6972 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003656/0.7622, allocations: 1.714 MB / 0.6989 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-05/0.7622, allocations: 12 kB / 0.6989 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.7622, allocations: 4 kB / 0.6989 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.501e-05/0.7622, allocations: 7.984 kB / 0.6989 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/0.7744, allocations: 5.235 MB / 0.704 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/0.7744, allocations: 0 / 0.704 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.7755, allocations: 199.7 kB / 0.7042 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007742/0.7763, allocations: 229 kB / 0.7044 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001757/0.7765, allocations: 24 kB / 0.7044 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003596/0.78, allocations: 2.696 MB / 0.7071 GB, free: 8.996 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.7801, allocations: 0 / 0.7071 GB, free: 8.996 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006491/0.7865, allocations: 3.729 MB / 0.7107 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.7876, allocations: 370.8 kB / 0.7111 GB, free: 4.852 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006855/0.7883, allocations: 28.05 kB / 0.7111 GB, free: 4.824 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001607/0.7899, allocations: 71.91 kB / 0.7112 GB, free: 4.754 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003129/0.7902, allocations: 72.44 kB / 0.7112 GB, free: 4.684 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.7903, allocations: 36 kB / 0.7113 GB, free: 4.648 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004528/0.7948, allocations: 2.261 MB / 0.7135 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7948, allocations: 0 / 0.7135 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004618/0.7994, allocations: 0.7577 MB / 0.7142 GB, free: 1.641 MB / 0.5137 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 (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.007394/0.8068, allocations: 4.36 MB / 0.7185 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007652/0.8145, allocations: 3.796 MB / 0.7222 GB, free: 9.457 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/0.8145, allocations: 192 / 0.7222 GB, free: 9.457 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001932/0.8164, allocations: 0.9951 MB / 0.7231 GB, free: 8.449 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003041/0.8195, allocations: 376.7 kB / 0.7235 GB, free: 8.082 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0687/0.8882, allocations: 36.54 MB / 0.7592 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004591/0.8928, allocations: 2.639 MB / 0.7618 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005114/0.8979, allocations: 1.694 MB / 0.7634 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002952/0.9008, allocations: 1.405 MB / 0.7648 GB, free: 8.746 MB / 0.5762 GB Notification: Performance of SimCode: time 2.425e-06/0.9008, allocations: 0 / 0.7648 GB, free: 8.746 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1202/1.021, allocations: 53.73 MB / 0.8173 GB, free: 3.246 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.25/23.27, allocations: 0 / 0.8173 GB, free: 3.246 MB / 0.6231 GB " [Timeout remaining time 637] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.482844503130764] Failed to read output from testmodel.py, exit status != 0: ['time', 'Distance1.distance'] 23.3951358650811 23.422331423 23.211581349 Calling exit ...