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.001343/0.001343, allocations: 121.2 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.001493/0.001493, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.489/1.489, allocations: 230.4 MB / 254.7 MB, free: 15.04 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.2298/0.2298, allocations: 46.93 MB / 357.7 MB, free: 10.22 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.002325/0.002325, allocations: 79.88 kB / 0.4917 GB, free: 7.773 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1129, allocations: 66.04 MB / 0.5562 GB, free: 5.602 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01068/0.1236, allocations: 8.964 MB / 0.5649 GB, free: 12.59 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006984/0.1305, allocations: 3.57 MB / 0.5684 GB, free: 9.004 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.1316, allocations: 55.75 kB / 0.5684 GB, free: 8.949 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003405/0.135, allocations: 1.689 MB / 0.5701 GB, free: 7.254 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004296/0.1393, allocations: 1.576 MB / 0.5716 GB, free: 5.676 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001497/0.1408, allocations: 0.5614 MB / 0.5722 GB, free: 5.113 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005831/0.1466, allocations: 3.568 MB / 0.5757 GB, free: 1.535 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003094/0.1497, allocations: 1.876 MB / 0.5775 GB, free: 15.61 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00218/0.1519, allocations: 1.121 MB / 0.5786 GB, free: 14.48 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002582/0.1545, allocations: 1.663 MB / 0.5802 GB, free: 12.81 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006723/0.1552, allocations: 220 kB / 0.5804 GB, free: 12.6 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002324/0.1575, allocations: 1.131 MB / 0.5815 GB, free: 11.46 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001754/0.1592, allocations: 1.453 MB / 0.583 GB, free: 10.01 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002049/0.1613, allocations: 1.681 MB / 0.5846 GB, free: 8.316 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006712/0.168, allocations: 5.58 MB / 0.59 GB, free: 2.715 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.168, allocations: 0 / 0.59 GB, free: 2.715 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.168, allocations: 0 / 0.59 GB, free: 2.715 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001271/0.1681, allocations: 3.938 kB / 0.59 GB, free: 2.711 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.2757/0.4438, allocations: 3.874 MB / 0.5938 GB, free: 32.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.4439, allocations: 10.69 kB / 0.5938 GB, free: 32.47 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008191/0.4447, allocations: 0.5432 MB / 0.5944 GB, free: 32.41 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09012/0.5348, allocations: 6.943 MB / 0.6011 GB, free: 32.13 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006178/0.541, allocations: 2.404 MB / 0.6035 GB, free: 31.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001957/0.5412, allocations: 162.5 kB / 0.6037 GB, free: 31.47 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000751/0.5419, allocations: 219 kB / 0.6039 GB, free: 31.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/0.5536, allocations: 7.342 MB / 0.611 GB, free: 27.57 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001133/0.5537, allocations: 42.98 kB / 0.6111 GB, free: 27.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002976/0.554, allocations: 107.8 kB / 0.6112 GB, free: 27.51 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00245/0.5565, allocations: 1.543 MB / 0.6127 GB, free: 26.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01032/0.5668, allocations: 6.184 MB / 0.6187 GB, free: 23.84 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02841/0.5952, allocations: 29.91 MB / 0.6479 GB, free: 9.227 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004779/0.6, allocations: 2.099 MB / 0.65 GB, free: 6.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001691/0.6017, allocations: 0.9807 MB / 0.6509 GB, free: 5.988 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004567/0.6021, allocations: 319.5 kB / 0.6512 GB, free: 5.621 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.839e-05/0.6022, allocations: 54.34 kB / 0.6513 GB, free: 5.562 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 3.907e-06/0.6022, allocations: 4 kB / 0.6513 GB, free: 5.559 MB / 462.1 MB Notification: Performance of matching and sorting (n=132): time 0.03514/0.6373, allocations: 11.05 MB / 0.6621 GB, free: 10.42 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/0.6375, allocations: 200.1 kB / 0.6623 GB, free: 10.18 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005627/0.6431, allocations: 3.61 MB / 0.6658 GB, free: 6.574 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003191/0.6434, allocations: 45.64 kB / 0.6658 GB, free: 6.523 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00245/0.6459, allocations: 2.671 MB / 0.6685 GB, free: 3.828 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007899/0.6466, allocations: 0.5467 MB / 0.669 GB, free: 3.277 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001552/0.6482, allocations: 1.048 MB / 0.67 GB, free: 2.219 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.6483, allocations: 305.1 kB / 0.6703 GB, free: 1.918 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002692/0.651, allocations: 1.634 MB / 0.6719 GB, free: 284 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00569/0.6567, allocations: 4.969 MB / 0.6768 GB, free: 9.621 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009607/0.6663, allocations: 7.179 MB / 0.6838 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.443e-05/0.6664, allocations: 32 kB / 0.6838 GB, free: 0.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01226/0.6787, allocations: 6.57 MB / 0.6902 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.442e-05/0.6788, allocations: 52 kB / 0.6903 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001363/0.6789, allocations: 122 kB / 0.6904 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009957/0.6799, allocations: 397.8 kB / 0.6908 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003642/0.6835, allocations: 1.185 MB / 0.6919 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004258/0.6878, allocations: 3.323 MB / 0.6952 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003769/0.6916, allocations: 287.7 kB / 0.6954 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007257/0.6923, allocations: 320 kB / 0.6957 GB, free: 4.371 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.00289/0.6952, allocations: 1.701 MB / 0.6974 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006788/0.6959, allocations: 317.8 kB / 0.6977 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003372/0.6992, allocations: 1.717 MB / 0.6994 GB, free: 0.6133 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.178e-05/0.6993, allocations: 16 kB / 0.6994 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.6993, allocations: 0 / 0.6994 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/0.6993, allocations: 11.97 kB / 0.6994 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009555/0.7088, allocations: 5.235 MB / 0.7045 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.348e-06/0.7088, allocations: 0 / 0.7045 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.7099, allocations: 196.1 kB / 0.7047 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007446/0.7106, allocations: 236.5 kB / 0.7049 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.945e-05/0.7107, allocations: 30.36 kB / 0.705 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003401/0.7141, allocations: 2.691 MB / 0.7076 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.7141, allocations: 0 / 0.7076 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005753/0.7199, allocations: 3.732 MB / 0.7112 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007898/0.7207, allocations: 370.8 kB / 0.7116 GB, free: 3.824 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002977/0.7209, allocations: 19.98 kB / 0.7116 GB, free: 3.805 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.7221, allocations: 67.92 kB / 0.7117 GB, free: 3.738 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.7223, allocations: 68.5 kB / 0.7117 GB, free: 3.672 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.736e-05/0.7224, allocations: 39.98 kB / 0.7118 GB, free: 3.633 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003476/0.7258, allocations: 2.257 MB / 0.714 GB, free: 1.387 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7258, allocations: 4.062 kB / 0.714 GB, free: 1.383 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003593/0.7294, allocations: 0.7616 MB / 0.7147 GB, free: 0.6211 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.006163/0.7356, allocations: 4.365 MB / 0.719 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006389/0.742, allocations: 3.796 MB / 0.7227 GB, free: 8.434 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.742, allocations: 0 / 0.7227 GB, free: 8.434 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00154/0.7435, allocations: 0.9993 MB / 0.7237 GB, free: 7.422 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002149/0.7457, allocations: 368.1 kB / 0.724 GB, free: 7.066 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05623/0.8019, allocations: 36.53 MB / 0.7597 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00302/0.8049, allocations: 2.642 MB / 0.7623 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003859/0.8088, allocations: 1.694 MB / 0.7639 GB, free: 9.133 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002017/0.8108, allocations: 1.405 MB / 0.7653 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of SimCode: time 1.102e-06/0.8108, allocations: 0 / 0.7653 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1103/0.9211, allocations: 53.74 MB / 0.8178 GB, free: 2.238 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.88/23.8, allocations: 4 kB / 0.8178 GB, free: 2.234 MB / 0.6231 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: 26.871557096019387] Failed to read output from testmodel.py, exit status != 0: ['time', 'Distance1.distance'] 23.918990863021463 23.946413201 23.774118958 Calling exit ...