Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.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.001707/0.001707, allocations: 117.2 kB / 18.5 MB, free: 4.543 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.001646/0.001646, allocations: 210.6 kB / 21.46 MB, free: 1.586 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.467/1.467, 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.2314/0.2314, allocations: 46.9 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.Distance2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2",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.002344/0.002344, allocations: 87.86 kB / 0.4912 GB, free: 8.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1173, allocations: 65.98 MB / 0.5556 GB, free: 6.457 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01155/0.1288, allocations: 9.097 MB / 0.5645 GB, free: 13.31 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007456/0.1363, allocations: 3.594 MB / 0.568 GB, free: 9.703 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001378/0.1376, allocations: 47.88 kB / 0.5681 GB, free: 9.656 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004013/0.1416, allocations: 1.939 MB / 0.57 GB, free: 7.711 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004108/0.1458, allocations: 1.603 MB / 0.5715 GB, free: 6.105 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.1471, allocations: 0.5731 MB / 0.5721 GB, free: 5.531 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005422/0.1525, allocations: 3.654 MB / 0.5757 GB, free: 1.867 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003013/0.1555, allocations: 2.073 MB / 0.5777 GB, free: 15.74 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002196/0.1577, allocations: 1.168 MB / 0.5788 GB, free: 14.57 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002497/0.1602, allocations: 1.779 MB / 0.5806 GB, free: 12.78 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005692/0.1608, allocations: 240 kB / 0.5808 GB, free: 12.55 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002025/0.1628, allocations: 1.151 MB / 0.5819 GB, free: 11.39 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001792/0.1646, allocations: 1.546 MB / 0.5834 GB, free: 9.844 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002177/0.1668, allocations: 1.794 MB / 0.5852 GB, free: 8.039 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007513/0.1743, allocations: 5.871 MB / 0.5909 GB, free: 2.145 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1743, allocations: 0 / 0.5909 GB, free: 2.145 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1743, allocations: 0 / 0.5909 GB, free: 2.145 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001354/0.1745, allocations: 0 / 0.5909 GB, free: 2.145 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.2262/0.4006, allocations: 4.054 MB / 0.5949 GB, free: 33.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.4007, allocations: 8.812 kB / 0.5949 GB, free: 33.18 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009594/0.4016, allocations: 0.5781 MB / 0.5955 GB, free: 33.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07762/0.4792, allocations: 6.963 MB / 0.6023 GB, free: 32.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006433/0.4857, allocations: 2.473 MB / 0.6047 GB, free: 31.83 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/0.4858, allocations: 183.8 kB / 0.6048 GB, free: 31.77 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000652/0.4865, allocations: 227.5 kB / 0.6051 GB, free: 31.72 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01045/0.4969, allocations: 7.73 MB / 0.6126 GB, free: 27.38 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.611e-05/0.497, allocations: 36.14 kB / 0.6126 GB, free: 27.36 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000299/0.4973, allocations: 113.4 kB / 0.6128 GB, free: 27.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002203/0.4995, allocations: 1.591 MB / 0.6143 GB, free: 26.67 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009409/0.5089, allocations: 6.46 MB / 0.6206 GB, free: 22.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03116/0.5401, allocations: 31.35 MB / 0.6512 GB, free: 6.488 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004852/0.545, allocations: 2.346 MB / 0.6535 GB, free: 4 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001461/0.5464, allocations: 0.9828 MB / 0.6545 GB, free: 3.008 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004251/0.5468, allocations: 323.3 kB / 0.6548 GB, free: 2.637 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.513e-05/0.5469, allocations: 50.44 kB / 0.6548 GB, free: 2.578 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 3.877e-06/0.5469, allocations: 0 / 0.6548 GB, free: 2.578 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02265/0.5695, allocations: 8.548 MB / 0.6632 GB, free: 9.969 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.5697, allocations: 192.4 kB / 0.6634 GB, free: 9.738 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005975/0.5756, allocations: 3.77 MB / 0.6671 GB, free: 5.977 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002276/0.5759, allocations: 41.7 kB / 0.6671 GB, free: 5.93 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002418/0.5783, allocations: 2.834 MB / 0.6699 GB, free: 3.066 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006458/0.5789, allocations: 0.5003 MB / 0.6703 GB, free: 2.562 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001493/0.5804, allocations: 1.095 MB / 0.6714 GB, free: 1.457 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.5806, allocations: 301.1 kB / 0.6717 GB, free: 1.16 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002409/0.583, allocations: 1.584 MB / 0.6733 GB, free: 15.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005515/0.5885, allocations: 5.145 MB / 0.6783 GB, free: 8.621 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008733/0.5972, allocations: 7.32 MB / 0.6854 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-05/0.5973, allocations: 36 kB / 0.6855 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01066/0.6079, allocations: 6.656 MB / 0.692 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.091e-05/0.608, allocations: 56 kB / 0.692 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001389/0.6082, allocations: 132.1 kB / 0.6921 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000898/0.6091, allocations: 404.6 kB / 0.6925 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003297/0.6124, allocations: 1.216 MB / 0.6937 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004007/0.6164, allocations: 3.333 MB / 0.697 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002995/0.6194, allocations: 291.6 kB / 0.6972 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004246/0.6198, allocations: 348 kB / 0.6976 GB, free: 2.934 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (663): * Single equations (assignments): 659 * 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.002399/0.6222, allocations: 1.771 MB / 0.6993 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004816/0.6227, allocations: 321.8 kB / 0.6996 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002673/0.6253, allocations: 1.466 MB / 0.701 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/0.6254, allocations: 12 kB / 0.7011 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.6254, allocations: 7.984 kB / 0.7011 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.6254, allocations: 3.984 kB / 0.7011 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008422/0.6338, allocations: 4.838 MB / 0.7058 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.6338, allocations: 0 / 0.7058 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007564/0.6346, allocations: 163.8 kB / 0.706 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000638/0.6352, allocations: 220.6 kB / 0.7062 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.396e-05/0.6353, allocations: 19.98 kB / 0.7062 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003291/0.6386, allocations: 2.71 MB / 0.7088 GB, free: 7.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.6386, allocations: 4.031 kB / 0.7088 GB, free: 7.176 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005168/0.6438, allocations: 3.296 MB / 0.712 GB, free: 3.855 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008123/0.6446, allocations: 370.8 kB / 0.7124 GB, free: 3.473 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003159/0.6449, allocations: 19.98 kB / 0.7124 GB, free: 3.453 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009118/0.6458, allocations: 47.95 kB / 0.7125 GB, free: 3.406 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.646, allocations: 64.53 kB / 0.7125 GB, free: 3.344 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.606e-05/0.646, allocations: 28 kB / 0.7126 GB, free: 3.316 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003641/0.6497, allocations: 2.346 MB / 0.7148 GB, free: 0.9844 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.1e-08/0.6497, allocations: 0 / 0.7148 GB, free: 0.9844 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004217/0.6539, allocations: 0.7694 MB / 0.7156 GB, free: 220 kB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.005602/0.6595, allocations: 3.923 MB / 0.7194 GB, free: 12.26 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006261/0.6658, allocations: 3.683 MB / 0.723 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.6658, allocations: 0 / 0.723 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001506/0.6673, allocations: 0.8886 MB / 0.7239 GB, free: 7.688 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002314/0.6696, allocations: 380.3 kB / 0.7243 GB, free: 7.32 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06137/0.7309, allocations: 37.2 MB / 0.7606 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004169/0.7351, allocations: 2.72 MB / 0.7632 GB, free: 9.992 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004507/0.7396, allocations: 1.707 MB / 0.7649 GB, free: 8.285 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002487/0.7421, allocations: 1.46 MB / 0.7663 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of SimCode: time 1.322e-06/0.7421, allocations: 0 / 0.7663 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1194/0.8615, allocations: 54.53 MB / 0.8196 GB, free: 0.5352 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.56/26.42, allocations: 3.438 kB / 0.8196 GB, free: 0.5352 MB / 0.6231 GB " [Timeout remaining time 633] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --stepSize=9.996e-05 --timeout=50 --tolerance=1e-10 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 29.456555614247918] Failed to read output from testmodel.py, exit status != 0: ['time', 'distance1.distance', 'distance2.distance'] 26.539526424370706 26.560770553 26.382124946 Calling exit ...