Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008767/0.0008767, allocations: 93.89 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008235/0.0008235, allocations: 191.4 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 223.2 MB / 241.9 MB, free: 256 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1956/0.1956, allocations: 44.23 MB / 337.2 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.0003461, allocations: 8 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1201, allocations: 61.92 MB / 471.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02836/0.1485, allocations: 30.32 MB / 0.4902 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0157/0.1642, allocations: 7.219 MB / 0.4972 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006095/0.1703, allocations: 139.6 kB / 0.4974 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004654/0.175, allocations: 1.544 MB / 0.4989 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0123/0.1873, allocations: 4.779 MB / 0.5036 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002056/0.1894, allocations: 491.2 kB / 0.504 GB, free: 1.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2834/0.4729, allocations: 31.53 MB / 0.5348 GB, free: 8.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003749/0.4767, allocations: 2.618 MB / 0.5374 GB, free: 6.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001685/0.4784, allocations: 0.9614 MB / 0.5383 GB, free: 5.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00171/0.4801, allocations: 1.516 MB / 0.5398 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000321/0.4805, allocations: 104 kB / 0.5399 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00147/0.4819, allocations: 0.9173 MB / 0.5408 GB, free: 3.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001122/0.4831, allocations: 1.311 MB / 0.5421 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006322/0.4837, allocations: 0.6403 MB / 0.5427 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003763/0.4875, allocations: 4.352 MB / 0.5469 GB, free: 14.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.807e-06/0.4875, allocations: 3.625 kB / 0.5469 GB, free: 14.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4875, allocations: 1.75 kB / 0.5469 GB, free: 14.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001167/0.4876, allocations: 0 / 0.5469 GB, free: 14.62 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.007645/0.4953, allocations: 3.243 MB / 0.5501 GB, free: 11.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.4954, allocations: 8.031 kB / 0.5501 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001131/0.4965, allocations: 0.5539 MB / 0.5507 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06859/0.5651, allocations: 7.145 MB / 0.5576 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005407/0.5705, allocations: 2.445 MB / 0.56 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001536/0.5707, allocations: 167.6 kB / 0.5602 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006735/0.5714, allocations: 223.8 kB / 0.5604 GB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01449/0.5859, allocations: 7.516 MB / 0.5677 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/0.5861, allocations: 37.06 kB / 0.5678 GB, free: 12.22 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003198/0.5864, allocations: 108.2 kB / 0.5679 GB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002578/0.589, allocations: 1.606 MB / 0.5694 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01133/0.6003, allocations: 6.318 MB / 0.5756 GB, free: 6.465 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03481/0.6352, allocations: 30.35 MB / 0.6053 GB, free: 8.609 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004147/0.6394, allocations: 2.184 MB / 0.6074 GB, free: 6.289 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001298/0.6407, allocations: 1.065 MB / 0.6084 GB, free: 5.215 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000338/0.641, allocations: 319.4 kB / 0.6087 GB, free: 4.852 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.6411, allocations: 40.97 kB / 0.6088 GB, free: 4.805 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 4.068e-06/0.6411, allocations: 0 / 0.6088 GB, free: 4.805 MB / 446.1 MB Notification: Performance of matching and sorting (n=132): time 0.03149/0.6726, allocations: 10.96 MB / 0.6195 GB, free: 9.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.6728, allocations: 203.1 kB / 0.6197 GB, free: 9.531 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005361/0.6781, allocations: 3.646 MB / 0.6232 GB, free: 5.891 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002039/0.6784, allocations: 49.7 kB / 0.6233 GB, free: 5.836 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/0.6803, allocations: 2.606 MB / 0.6258 GB, free: 3.242 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005402/0.6808, allocations: 0.5241 MB / 0.6263 GB, free: 2.723 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001892/0.681, allocations: 104 kB / 0.6264 GB, free: 2.621 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003201/0.6813, allocations: 0.523 MB / 0.6269 GB, free: 2.094 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0024/0.6837, allocations: 1.615 MB / 0.6285 GB, free: 484 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004617/0.6884, allocations: 4.971 MB / 0.6334 GB, free: 9.859 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003796/0.6922, allocations: 2.784 MB / 0.6361 GB, free: 7.18 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.177e-05/0.6922, allocations: 35.47 kB / 0.6361 GB, free: 7.148 MB / 478.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01059/0.7028, allocations: 6.542 MB / 0.6425 GB, free: 0.625 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.286e-05/0.7029, allocations: 59.94 kB / 0.6426 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001238/0.7031, allocations: 120 kB / 0.6427 GB, free: 460 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008943/0.704, allocations: 418.7 kB / 0.6431 GB, free: 40 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00354/0.7075, allocations: 1.193 MB / 0.6443 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003602/0.7112, allocations: 3.072 MB / 0.6473 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004152/0.7153, allocations: 283.4 kB / 0.6475 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008799/0.7162, allocations: 324 kB / 0.6478 GB, free: 11.05 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.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 (643): * Single equations (assignments): 639 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003563/0.7198, allocations: 1.736 MB / 0.6495 GB, free: 9.305 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008166/0.7206, allocations: 304.1 kB / 0.6498 GB, free: 9.004 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00368/0.7243, allocations: 1.719 MB / 0.6515 GB, free: 7.273 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-05/0.7244, allocations: 16 kB / 0.6515 GB, free: 7.258 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.7244, allocations: 4 kB / 0.6515 GB, free: 7.254 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.7244, allocations: 3.984 kB / 0.6515 GB, free: 7.25 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/0.7368, allocations: 5.374 MB / 0.6568 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-05/0.7369, allocations: 4 kB / 0.6568 GB, free: 1.812 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.738, allocations: 195.7 kB / 0.657 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008191/0.7389, allocations: 224.7 kB / 0.6572 GB, free: 1.398 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001798/0.7391, allocations: 31.89 kB / 0.6572 GB, free: 1.367 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003151/0.7422, allocations: 2.495 MB / 0.6596 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.7422, allocations: 4.125 kB / 0.6596 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005996/0.7482, allocations: 3.71 MB / 0.6633 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/0.7494, allocations: 365 kB / 0.6636 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000742/0.7502, allocations: 28.06 kB / 0.6636 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/0.7518, allocations: 63.88 kB / 0.6637 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.752, allocations: 76.25 kB / 0.6638 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.7521, allocations: 35.98 kB / 0.6638 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004697/0.7568, allocations: 2.282 MB / 0.666 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7568, allocations: 0 / 0.666 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004903/0.7617, allocations: 0.7773 MB / 0.6668 GB, free: 7.375 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006421/0.7682, allocations: 4.328 MB / 0.671 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006928/0.7751, allocations: 3.918 MB / 0.6748 GB, free: 15.11 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.7752, allocations: 4 kB / 0.6749 GB, free: 15.1 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.001632/0.7768, allocations: 1.064 MB / 0.6759 GB, free: 14.03 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003007/0.7798, allocations: 373.3 kB / 0.6762 GB, free: 13.66 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3049/1.085, allocations: 27.31 MB / 0.7029 GB, free: 191.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003907/1.089, allocations: 2.676 MB / 0.7055 GB, free: 190.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005024/1.094, allocations: 1.679 MB / 0.7072 GB, free: 190.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002248/1.096, allocations: 1.444 MB / 0.7086 GB, free: 190.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.683e-06/1.096, allocations: 0 / 0.7086 GB, free: 190.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09661/1.193, allocations: 61.76 MB / 0.7689 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/1.193, allocations: 200.3 kB / 0.7691 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.304/4.497, allocations: 0 / 0.7691 GB, free: 143.2 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat