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.001343/0.001349, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001376/0.001377, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.541/1.541, allocations: 227.4 MB / 246.8 MB, free: 10.57 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.2316/0.2316, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.002241/0.002241, allocations: 84.47 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1253, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01303/0.1384, allocations: 8.912 MB / 489.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008808/0.1472, allocations: 3.555 MB / 492.7 MB, free: 8.602 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00138/0.1486, allocations: 47.88 kB / 492.7 MB, free: 8.555 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003782/0.1525, allocations: 1.662 MB / 494.4 MB, free: 6.887 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004402/0.1569, allocations: 1.533 MB / 495.9 MB, free: 5.348 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.1586, allocations: 0.5614 MB / 496.5 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005852/0.1644, allocations: 3.572 MB / 0.4883 GB, free: 1.207 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003539/0.168, allocations: 2.185 MB / 0.4905 GB, free: 14.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002278/0.1703, allocations: 1.082 MB / 0.4915 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002674/0.173, allocations: 1.534 MB / 0.493 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008553/0.1739, allocations: 220 kB / 0.4932 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002582/0.1765, allocations: 1.096 MB / 0.4943 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001806/0.1783, allocations: 1.406 MB / 0.4957 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002349/0.1806, allocations: 1.681 MB / 0.4973 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007066/0.1877, allocations: 5.359 MB / 0.5026 GB, free: 2.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.1878, allocations: 0 / 0.5026 GB, free: 2.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1878, allocations: 0 / 0.5026 GB, free: 2.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000159/0.1879, allocations: 0 / 0.5026 GB, free: 2.555 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.25/0.438, allocations: 3.781 MB / 0.5062 GB, free: 39.13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.336e-05/0.4381, allocations: 9.688 kB / 0.5063 GB, free: 39.13 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001769/0.4398, allocations: 0.5456 MB / 0.5068 GB, free: 38.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0913/0.5312, allocations: 6.929 MB / 0.5136 GB, free: 38.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005321/0.5365, allocations: 2.362 MB / 0.5159 GB, free: 37.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.5367, allocations: 158.5 kB / 0.516 GB, free: 37.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007448/0.5375, allocations: 219.3 kB / 0.5162 GB, free: 37.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01003/0.5475, allocations: 7.346 MB / 0.5234 GB, free: 32.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.164e-05/0.5476, allocations: 34.78 kB / 0.5234 GB, free: 32.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002958/0.5479, allocations: 111.6 kB / 0.5235 GB, free: 32.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002232/0.5502, allocations: 1.538 MB / 0.525 GB, free: 31.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009445/0.5596, allocations: 6.195 MB / 0.5311 GB, free: 26.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02978/0.5895, allocations: 29.98 MB / 0.5604 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004967/0.5945, allocations: 2.166 MB / 0.5625 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001663/0.5962, allocations: 1.071 MB / 0.5635 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004326/0.5966, allocations: 315.5 kB / 0.5638 GB, free: 7.473 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.22e-05/0.5967, allocations: 51.05 kB / 0.5639 GB, free: 7.414 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 3.987e-06/0.5967, allocations: 3.938 kB / 0.5639 GB, free: 7.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=132): time 0.03675/0.6335, allocations: 10.87 MB / 0.5745 GB, free: 12.42 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.6336, allocations: 196.6 kB / 0.5747 GB, free: 12.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006405/0.6401, allocations: 3.613 MB / 0.5782 GB, free: 8.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002805/0.6404, allocations: 49.69 kB / 0.5783 GB, free: 8.516 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002402/0.6428, allocations: 2.554 MB / 0.5808 GB, free: 5.922 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008074/0.6436, allocations: 0.5364 MB / 0.5813 GB, free: 5.379 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001769/0.6454, allocations: 1.039 MB / 0.5823 GB, free: 4.328 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.6455, allocations: 305.1 kB / 0.5826 GB, free: 4.027 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002754/0.6483, allocations: 1.63 MB / 0.5842 GB, free: 2.391 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00583/0.6541, allocations: 4.962 MB / 0.589 GB, free: 11.74 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009374/0.6635, allocations: 7.172 MB / 0.596 GB, free: 2.918 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001295/0.6637, allocations: 40 kB / 0.5961 GB, free: 2.879 MB / 430.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01429/0.678, allocations: 6.562 MB / 0.6025 GB, free: 12.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001259/0.6781, allocations: 52 kB / 0.6025 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001835/0.6783, allocations: 120 kB / 0.6026 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.6794, allocations: 405.2 kB / 0.603 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003773/0.6832, allocations: 1.185 MB / 0.6042 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004175/0.6874, allocations: 3.32 MB / 0.6074 GB, free: 7.094 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0038/0.6912, allocations: 283.5 kB / 0.6077 GB, free: 6.816 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008909/0.6921, allocations: 328 kB / 0.608 GB, free: 6.496 MB / 446.1 MB 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.003437/0.6956, allocations: 1.697 MB / 0.6097 GB, free: 4.785 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006854/0.6963, allocations: 307.9 kB / 0.61 GB, free: 4.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003554/0.6998, allocations: 1.718 MB / 0.6116 GB, free: 2.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.54e-05/0.6999, allocations: 12 kB / 0.6116 GB, free: 2.738 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.6999, allocations: 4 kB / 0.6116 GB, free: 2.734 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.6999, allocations: 15.97 kB / 0.6117 GB, free: 2.719 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009886/0.7098, allocations: 5.291 MB / 0.6168 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/0.7099, allocations: 3.938 kB / 0.6168 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009748/0.7108, allocations: 199.7 kB / 0.617 GB, free: 13.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007043/0.7116, allocations: 236.6 kB / 0.6172 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.158e-05/0.7117, allocations: 23.98 kB / 0.6173 GB, free: 12.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003132/0.7148, allocations: 2.684 MB / 0.6199 GB, free: 10.06 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.7148, allocations: 64 / 0.6199 GB, free: 10.06 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005396/0.7202, allocations: 3.722 MB / 0.6235 GB, free: 6.309 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007326/0.721, allocations: 353.1 kB / 0.6239 GB, free: 5.941 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000448/0.7214, allocations: 23.98 kB / 0.6239 GB, free: 5.918 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.7226, allocations: 63.92 kB / 0.6239 GB, free: 5.855 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000181/0.7228, allocations: 72.44 kB / 0.624 GB, free: 5.785 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.7229, allocations: 44.05 kB / 0.6241 GB, free: 5.742 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003617/0.7266, allocations: 2.261 MB / 0.6263 GB, free: 3.492 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7266, allocations: 0 / 0.6263 GB, free: 3.492 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003733/0.7303, allocations: 0.759 MB / 0.627 GB, free: 2.738 MB / 462.1 MB 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.006058/0.7364, allocations: 4.334 MB / 0.6312 GB, free: 14.36 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007534/0.7439, allocations: 4.292 MB / 0.6354 GB, free: 10.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.7439, allocations: 0 / 0.6354 GB, free: 10.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001591/0.7455, allocations: 1.064 MB / 0.6365 GB, free: 9.023 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002528/0.7481, allocations: 371.6 kB / 0.6368 GB, free: 8.66 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06383/0.8119, allocations: 40.62 MB / 0.6765 GB, free: 9.484 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003022/0.815, allocations: 2.639 MB / 0.6791 GB, free: 6.824 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004156/0.8192, allocations: 1.671 MB / 0.6807 GB, free: 5.148 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002011/0.8212, allocations: 1.413 MB / 0.6821 GB, free: 3.734 MB / 0.5137 GB Notification: Performance of SimCode: time 1.092e-06/0.8212, allocations: 0 / 0.6821 GB, free: 3.734 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3427/1.164, allocations: 57.25 MB / 0.738 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/12.74, allocations: 12.47 kB / 0.738 GB, free: 163.6 MB / 0.5294 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)