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.001837/0.001837, allocations: 109 kB / 21.23 MB, free: 0.6641 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.00223/0.00223, allocations: 213.6 kB / 24.54 MB, free: 4.02 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.474/1.474, allocations: 230.5 MB / 258.2 MB, free: 7.977 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.2252/0.2252, allocations: 46.93 MB / 361.6 MB, free: 4.152 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.002469/0.002469, allocations: 79.88 kB / 0.497 GB, free: 7.738 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3379, allocations: 66.08 MB / 0.5615 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0116/0.3495, allocations: 8.989 MB / 0.5703 GB, free: 11.22 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007824/0.3573, allocations: 3.594 MB / 0.5738 GB, free: 7.617 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001566/0.3589, allocations: 55.75 kB / 0.5738 GB, free: 7.562 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003809/0.3627, allocations: 1.693 MB / 0.5755 GB, free: 5.863 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004201/0.3669, allocations: 1.58 MB / 0.577 GB, free: 4.277 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001472/0.3684, allocations: 0.5653 MB / 0.5776 GB, free: 3.711 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005531/0.3739, allocations: 3.584 MB / 0.5811 GB, free: 124 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002731/0.3766, allocations: 1.817 MB / 0.5829 GB, free: 14.25 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001831/0.3785, allocations: 1.113 MB / 0.584 GB, free: 13.13 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002732/0.3812, allocations: 1.67 MB / 0.5856 GB, free: 11.45 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006801/0.3819, allocations: 220 kB / 0.5858 GB, free: 11.24 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00234/0.3842, allocations: 1.139 MB / 0.5869 GB, free: 10.1 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001774/0.386, allocations: 1.457 MB / 0.5883 GB, free: 8.637 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002422/0.3884, allocations: 1.674 MB / 0.59 GB, free: 6.953 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007803/0.3962, allocations: 5.58 MB / 0.5954 GB, free: 1.352 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.3962, allocations: 0 / 0.5954 GB, free: 1.352 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3962, allocations: 0 / 0.5954 GB, free: 1.352 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001784/0.3964, allocations: 0 / 0.5954 GB, free: 1.352 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.01032/0.4067, allocations: 3.809 MB / 0.5991 GB, free: 13.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.4068, allocations: 8.031 kB / 0.5991 GB, free: 13.47 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001091/0.4079, allocations: 0.5423 MB / 0.5997 GB, free: 12.92 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0778/0.4857, allocations: 6.943 MB / 0.6065 GB, free: 5.965 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006427/0.4921, allocations: 2.333 MB / 0.6087 GB, free: 3.598 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.4923, allocations: 161.4 kB / 0.6089 GB, free: 3.438 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007805/0.4931, allocations: 219.8 kB / 0.6091 GB, free: 3.223 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01365/0.5067, allocations: 7.343 MB / 0.6163 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001215/0.5068, allocations: 43.62 kB / 0.6163 GB, free: 11.21 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004524/0.5073, allocations: 111.9 kB / 0.6164 GB, free: 11.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002835/0.5101, allocations: 1.535 MB / 0.6179 GB, free: 9.559 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01272/0.5228, allocations: 6.197 MB / 0.624 GB, free: 3.348 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04158/0.5644, allocations: 29.78 MB / 0.653 GB, free: 4.641 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004767/0.5692, allocations: 1.637 MB / 0.6546 GB, free: 2.965 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/0.5708, allocations: 0.9868 MB / 0.6556 GB, free: 1.969 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003446/0.5712, allocations: 88.3 kB / 0.6557 GB, free: 1.883 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.88e-05/0.5712, allocations: 54.94 kB / 0.6557 GB, free: 1.82 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.927e-06/0.5712, allocations: 0 / 0.6557 GB, free: 1.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03584/0.6071, allocations: 10.9 MB / 0.6664 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.6072, allocations: 192.6 kB / 0.6666 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006096/0.6133, allocations: 3.622 MB / 0.6701 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002678/0.6136, allocations: 41.7 kB / 0.6701 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002614/0.6162, allocations: 2.671 MB / 0.6728 GB, free: 264 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008208/0.617, allocations: 0.5468 MB / 0.6733 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00167/0.6187, allocations: 1.064 MB / 0.6743 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.6188, allocations: 301.1 kB / 0.6746 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002752/0.6216, allocations: 1.626 MB / 0.6762 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005934/0.6275, allocations: 4.969 MB / 0.6811 GB, free: 6.043 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009728/0.6373, allocations: 7.164 MB / 0.6881 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.599e-05/0.6373, allocations: 36 kB / 0.6881 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01356/0.6509, allocations: 6.574 MB / 0.6945 GB, free: 6.605 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.94e-05/0.651, allocations: 64.16 kB / 0.6946 GB, free: 6.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001528/0.6511, allocations: 116 kB / 0.6947 GB, free: 6.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.6522, allocations: 404.5 kB / 0.6951 GB, free: 6.031 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004063/0.6562, allocations: 1.189 MB / 0.6962 GB, free: 4.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004489/0.6607, allocations: 3.206 MB / 0.6994 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003774/0.6645, allocations: 279.7 kB / 0.6996 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007388/0.6652, allocations: 332 kB / 0.6999 GB, free: 0.9219 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.003087/0.6683, allocations: 1.698 MB / 0.7016 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006397/0.669, allocations: 321.8 kB / 0.7019 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003542/0.6725, allocations: 1.71 MB / 0.7036 GB, free: 13.17 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.698e-05/0.6725, allocations: 19.98 kB / 0.7036 GB, free: 13.15 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/0.6726, allocations: 4 kB / 0.7036 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-05/0.6726, allocations: 7.969 kB / 0.7036 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/0.6834, allocations: 5.199 MB / 0.7087 GB, free: 7.855 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.612e-05/0.6834, allocations: 7.984 kB / 0.7087 GB, free: 7.848 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.6845, allocations: 195.7 kB / 0.7089 GB, free: 7.656 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007407/0.6852, allocations: 228.6 kB / 0.7091 GB, free: 7.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/0.6853, allocations: 27.98 kB / 0.7091 GB, free: 7.402 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003445/0.6888, allocations: 2.585 MB / 0.7116 GB, free: 4.699 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.6888, allocations: 4.062 kB / 0.7117 GB, free: 4.695 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006152/0.6949, allocations: 3.744 MB / 0.7153 GB, free: 0.9219 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008279/0.6958, allocations: 293.7 kB / 0.7156 GB, free: 0.6328 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003553/0.6961, allocations: 19.98 kB / 0.7156 GB, free: 0.6133 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.6972, allocations: 67.92 kB / 0.7157 GB, free: 0.5469 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001999/0.6974, allocations: 80.45 kB / 0.7157 GB, free: 480 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.6975, allocations: 43.98 kB / 0.7158 GB, free: 436 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003854/0.7013, allocations: 2.261 MB / 0.718 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.01e-07/0.7013, allocations: 0 / 0.718 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003965/0.7053, allocations: 0.7538 MB / 0.7187 GB, free: 13.42 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.006764/0.7121, allocations: 4.36 MB / 0.723 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007142/0.7192, allocations: 3.791 MB / 0.7267 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.7192, allocations: 0 / 0.7267 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001719/0.7209, allocations: 0.9823 MB / 0.7277 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00237/0.7233, allocations: 386.3 kB / 0.728 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3031/1.026, allocations: 36.58 MB / 0.7637 GB, free: 130.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002597/1.029, allocations: 2.636 MB / 0.7663 GB, free: 127.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00337/1.032, allocations: 1.701 MB / 0.768 GB, free: 126 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00188/1.034, allocations: 1.409 MB / 0.7694 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.082e-06/1.034, allocations: 0 / 0.7694 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09335/1.128, allocations: 57.87 MB / 0.8259 GB, free: 66.98 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.97/24.1, allocations: 10.95 kB / 0.8259 GB, free: 66.97 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 & /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.938845635857433] Failed to read output from testmodel.py, exit status != 0: ['time', 'Distance1.distance'] 24.226522954646498 24.235560802 23.836744936 Calling exit ...