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.001445/0.001445, allocations: 105 kB / 19.74 MB, free: 2.566 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.001677/0.001677, allocations: 217.2 kB / 22.92 MB, free: 5.535 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.285/1.285, allocations: 230.2 MB / 256.1 MB, free: 8.762 MB / 206.1 MB " [Timeout remaining time 179] 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.1958/0.1958, allocations: 46.88 MB / 359.3 MB, free: 4.988 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.002212/0.002212, allocations: 83.86 kB / 0.494 GB, free: 9.109 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.259, allocations: 65.98 MB / 0.5584 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.009789/0.2688, allocations: 8.989 MB / 0.5672 GB, free: 12.19 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005832/0.2746, allocations: 3.582 MB / 0.5707 GB, free: 8.59 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005164/0.2752, allocations: 47.88 kB / 0.5707 GB, free: 8.543 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002832/0.278, allocations: 1.693 MB / 0.5724 GB, free: 6.844 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002627/0.2806, allocations: 1.579 MB / 0.5739 GB, free: 5.262 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009836/0.2816, allocations: 0.5575 MB / 0.5745 GB, free: 4.703 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004083/0.2857, allocations: 3.572 MB / 0.578 GB, free: 1.121 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001811/0.2875, allocations: 1.63 MB / 0.5796 GB, free: 15.44 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001215/0.2887, allocations: 1.098 MB / 0.5806 GB, free: 14.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001954/0.2907, allocations: 1.666 MB / 0.5823 GB, free: 12.66 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003661/0.291, allocations: 220 kB / 0.5825 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00178/0.2928, allocations: 1.131 MB / 0.5836 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001237/0.294, allocations: 1.457 MB / 0.585 GB, free: 9.855 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001488/0.2955, allocations: 1.681 MB / 0.5866 GB, free: 8.164 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005811/0.3013, allocations: 5.576 MB / 0.5921 GB, free: 2.566 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3013, allocations: 0 / 0.5921 GB, free: 2.566 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3013, allocations: 0 / 0.5921 GB, free: 2.566 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001264/0.3015, allocations: 0 / 0.5921 GB, free: 2.566 MB / 430.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.008151/0.3096, allocations: 3.885 MB / 0.5959 GB, free: 14.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.3097, allocations: 8.031 kB / 0.5959 GB, free: 14.6 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006624/0.3103, allocations: 0.5423 MB / 0.5964 GB, free: 14.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08052/0.3908, allocations: 6.955 MB / 0.6032 GB, free: 7.078 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004775/0.3956, allocations: 2.405 MB / 0.6055 GB, free: 4.621 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.3957, allocations: 164.5 kB / 0.6057 GB, free: 4.457 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000385/0.3961, allocations: 219.8 kB / 0.6059 GB, free: 4.242 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009445/0.4056, allocations: 7.336 MB / 0.6131 GB, free: 12.28 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.649e-05/0.4056, allocations: 39.69 kB / 0.6131 GB, free: 12.24 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002635/0.4059, allocations: 107.9 kB / 0.6132 GB, free: 12.13 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002382/0.4083, allocations: 1.542 MB / 0.6147 GB, free: 10.59 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009435/0.4177, allocations: 6.19 MB / 0.6208 GB, free: 4.383 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02966/0.4474, allocations: 29.91 MB / 0.65 GB, free: 5.551 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004164/0.4516, allocations: 2.098 MB / 0.652 GB, free: 3.305 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001268/0.4528, allocations: 0.9846 MB / 0.653 GB, free: 2.309 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003536/0.4532, allocations: 319.6 kB / 0.6533 GB, free: 1.941 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.4532, allocations: 51.05 kB / 0.6533 GB, free: 1.883 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 2.936e-06/0.4532, allocations: 0 / 0.6533 GB, free: 1.883 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03091/0.4841, allocations: 11.04 MB / 0.6641 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.4842, allocations: 192.6 kB / 0.6643 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004348/0.4886, allocations: 3.618 MB / 0.6678 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.4887, allocations: 45.69 kB / 0.6679 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001771/0.4904, allocations: 2.663 MB / 0.6705 GB, free: 148 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004782/0.4909, allocations: 0.5507 MB / 0.671 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00119/0.4921, allocations: 1.056 MB / 0.6721 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.4922, allocations: 305.3 kB / 0.6724 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00226/0.4945, allocations: 1.626 MB / 0.6739 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004617/0.4991, allocations: 4.969 MB / 0.6788 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007666/0.5068, allocations: 7.179 MB / 0.6858 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.507e-05/0.5068, allocations: 36 kB / 0.6858 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.009407/0.5162, allocations: 6.563 MB / 0.6922 GB, free: 6.488 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.387e-05/0.5163, allocations: 56 kB / 0.6923 GB, free: 6.434 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001139/0.5164, allocations: 116 kB / 0.6924 GB, free: 6.32 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008263/0.5172, allocations: 404.6 kB / 0.6928 GB, free: 5.922 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003062/0.5203, allocations: 1.193 MB / 0.694 GB, free: 4.727 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003514/0.5238, allocations: 3.317 MB / 0.6972 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002654/0.5265, allocations: 283.7 kB / 0.6975 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003544/0.5268, allocations: 324 kB / 0.6978 GB, free: 0.6758 MB / 0.5294 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.002048/0.5289, allocations: 1.705 MB / 0.6994 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003973/0.5293, allocations: 313.9 kB / 0.6997 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002811/0.5321, allocations: 1.717 MB / 0.7014 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.22e-05/0.5321, allocations: 19.98 kB / 0.7014 GB, free: 12.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.5321, allocations: 7.938 kB / 0.7015 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.5321, allocations: 3.984 kB / 0.7015 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007432/0.5395, allocations: 5.247 MB / 0.7066 GB, free: 7.551 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.5395, allocations: 0 / 0.7066 GB, free: 7.551 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008989/0.5404, allocations: 203.6 kB / 0.7068 GB, free: 7.352 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006048/0.541, allocations: 220.7 kB / 0.707 GB, free: 7.133 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-05/0.5411, allocations: 23.98 kB / 0.707 GB, free: 7.109 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002799/0.5439, allocations: 2.692 MB / 0.7096 GB, free: 4.27 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/0.5439, allocations: 7.969 kB / 0.7096 GB, free: 4.262 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004793/0.5487, allocations: 3.73 MB / 0.7133 GB, free: 0.5039 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000474/0.5492, allocations: 366.9 kB / 0.7136 GB, free: 128 kB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002472/0.5494, allocations: 23.98 kB / 0.7137 GB, free: 104 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009919/0.5504, allocations: 63.91 kB / 0.7137 GB, free: 40 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.5506, allocations: 72.44 kB / 0.7138 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-05/0.5507, allocations: 36 kB / 0.7138 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002941/0.5536, allocations: 2.269 MB / 0.716 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/0.5536, allocations: 0 / 0.716 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003247/0.5569, allocations: 0.7616 MB / 0.7168 GB, free: 12.91 MB / 0.5606 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.005401/0.5623, allocations: 4.362 MB / 0.721 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006184/0.5685, allocations: 3.783 MB / 0.7247 GB, free: 4.738 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.5685, allocations: 0 / 0.7247 GB, free: 4.738 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001442/0.5699, allocations: 0.9983 MB / 0.7257 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00195/0.5719, allocations: 363.1 kB / 0.7261 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2241/0.7959, allocations: 36.6 MB / 0.7618 GB, free: 130.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001732/0.7977, allocations: 2.633 MB / 0.7644 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002652/0.8003, allocations: 1.696 MB / 0.766 GB, free: 126.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001184/0.8015, allocations: 1.409 MB / 0.7674 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.032e-06/0.8015, allocations: 0 / 0.7674 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07457/0.8761, allocations: 54.02 MB / 0.8202 GB, free: 71.45 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.38/20.26, allocations: 4 kB / 0.8202 GB, free: 71.45 MB / 0.5606 GB " [Timeout remaining time 640] (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 --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: 22.797807045004447]