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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001355/0.001355, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001493/0.001493, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2303/0.2303, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB 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.002317/0.002318, allocations: 75.88 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2905, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01072/0.3013, allocations: 8.934 MB / 0.5393 GB, free: 6.383 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007693/0.3091, allocations: 3.541 MB / 0.5428 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001323/0.3104, allocations: 51.38 kB / 0.5428 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003501/0.314, allocations: 1.664 MB / 0.5445 GB, free: 2.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004255/0.3182, allocations: 1.533 MB / 0.5459 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001528/0.3198, allocations: 0.5643 MB / 0.5465 GB, free: 1.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005692/0.3255, allocations: 3.572 MB / 0.55 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003023/0.3286, allocations: 2.195 MB / 0.5521 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001859/0.3304, allocations: 1.094 MB / 0.5532 GB, free: 10.47 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002324/0.3328, allocations: 1.53 MB / 0.5547 GB, free: 8.938 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006134/0.3334, allocations: 220 kB / 0.5549 GB, free: 8.723 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002248/0.3357, allocations: 1.096 MB / 0.556 GB, free: 7.625 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001571/0.3373, allocations: 1.399 MB / 0.5573 GB, free: 6.223 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002071/0.3394, allocations: 1.681 MB / 0.559 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007192/0.3466, allocations: 5.576 MB / 0.5644 GB, free: 14.93 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3466, allocations: 7.938 kB / 0.5644 GB, free: 14.93 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3466, allocations: 0 / 0.5644 GB, free: 14.93 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001326/0.3468, allocations: 0 / 0.5644 GB, free: 14.93 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.009383/0.3562, allocations: 3.881 MB / 0.5682 GB, free: 10.97 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.3562, allocations: 12.03 kB / 0.5682 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009002/0.3571, allocations: 0.5384 MB / 0.5688 GB, free: 10.41 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09574/0.4529, allocations: 6.943 MB / 0.5755 GB, free: 3.453 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005576/0.4585, allocations: 2.405 MB / 0.5779 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001537/0.4587, allocations: 164.4 kB / 0.578 GB, free: 0.832 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006414/0.4593, allocations: 223.8 kB / 0.5783 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01212/0.4715, allocations: 7.343 MB / 0.5854 GB, free: 8.645 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001041/0.4716, allocations: 43.64 kB / 0.5855 GB, free: 8.602 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003754/0.472, allocations: 107.9 kB / 0.5856 GB, free: 8.496 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002714/0.4747, allocations: 1.539 MB / 0.5871 GB, free: 6.957 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01172/0.4865, allocations: 6.182 MB / 0.5931 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03615/0.5227, allocations: 29.91 MB / 0.6223 GB, free: 1.926 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004574/0.5273, allocations: 2.184 MB / 0.6245 GB, free: 15.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/0.5288, allocations: 1.069 MB / 0.6255 GB, free: 14.52 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003938/0.5292, allocations: 319.7 kB / 0.6258 GB, free: 14.15 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/0.5293, allocations: 50.94 kB / 0.6259 GB, free: 14.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.216e-06/0.5293, allocations: 0 / 0.6259 GB, free: 14.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03482/0.5641, allocations: 11.05 MB / 0.6366 GB, free: 2.93 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.5643, allocations: 204.5 kB / 0.6368 GB, free: 2.688 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005296/0.5696, allocations: 3.614 MB / 0.6404 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002112/0.5698, allocations: 45.7 kB / 0.6404 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002297/0.5721, allocations: 2.663 MB / 0.643 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006438/0.5728, allocations: 0.5544 MB / 0.6436 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001452/0.5743, allocations: 1.052 MB / 0.6446 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.5744, allocations: 305.1 kB / 0.6449 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002596/0.577, allocations: 1.63 MB / 0.6465 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005369/0.5824, allocations: 4.965 MB / 0.6513 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008757/0.5912, allocations: 7.162 MB / 0.6583 GB, free: 9.301 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.975e-05/0.5913, allocations: 36 kB / 0.6583 GB, free: 9.266 MB / 0.5137 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01261/0.6039, allocations: 6.572 MB / 0.6648 GB, free: 2.688 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.432e-05/0.6041, allocations: 60.2 kB / 0.6648 GB, free: 2.629 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001557/0.6042, allocations: 124 kB / 0.6649 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001031/0.6053, allocations: 392.6 kB / 0.6653 GB, free: 2.121 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003764/0.6091, allocations: 1.193 MB / 0.6665 GB, free: 0.9258 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004199/0.6133, allocations: 3.311 MB / 0.6697 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003613/0.6169, allocations: 291.6 kB / 0.67 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005787/0.6175, allocations: 323.9 kB / 0.6703 GB, free: 12.88 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.002765/0.6203, allocations: 1.705 MB / 0.672 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005497/0.6209, allocations: 313.9 kB / 0.6723 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003221/0.6241, allocations: 1.714 MB / 0.6739 GB, free: 9.121 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.636e-05/0.6242, allocations: 16.11 kB / 0.6739 GB, free: 9.105 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.7e-05/0.6242, allocations: 11.88 kB / 0.674 GB, free: 9.094 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.6242, allocations: 7.922 kB / 0.674 GB, free: 9.086 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009594/0.6338, allocations: 5.247 MB / 0.6791 GB, free: 3.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/0.6339, allocations: 4 kB / 0.6791 GB, free: 3.746 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009877/0.6349, allocations: 195.7 kB / 0.6793 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007289/0.6356, allocations: 228.7 kB / 0.6795 GB, free: 3.328 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.6357, allocations: 23.98 kB / 0.6795 GB, free: 3.305 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003198/0.6389, allocations: 2.688 MB / 0.6821 GB, free: 480 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/0.639, allocations: 15.88 kB / 0.6822 GB, free: 464 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00567/0.6446, allocations: 3.729 MB / 0.6858 GB, free: 12.69 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007923/0.6455, allocations: 366.9 kB / 0.6862 GB, free: 12.31 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003639/0.6458, allocations: 20 kB / 0.6862 GB, free: 12.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.647, allocations: 67.84 kB / 0.6862 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.6472, allocations: 68.56 kB / 0.6863 GB, free: 12.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-05/0.6473, allocations: 43.91 kB / 0.6863 GB, free: 12.12 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003744/0.651, allocations: 2.265 MB / 0.6886 GB, free: 9.867 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6511, allocations: 0 / 0.6886 GB, free: 9.867 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003909/0.655, allocations: 0.7616 MB / 0.6893 GB, free: 9.105 MB / 0.545 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.006214/0.6612, allocations: 4.366 MB / 0.6936 GB, free: 4.703 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007144/0.6684, allocations: 3.935 MB / 0.6974 GB, free: 0.7812 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.6684, allocations: 0 / 0.6974 GB, free: 0.7812 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001679/0.6701, allocations: 1.064 MB / 0.6984 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002368/0.6725, allocations: 367.8 kB / 0.6988 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2869/0.9594, allocations: 36.55 MB / 0.7345 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002616/0.9621, allocations: 2.641 MB / 0.7371 GB, free: 171.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003432/0.9655, allocations: 1.697 MB / 0.7387 GB, free: 171.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001692/0.9672, allocations: 1.406 MB / 0.7401 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of SimCode: time 1.423e-06/0.9672, allocations: 0 / 0.7401 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08655/1.054, allocations: 53.34 MB / 0.7922 GB, free: 121.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.76/23.81, allocations: 17.89 kB / 0.7922 GB, free: 121.5 MB / 0.5762 GB (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 --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)