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.001696/0.001696, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.00201/0.00201, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.478/1.478, allocations: 230.5 MB / 258.2 MB, free: 8.062 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.2329/0.2329, allocations: 46.93 MB / 361.6 MB, free: 4.23 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.002481/0.002481, allocations: 83.88 kB / 0.497 GB, free: 7.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3512, allocations: 66.08 MB / 0.5615 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01151/0.3627, allocations: 9.004 MB / 0.5703 GB, free: 11.31 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008478/0.3712, allocations: 3.59 MB / 0.5738 GB, free: 7.707 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00179/0.373, allocations: 55.75 kB / 0.5739 GB, free: 7.652 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003792/0.3768, allocations: 1.693 MB / 0.5755 GB, free: 5.953 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005677/0.3824, allocations: 1.576 MB / 0.577 GB, free: 4.371 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001621/0.3841, allocations: 0.5653 MB / 0.5776 GB, free: 3.805 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006503/0.3906, allocations: 3.58 MB / 0.5811 GB, free: 224 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003004/0.3936, allocations: 1.825 MB / 0.5829 GB, free: 14.34 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002192/0.3958, allocations: 1.109 MB / 0.584 GB, free: 13.22 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002833/0.3986, allocations: 1.678 MB / 0.5856 GB, free: 11.54 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006353/0.3992, allocations: 220 kB / 0.5858 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002255/0.4015, allocations: 1.131 MB / 0.5869 GB, free: 10.19 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001713/0.4032, allocations: 1.449 MB / 0.5883 GB, free: 8.738 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002122/0.4053, allocations: 1.685 MB / 0.59 GB, free: 7.043 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007468/0.4128, allocations: 5.576 MB / 0.5954 GB, free: 1.445 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.4128, allocations: 0 / 0.5954 GB, free: 1.445 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4128, allocations: 0 / 0.5954 GB, free: 1.445 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001544/0.413, allocations: 4 kB / 0.5954 GB, free: 1.441 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.01/0.423, allocations: 3.802 MB / 0.5991 GB, free: 13.58 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/0.423, allocations: 12.03 kB / 0.5991 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001018/0.424, allocations: 0.5423 MB / 0.5997 GB, free: 13.01 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07442/0.4984, allocations: 6.943 MB / 0.6065 GB, free: 6.059 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005953/0.5044, allocations: 2.333 MB / 0.6087 GB, free: 3.688 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/0.5045, allocations: 164.4 kB / 0.6089 GB, free: 3.523 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006025/0.5051, allocations: 227.8 kB / 0.6091 GB, free: 3.301 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01218/0.5173, allocations: 7.336 MB / 0.6163 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001069/0.5174, allocations: 35.7 kB / 0.6163 GB, free: 11.3 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003183/0.5177, allocations: 111.9 kB / 0.6164 GB, free: 11.19 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002608/0.5204, allocations: 1.55 MB / 0.6179 GB, free: 9.641 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01204/0.5324, allocations: 6.178 MB / 0.624 GB, free: 3.449 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0384/0.5708, allocations: 29.78 MB / 0.653 GB, free: 4.742 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004503/0.5753, allocations: 1.643 MB / 0.6547 GB, free: 3.062 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001552/0.5768, allocations: 0.9963 MB / 0.6556 GB, free: 2.055 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002978/0.5771, allocations: 88.31 kB / 0.6557 GB, free: 1.969 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.643e-05/0.5772, allocations: 39 kB / 0.6557 GB, free: 1.922 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.757e-06/0.5772, allocations: 0 / 0.6557 GB, free: 1.922 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03517/0.6124, allocations: 10.9 MB / 0.6664 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.6125, allocations: 196.8 kB / 0.6666 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005552/0.618, allocations: 3.614 MB / 0.6701 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002506/0.6183, allocations: 45.64 kB / 0.6702 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002211/0.6205, allocations: 2.675 MB / 0.6728 GB, free: 352 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007924/0.6213, allocations: 0.5507 MB / 0.6733 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001488/0.6228, allocations: 1.048 MB / 0.6743 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.6229, allocations: 305.1 kB / 0.6746 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002693/0.6256, allocations: 1.626 MB / 0.6762 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00566/0.6313, allocations: 4.969 MB / 0.6811 GB, free: 6.137 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009166/0.6404, allocations: 7.166 MB / 0.6881 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-05/0.6405, allocations: 32 kB / 0.6881 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01269/0.6532, allocations: 6.576 MB / 0.6945 GB, free: 6.695 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.333e-05/0.6533, allocations: 56 kB / 0.6946 GB, free: 6.641 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000142/0.6534, allocations: 120 kB / 0.6947 GB, free: 6.523 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009982/0.6544, allocations: 396.8 kB / 0.6951 GB, free: 6.133 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004004/0.6584, allocations: 1.193 MB / 0.6962 GB, free: 4.938 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004177/0.6626, allocations: 3.213 MB / 0.6994 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003788/0.6664, allocations: 287.5 kB / 0.6996 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000753/0.6672, allocations: 324 kB / 0.6999 GB, free: 1.012 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.003004/0.6702, allocations: 1.702 MB / 0.7016 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006912/0.6709, allocations: 313.9 kB / 0.7019 GB, free: 14.99 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003442/0.6743, allocations: 1.717 MB / 0.7036 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.794e-05/0.6743, allocations: 19.98 kB / 0.7036 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.6743, allocations: 7.938 kB / 0.7036 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.6744, allocations: 7.984 kB / 0.7036 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009985/0.6843, allocations: 5.203 MB / 0.7087 GB, free: 7.938 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.6844, allocations: 0 / 0.7087 GB, free: 7.938 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.6854, allocations: 199.7 kB / 0.7089 GB, free: 7.742 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007299/0.6862, allocations: 224.9 kB / 0.7091 GB, free: 7.52 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000129/0.6863, allocations: 20 kB / 0.7091 GB, free: 7.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003249/0.6895, allocations: 2.597 MB / 0.7117 GB, free: 4.785 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.6895, allocations: 7.938 kB / 0.7117 GB, free: 4.777 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005909/0.6955, allocations: 3.729 MB / 0.7153 GB, free: 1.02 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008968/0.6964, allocations: 293.8 kB / 0.7156 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003605/0.6967, allocations: 27.92 kB / 0.7156 GB, free: 0.7031 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.6978, allocations: 67.91 kB / 0.7157 GB, free: 0.6367 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/0.698, allocations: 80.52 kB / 0.7158 GB, free: 0.5586 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.6981, allocations: 28 kB / 0.7158 GB, free: 0.5312 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003573/0.7017, allocations: 2.269 MB / 0.718 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.7017, allocations: 0 / 0.718 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003738/0.7054, allocations: 0.7578 MB / 0.7187 GB, free: 13.52 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.006183/0.7116, allocations: 4.365 MB / 0.723 GB, free: 9.109 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006561/0.7182, allocations: 3.794 MB / 0.7267 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.7182, allocations: 0 / 0.7267 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.7197, allocations: 0.9948 MB / 0.7277 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002147/0.7219, allocations: 355.9 kB / 0.728 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2692/0.9911, allocations: 36.6 MB / 0.7637 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002153/0.9932, allocations: 2.635 MB / 0.7663 GB, free: 128 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003241/0.9964, allocations: 1.698 MB / 0.768 GB, free: 126.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001742/0.9982, allocations: 1.405 MB / 0.7694 GB, free: 124.9 MB / 0.5606 GB Notification: Performance of SimCode: time 8.01e-07/0.9982, allocations: 0 / 0.7694 GB, free: 124.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09271/1.091, allocations: 57.88 MB / 0.8259 GB, free: 67.34 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.19/24.28, allocations: 4 kB / 0.8259 GB, free: 67.33 MB / 0.5606 GB " [Timeout remaining time 636] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 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: 27.307643652893603] Failed to read output from testmodel.py, exit status != 0: ['time', 'Distance1.distance'] 24.409833774436265 24.429009254 24.011936312 Calling exit ...