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.001401/0.001401, 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.0015/0.0015, allocations: 217.6 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.275/1.275, allocations: 230.2 MB / 256.2 MB, free: 8.77 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.1918/0.1918, allocations: 46.89 MB / 359.3 MB, free: 5.016 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.002087/0.002087, allocations: 79.88 kB / 0.494 GB, free: 9.141 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2485, allocations: 65.97 MB / 0.5584 GB, free: 5.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009925/0.2584, allocations: 9.121 MB / 0.5673 GB, free: 12.07 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005988/0.2644, allocations: 3.613 MB / 0.5708 GB, free: 8.445 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005337/0.265, allocations: 47.88 kB / 0.5709 GB, free: 8.398 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00319/0.2682, allocations: 1.943 MB / 0.5728 GB, free: 6.449 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002704/0.2709, allocations: 1.611 MB / 0.5744 GB, free: 4.836 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009783/0.2718, allocations: 0.5731 MB / 0.5749 GB, free: 4.262 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003971/0.2758, allocations: 3.65 MB / 0.5785 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001855/0.2777, allocations: 1.804 MB / 0.5802 GB, free: 14.74 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.2789, allocations: 1.168 MB / 0.5814 GB, free: 13.57 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001944/0.2808, allocations: 1.779 MB / 0.5831 GB, free: 11.79 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003689/0.2812, allocations: 240 kB / 0.5833 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001653/0.2828, allocations: 1.155 MB / 0.5845 GB, free: 10.39 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001259/0.2841, allocations: 1.546 MB / 0.586 GB, free: 8.844 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001489/0.2856, allocations: 1.782 MB / 0.5877 GB, free: 7.051 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005252/0.2908, allocations: 5.875 MB / 0.5935 GB, free: 1.152 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2908, allocations: 0 / 0.5935 GB, free: 1.152 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2908, allocations: 0 / 0.5935 GB, free: 1.152 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.098e-05/0.2909, allocations: 0 / 0.5935 GB, free: 1.152 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.007202/0.2981, allocations: 4.062 MB / 0.5974 GB, free: 13.02 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.2981, allocations: 8.031 kB / 0.5974 GB, free: 13.01 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006549/0.2988, allocations: 0.5753 MB / 0.598 GB, free: 12.42 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0789/0.3777, allocations: 6.966 MB / 0.6048 GB, free: 5.445 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004741/0.3824, allocations: 2.476 MB / 0.6072 GB, free: 2.918 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.3825, allocations: 176.8 kB / 0.6074 GB, free: 2.742 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004097/0.383, allocations: 239.8 kB / 0.6076 GB, free: 2.508 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009712/0.3927, allocations: 7.724 MB / 0.6152 GB, free: 10.13 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.121e-05/0.3928, allocations: 39.7 kB / 0.6152 GB, free: 10.09 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002832/0.393, allocations: 111.9 kB / 0.6153 GB, free: 9.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002435/0.3955, allocations: 1.59 MB / 0.6169 GB, free: 8.391 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009609/0.4051, allocations: 6.461 MB / 0.6232 GB, free: 1.914 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0299/0.435, allocations: 31.36 MB / 0.6538 GB, free: 1.582 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004306/0.4393, allocations: 2.332 MB / 0.6561 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.4405, allocations: 0.9794 MB / 0.657 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003193/0.4408, allocations: 335.2 kB / 0.6573 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.4409, allocations: 42.5 kB / 0.6574 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=104): time 2.976e-06/0.4409, allocations: 0 / 0.6574 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of matching and sorting (n=118): time 0.01874/0.4596, allocations: 8.541 MB / 0.6657 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.4597, allocations: 196.4 kB / 0.6659 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004358/0.4641, allocations: 3.769 MB / 0.6696 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.156e-05/0.4642, allocations: 41.7 kB / 0.6696 GB, free: 1 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001845/0.466, allocations: 2.826 MB / 0.6724 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004012/0.4664, allocations: 0.5042 MB / 0.6729 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001189/0.4676, allocations: 1.103 MB / 0.674 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.4677, allocations: 305.1 kB / 0.6743 GB, free: 12.22 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002124/0.4698, allocations: 1.58 MB / 0.6758 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004585/0.4744, allocations: 5.141 MB / 0.6808 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007352/0.4818, allocations: 7.326 MB / 0.688 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.75e-05/0.4818, allocations: 36 kB / 0.688 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.009237/0.491, allocations: 6.636 MB / 0.6945 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.924e-05/0.4911, allocations: 60 kB / 0.6945 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001062/0.4912, allocations: 128.9 kB / 0.6947 GB, free: 3.73 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000801/0.492, allocations: 404.6 kB / 0.6951 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00309/0.4951, allocations: 1.22 MB / 0.6962 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003592/0.4987, allocations: 3.352 MB / 0.6995 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002635/0.5013, allocations: 283.6 kB / 0.6998 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003651/0.5017, allocations: 344 kB / 0.7001 GB, free: 14.01 MB / 0.545 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.002158/0.5039, allocations: 1.771 MB / 0.7018 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004071/0.5043, allocations: 325.8 kB / 0.7022 GB, free: 11.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002441/0.5067, allocations: 1.462 MB / 0.7036 GB, free: 10.43 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/0.5067, allocations: 16 kB / 0.7036 GB, free: 10.42 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.5067, allocations: 7.938 kB / 0.7036 GB, free: 10.41 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.5067, allocations: 3.984 kB / 0.7036 GB, free: 10.41 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007133/0.5139, allocations: 4.842 MB / 0.7083 GB, free: 5.496 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.5139, allocations: 0 / 0.7083 GB, free: 5.496 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007078/0.5146, allocations: 159.7 kB / 0.7085 GB, free: 5.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000587/0.5152, allocations: 228.7 kB / 0.7087 GB, free: 5.113 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.335e-05/0.5152, allocations: 20 kB / 0.7087 GB, free: 5.094 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002901/0.5181, allocations: 2.704 MB / 0.7114 GB, free: 2.25 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.5181, allocations: 0 / 0.7114 GB, free: 2.25 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004152/0.5223, allocations: 3.3 MB / 0.7146 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004789/0.5228, allocations: 374.8 kB / 0.715 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002557/0.523, allocations: 20 kB / 0.715 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008889/0.5239, allocations: 47.94 kB / 0.715 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.5241, allocations: 64.42 kB / 0.7151 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.775e-05/0.5241, allocations: 31.98 kB / 0.7151 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00289/0.527, allocations: 2.35 MB / 0.7174 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.527, allocations: 0 / 0.7174 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003124/0.5301, allocations: 0.7656 MB / 0.7182 GB, free: 11.28 MB / 0.5606 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.004571/0.5347, allocations: 3.919 MB / 0.722 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00509/0.5398, allocations: 3.67 MB / 0.7256 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5398, allocations: 4 kB / 0.7256 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001286/0.5411, allocations: 0.8961 MB / 0.7264 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001636/0.5427, allocations: 371.6 kB / 0.7268 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2209/0.7636, allocations: 37.26 MB / 0.7632 GB, free: 128.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001946/0.7655, allocations: 2.721 MB / 0.7658 GB, free: 125.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002624/0.7682, allocations: 1.702 MB / 0.7675 GB, free: 124.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001158/0.7693, allocations: 1.452 MB / 0.7689 GB, free: 122.7 MB / 0.5606 GB Notification: Performance of SimCode: time 7.62e-07/0.7693, allocations: 4 kB / 0.7689 GB, free: 122.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07249/0.8418, allocations: 54.82 MB / 0.8225 GB, free: 68.21 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.38/21.22, allocations: 14.73 kB / 0.8225 GB, free: 68.2 MB / 0.5606 GB " [Timeout remaining time 639] (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 --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: 23.721020712997415]