Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 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.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_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.0009797/0.0009796, allocations: 102.6 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001219/0.001219, allocations: 197.9 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.3 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.217/0.217, allocations: 45.91 MB / 344.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002574, allocations: 11.94 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1298, allocations: 63.47 MB / 481.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03327/0.1631, allocations: 36.91 MB / 0.5064 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3068/0.47, allocations: 8.386 MB / 0.5146 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008446/0.4785, allocations: 168.5 kB / 0.5147 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007955/0.4865, allocations: 1.913 MB / 0.5166 GB, free: 9.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01907/0.5056, allocations: 5.785 MB / 0.5223 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002898/0.5085, allocations: 0.4967 MB / 0.5227 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04223/0.5507, allocations: 31.79 MB / 0.5538 GB, free: 8.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00461/0.5554, allocations: 2.958 MB / 0.5567 GB, free: 6.586 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002034/0.5575, allocations: 1.009 MB / 0.5577 GB, free: 5.703 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002466/0.56, allocations: 1.61 MB / 0.5592 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004828/0.5605, allocations: 112 kB / 0.5593 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001944/0.5624, allocations: 0.8982 MB / 0.5602 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001431/0.5639, allocations: 1.414 MB / 0.5616 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008308/0.5647, allocations: 0.6977 MB / 0.5623 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004957/0.5697, allocations: 4.664 MB / 0.5668 GB, free: 13.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.5697, allocations: 0 / 0.5668 GB, free: 13.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.5697, allocations: 0 / 0.5668 GB, free: 13.87 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000163/0.5699, allocations: 0 / 0.5668 GB, free: 13.87 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.00781/0.5777, allocations: 3.44 MB / 0.5702 GB, free: 10.66 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.5778, allocations: 8.031 kB / 0.5702 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001222/0.579, allocations: 0.6044 MB / 0.5708 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06628/0.6453, allocations: 7.187 MB / 0.5778 GB, free: 3.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005391/0.6507, allocations: 2.433 MB / 0.5802 GB, free: 1.402 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.6509, allocations: 181 kB / 0.5804 GB, free: 1.305 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005761/0.6515, allocations: 244.5 kB / 0.5806 GB, free: 1.121 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01217/0.6636, allocations: 8.078 MB / 0.5885 GB, free: 8.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-05/0.6638, allocations: 35.75 kB / 0.5885 GB, free: 8.465 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003166/0.6641, allocations: 118.1 kB / 0.5886 GB, free: 8.383 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002615/0.6667, allocations: 1.714 MB / 0.5903 GB, free: 6.676 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01267/0.6794, allocations: 6.752 MB / 0.5969 GB, free: 15.92 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03591/0.7153, allocations: 32.18 MB / 0.6283 GB, free: 14.9 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004716/0.7201, allocations: 2.413 MB / 0.6307 GB, free: 12.34 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/0.7216, allocations: 1.058 MB / 0.6317 GB, free: 11.27 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004153/0.722, allocations: 332.6 kB / 0.632 GB, free: 10.9 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.2e-05/0.7221, allocations: 42.56 kB / 0.6321 GB, free: 10.85 MB / 478.1 MB Notification: Performance of pre-optimization done (n=104): time 6.933e-06/0.7221, allocations: 3.938 kB / 0.6321 GB, free: 10.84 MB / 478.1 MB Notification: Performance of matching and sorting (n=118): time 0.02169/0.7438, allocations: 8.434 MB / 0.6403 GB, free: 2.309 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/0.744, allocations: 204.4 kB / 0.6405 GB, free: 2.066 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005657/0.7497, allocations: 3.799 MB / 0.6442 GB, free: 14.28 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002423/0.75, allocations: 41.7 kB / 0.6443 GB, free: 14.23 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002104/0.7521, allocations: 2.801 MB / 0.647 GB, free: 11.45 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006194/0.7527, allocations: 499.7 kB / 0.6475 GB, free: 10.96 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/0.7529, allocations: 104 kB / 0.6476 GB, free: 10.86 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003368/0.7533, allocations: 0.5334 MB / 0.6481 GB, free: 10.32 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002438/0.7557, allocations: 1.58 MB / 0.6496 GB, free: 8.738 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004692/0.7604, allocations: 5.188 MB / 0.6547 GB, free: 1.723 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003959/0.7644, allocations: 2.811 MB / 0.6574 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.101e-05/0.7645, allocations: 36 kB / 0.6575 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01063/0.7751, allocations: 6.672 MB / 0.664 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.654e-05/0.7752, allocations: 60 kB / 0.6641 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001196/0.7753, allocations: 128 kB / 0.6642 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008712/0.7762, allocations: 426.5 kB / 0.6646 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003267/0.7795, allocations: 1.24 MB / 0.6658 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003634/0.7831, allocations: 3.091 MB / 0.6688 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003836/0.787, allocations: 302.2 kB / 0.6691 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005641/0.7876, allocations: 347.9 kB / 0.6694 GB, free: 2.504 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.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 (672): * Single equations (assignments): 668 * 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.003189/0.7908, allocations: 1.838 MB / 0.6712 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007208/0.7915, allocations: 312 kB / 0.6715 GB, free: 352 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003029/0.7945, allocations: 1.473 MB / 0.673 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.27e-05/0.7946, allocations: 16 kB / 0.673 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/0.7946, allocations: 3.953 kB / 0.673 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.7946, allocations: 11.98 kB / 0.673 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009629/0.8043, allocations: 4.981 MB / 0.6779 GB, free: 9.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.8043, allocations: 1.203 kB / 0.6779 GB, free: 9.84 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000799/0.8051, allocations: 163.8 kB / 0.678 GB, free: 9.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008177/0.806, allocations: 224.7 kB / 0.6782 GB, free: 9.457 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.106e-05/0.8061, allocations: 26.64 kB / 0.6783 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002764/0.8088, allocations: 2.515 MB / 0.6807 GB, free: 6.789 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.8089, allocations: 0 / 0.6807 GB, free: 6.789 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004476/0.8134, allocations: 3.27 MB / 0.6839 GB, free: 3.496 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009395/0.8143, allocations: 372.8 kB / 0.6843 GB, free: 3.113 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003073/0.8146, allocations: 16 kB / 0.6843 GB, free: 3.098 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008932/0.8155, allocations: 62.59 kB / 0.6843 GB, free: 3.039 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.8157, allocations: 62.08 kB / 0.6844 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.383e-05/0.8158, allocations: 35.98 kB / 0.6844 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003706/0.8195, allocations: 2.356 MB / 0.6867 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.31e-07/0.8195, allocations: 0 / 0.6867 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004741/0.8243, allocations: 0.8008 MB / 0.6875 GB, free: 15.8 MB / 0.5294 GB 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 (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.005059/0.8294, allocations: 3.893 MB / 0.6913 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006631/0.836, allocations: 3.826 MB / 0.695 GB, free: 8.066 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.8361, allocations: 4 kB / 0.6951 GB, free: 8.062 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001408/0.8375, allocations: 0.9485 MB / 0.696 GB, free: 7.102 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002335/0.8398, allocations: 383.1 kB / 0.6963 GB, free: 6.73 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.317/1.157, allocations: 27.98 MB / 0.7237 GB, free: 195.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003997/1.161, allocations: 2.803 MB / 0.7264 GB, free: 194.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004955/1.166, allocations: 1.709 MB / 0.7281 GB, free: 194.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002066/1.168, allocations: 1.522 MB / 0.7296 GB, free: 193.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.683e-06/1.168, allocations: 0 / 0.7296 GB, free: 193.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09437/1.262, allocations: 63 MB / 0.7911 GB, free: 142.2 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/1.263, allocations: 207.8 kB / 0.7913 GB, free: 142 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.601/4.864, allocations: 0 / 0.7913 GB, free: 142 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat