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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001265/0.001265, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2338/0.2338, allocations: 46.12 MB / 344.2 MB, free: 11.5 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.002278/0.002278, allocations: 71.56 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1337, allocations: 62.46 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01218/0.1459, allocations: 9.048 MB / 489.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008524/0.1545, allocations: 3.566 MB / 492.8 MB, free: 8.473 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001805/0.1564, allocations: 55.81 kB / 492.9 MB, free: 8.418 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004013/0.1604, allocations: 1.9 MB / 494.8 MB, free: 6.512 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004261/0.1647, allocations: 1.572 MB / 496.4 MB, free: 4.934 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001458/0.1662, allocations: 0.5614 MB / 496.9 MB, free: 4.371 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005565/0.1718, allocations: 3.657 MB / 0.4888 GB, free: 0.707 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003273/0.1751, allocations: 2.429 MB / 0.4912 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00207/0.1772, allocations: 1.152 MB / 0.4923 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002358/0.1796, allocations: 1.639 MB / 0.4939 GB, free: 11.42 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006181/0.1802, allocations: 240 kB / 0.4942 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002151/0.1824, allocations: 1.116 MB / 0.4953 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001609/0.184, allocations: 1.5 MB / 0.4967 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002037/0.186, allocations: 1.782 MB / 0.4985 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006841/0.1929, allocations: 5.647 MB / 0.504 GB, free: 1.109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.1929, allocations: 4 kB / 0.504 GB, free: 1.105 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1929, allocations: 0 / 0.504 GB, free: 1.105 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001559/0.1931, allocations: 0 / 0.504 GB, free: 1.105 MB / 382.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.2323/0.4254, allocations: 3.958 MB / 0.5078 GB, free: 39.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.4255, allocations: 9.719 kB / 0.5079 GB, free: 39.19 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001167/0.4267, allocations: 0.5761 MB / 0.5084 GB, free: 38.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09001/0.5167, allocations: 6.944 MB / 0.5152 GB, free: 38.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005611/0.5223, allocations: 2.423 MB / 0.5176 GB, free: 36.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.5225, allocations: 179.1 kB / 0.5177 GB, free: 36.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007592/0.5233, allocations: 235.9 kB / 0.518 GB, free: 36.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01201/0.5353, allocations: 7.728 MB / 0.5255 GB, free: 31.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.494e-05/0.5354, allocations: 39.34 kB / 0.5255 GB, free: 31.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002909/0.5357, allocations: 119.3 kB / 0.5257 GB, free: 31.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00211/0.5379, allocations: 1.582 MB / 0.5272 GB, free: 30.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009262/0.5471, allocations: 6.462 MB / 0.5335 GB, free: 24.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03257/0.5798, allocations: 31.42 MB / 0.5642 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005317/0.5851, allocations: 2.416 MB / 0.5666 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001483/0.5866, allocations: 1.061 MB / 0.5676 GB, free: 4.199 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003871/0.587, allocations: 323 kB / 0.5679 GB, free: 3.828 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.994e-05/0.5871, allocations: 58.44 kB / 0.568 GB, free: 3.766 MB / 398.1 MB Notification: Performance of pre-optimization done (n=104): time 5.05e-06/0.5871, allocations: 0 / 0.568 GB, free: 3.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.02295/0.6101, allocations: 8.361 MB / 0.5761 GB, free: 11.3 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.6102, allocations: 188.5 kB / 0.5763 GB, free: 11.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006408/0.6167, allocations: 3.761 MB / 0.58 GB, free: 7.316 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000194/0.6169, allocations: 45.69 kB / 0.58 GB, free: 7.266 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002375/0.6193, allocations: 2.716 MB / 0.5827 GB, free: 4.508 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006683/0.6199, allocations: 490 kB / 0.5831 GB, free: 4.023 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001891/0.6218, allocations: 1.098 MB / 0.5842 GB, free: 2.914 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.622, allocations: 305.1 kB / 0.5845 GB, free: 2.613 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002755/0.6248, allocations: 1.58 MB / 0.586 GB, free: 1.027 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006696/0.6315, allocations: 5.141 MB / 0.5911 GB, free: 10.08 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009766/0.6413, allocations: 7.324 MB / 0.5982 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001299/0.6415, allocations: 40 kB / 0.5983 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01332/0.6548, allocations: 6.623 MB / 0.6047 GB, free: 10.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001198/0.6549, allocations: 61.25 kB / 0.6048 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001861/0.6551, allocations: 124 kB / 0.6049 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.6562, allocations: 406.4 kB / 0.6053 GB, free: 9.738 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003805/0.6601, allocations: 1.228 MB / 0.6065 GB, free: 8.508 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004117/0.6642, allocations: 3.343 MB / 0.6098 GB, free: 5.031 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003631/0.6678, allocations: 283.6 kB / 0.61 GB, free: 4.754 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008917/0.6688, allocations: 340 kB / 0.6103 GB, free: 4.422 MB / 446.1 MB 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.003502/0.6723, allocations: 1.775 MB / 0.6121 GB, free: 2.633 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006948/0.673, allocations: 311.9 kB / 0.6124 GB, free: 2.324 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003004/0.676, allocations: 1.466 MB / 0.6138 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.523e-05/0.6761, allocations: 19.98 kB / 0.6138 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.6761, allocations: 0 / 0.6138 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-05/0.6761, allocations: 11.98 kB / 0.6138 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/0.6862, allocations: 4.859 MB / 0.6186 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.6862, allocations: 0 / 0.6186 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008013/0.687, allocations: 163.8 kB / 0.6187 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006877/0.6877, allocations: 220.7 kB / 0.619 GB, free: 11.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-05/0.6878, allocations: 20 kB / 0.619 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003376/0.6912, allocations: 2.711 MB / 0.6216 GB, free: 8.633 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.6912, allocations: 0 / 0.6216 GB, free: 8.633 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005038/0.6963, allocations: 3.272 MB / 0.6248 GB, free: 5.332 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009334/0.6972, allocations: 365 kB / 0.6252 GB, free: 4.953 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006012/0.6979, allocations: 16 kB / 0.6252 GB, free: 4.938 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/0.6992, allocations: 55.92 kB / 0.6252 GB, free: 4.883 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/0.6994, allocations: 64.41 kB / 0.6253 GB, free: 4.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.219e-05/0.6995, allocations: 28 kB / 0.6253 GB, free: 4.793 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004454/0.7039, allocations: 2.347 MB / 0.6276 GB, free: 2.461 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.7039, allocations: 0 / 0.6276 GB, free: 2.461 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004924/0.7089, allocations: 0.772 MB / 0.6284 GB, free: 1.691 MB / 462.1 MB 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.006192/0.7151, allocations: 3.896 MB / 0.6322 GB, free: 13.76 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00759/0.7227, allocations: 4.108 MB / 0.6362 GB, free: 9.68 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/0.7228, allocations: 4 kB / 0.6362 GB, free: 9.676 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001627/0.7244, allocations: 0.9429 MB / 0.6371 GB, free: 8.723 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002824/0.7273, allocations: 381.1 kB / 0.6375 GB, free: 8.355 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06732/0.7946, allocations: 41.51 MB / 0.678 GB, free: 7.902 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004128/0.7988, allocations: 2.712 MB / 0.6806 GB, free: 5.164 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004341/0.8031, allocations: 1.699 MB / 0.6823 GB, free: 3.461 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002385/0.8055, allocations: 1.456 MB / 0.6837 GB, free: 2.004 MB / 0.5137 GB Notification: Performance of SimCode: time 1.242e-06/0.8056, allocations: 0 / 0.6837 GB, free: 2.004 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3143/1.12, allocations: 57.77 MB / 0.7402 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.85, allocations: 1.438 kB / 0.7402 GB, free: 161.1 MB / 0.5294 GB (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)