Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_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.001401/0.001402, allocations: 100.2 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001656/0.001656, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1981/0.1981, allocations: 45.92 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004474/0.0004475, allocations: 8 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1703, allocations: 63.46 MB / 481.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02494/0.1953, allocations: 28.69 MB / 0.4983 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01515/0.2105, allocations: 7.521 MB / 0.5056 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006532/0.2171, allocations: 139.6 kB / 0.5057 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2617/0.4789, allocations: 1.384 MB / 0.5071 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01683/0.4957, allocations: 4.25 MB / 0.5112 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002843/0.4986, allocations: 476.7 kB / 0.5117 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03931/0.5379, allocations: 24.64 MB / 0.5357 GB, free: 7.383 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003749/0.5417, allocations: 2.603 MB / 0.5383 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001379/0.5431, allocations: 0.7911 MB / 0.5391 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00118/0.5443, allocations: 1.077 MB / 0.5401 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003149/0.5447, allocations: 108 kB / 0.5402 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001508/0.5462, allocations: 0.871 MB / 0.5411 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009222/0.5471, allocations: 1.219 MB / 0.5423 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006321/0.5478, allocations: 0.6409 MB / 0.5429 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004213/0.552, allocations: 4.345 MB / 0.5471 GB, free: 14.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.552, allocations: 1.969 kB / 0.5471 GB, free: 14.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.552, allocations: 0 / 0.5471 GB, free: 14.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001345/0.5521, allocations: 4 kB / 0.5471 GB, free: 14.57 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.008932/0.5611, allocations: 3.294 MB / 0.5503 GB, free: 11.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.5611, allocations: 8.031 kB / 0.5504 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001452/0.5626, allocations: 0.5544 MB / 0.5509 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08541/0.648, allocations: 8.223 MB / 0.5589 GB, free: 3.312 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00682/0.6549, allocations: 2.242 MB / 0.5611 GB, free: 1.645 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.6551, allocations: 166.3 kB / 0.5613 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007386/0.6558, allocations: 224 kB / 0.5615 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0115/0.6674, allocations: 7.552 MB / 0.5689 GB, free: 11.34 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.02e-05/0.6675, allocations: 42.83 kB / 0.5689 GB, free: 11.31 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002906/0.6678, allocations: 105.7 kB / 0.569 GB, free: 11.28 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002478/0.6703, allocations: 1.605 MB / 0.5706 GB, free: 9.945 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01157/0.6818, allocations: 6.372 MB / 0.5768 GB, free: 4.355 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03673/0.7186, allocations: 30.42 MB / 0.6065 GB, free: 5.363 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004457/0.7231, allocations: 2.174 MB / 0.6086 GB, free: 3.039 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003821/0.7235, allocations: 319.7 kB / 0.6089 GB, free: 2.676 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.358e-05/0.7236, allocations: 46.98 kB / 0.609 GB, free: 2.621 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 4.389e-06/0.7236, allocations: 1.531 kB / 0.609 GB, free: 2.621 MB / 446.1 MB Notification: Performance of matching and sorting (n=132): time 0.03304/0.7567, allocations: 11.22 MB / 0.6199 GB, free: 7.242 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.7568, allocations: 192.6 kB / 0.6201 GB, free: 7.012 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004877/0.7617, allocations: 3.775 MB / 0.6238 GB, free: 3.242 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001695/0.7619, allocations: 46.88 kB / 0.6239 GB, free: 3.191 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001774/0.7637, allocations: 2.6 MB / 0.6264 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005098/0.7642, allocations: 0.5316 MB / 0.6269 GB, free: 80 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002182/0.7644, allocations: 105.2 kB / 0.627 GB, free: 15.98 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000302/0.7647, allocations: 0.5211 MB / 0.6275 GB, free: 15.46 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002227/0.7669, allocations: 1.611 MB / 0.6291 GB, free: 13.84 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004465/0.7714, allocations: 4.952 MB / 0.6339 GB, free: 7.203 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003541/0.775, allocations: 2.785 MB / 0.6366 GB, free: 4.43 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.541e-05/0.775, allocations: 36 kB / 0.6367 GB, free: 4.395 MB / 478.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01012/0.7852, allocations: 6.549 MB / 0.6431 GB, free: 13.84 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.614e-05/0.7853, allocations: 58.81 kB / 0.6431 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001446/0.7854, allocations: 120 kB / 0.6432 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009863/0.7864, allocations: 422 kB / 0.6437 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003397/0.7898, allocations: 1.193 MB / 0.6448 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003543/0.7934, allocations: 3.128 MB / 0.6479 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003711/0.7971, allocations: 295.4 kB / 0.6482 GB, free: 8.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004867/0.7976, allocations: 324 kB / 0.6485 GB, free: 8.203 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.003135/0.8008, allocations: 1.725 MB / 0.6501 GB, free: 6.465 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006475/0.8014, allocations: 300.1 kB / 0.6504 GB, free: 6.168 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002983/0.8044, allocations: 1.722 MB / 0.6521 GB, free: 4.43 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/0.8045, allocations: 12 kB / 0.6521 GB, free: 4.418 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/0.8045, allocations: 11.95 kB / 0.6521 GB, free: 4.406 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.8045, allocations: 5.625 kB / 0.6521 GB, free: 4.402 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/0.8152, allocations: 5.366 MB / 0.6574 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.962e-05/0.8152, allocations: 64 / 0.6574 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000963/0.8162, allocations: 199.7 kB / 0.6576 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006838/0.8169, allocations: 228.6 kB / 0.6578 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.871e-05/0.817, allocations: 30.97 kB / 0.6578 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003095/0.8201, allocations: 2.57 MB / 0.6603 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.8201, allocations: 0 / 0.6603 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005272/0.8254, allocations: 3.82 MB / 0.6641 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/0.8266, allocations: 372.9 kB / 0.6644 GB, free: 7.562 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000341/0.8269, allocations: 23.95 kB / 0.6644 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.8281, allocations: 70.41 kB / 0.6645 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.8283, allocations: 72.5 kB / 0.6646 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-05/0.8283, allocations: 32 kB / 0.6646 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004078/0.8324, allocations: 2.387 MB / 0.6669 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.733e-06/0.8325, allocations: 0 / 0.6669 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005192/0.8377, allocations: 0.7867 MB / 0.6677 GB, free: 4.207 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.00567/0.8433, allocations: 4.743 MB / 0.6723 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006683/0.8501, allocations: 3.92 MB / 0.6762 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.116e-06/0.8501, allocations: 0 / 0.6762 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001428/0.8515, allocations: 1.065 MB / 0.6772 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0019/0.8534, allocations: 348.2 kB / 0.6775 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3256/1.179, allocations: 109.1 MB / 0.7841 GB, free: 136.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004047/1.183, allocations: 2.755 MB / 0.7867 GB, free: 135.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004631/1.188, allocations: 1.686 MB / 0.7884 GB, free: 135.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001964/1.19, allocations: 1.446 MB / 0.7898 GB, free: 134.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.933e-06/1.19, allocations: 1.312 kB / 0.7898 GB, free: 134.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09241/1.282, allocations: 62.34 MB / 0.8507 GB, free: 80.16 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001783/1.282, allocations: 190.8 kB / 0.8509 GB, free: 79.93 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.387/4.669, allocations: 0 / 0.8509 GB, free: 79.93 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat