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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001136/0.001136, allocations: 93.36 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2124/0.2124, allocations: 45.14 MB / 383.8 MB, free: 288 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.929e-05/1.934e-05, allocations: 0 / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1306, allocations: 63.25 MB / 0.5044 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4754/0.606, allocations: 106.5 MB / 0.6085 GB, free: 12.03 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.6063, allocations: 73.91 kB / 0.6085 GB, free: 12 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1895/0.7959, allocations: 71.62 MB / 0.6785 GB, free: 12.72 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.7959, allocations: 0 / 0.6785 GB, free: 12.72 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002178/0.7962, allocations: 60 kB / 0.6785 GB, free: 12.66 MB / 474.7 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.01221/0.8084, allocations: 3.204 MB / 0.6817 GB, free: 9.395 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.8085, allocations: 12.03 kB / 0.6817 GB, free: 9.383 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0175/0.826, allocations: 4.227 MB / 0.6858 GB, free: 5.145 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01044/0.8365, allocations: 3.49 MB / 0.6892 GB, free: 1.59 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002213/0.8367, allocations: 104 kB / 0.6893 GB, free: 1.488 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001658/0.8384, allocations: 187.9 kB / 0.6895 GB, free: 1.305 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009393/0.8478, allocations: 4.459 MB / 0.6938 GB, free: 12.84 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01553/0.8634, allocations: 7.327 MB / 0.701 GB, free: 4.559 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002012/0.8637, allocations: 63.44 kB / 0.7011 GB, free: 4.496 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001075/0.8647, allocations: 31.95 kB / 0.7011 GB, free: 4.465 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001163/0.8659, allocations: 0.7779 MB / 0.7019 GB, free: 3.688 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03949/0.9054, allocations: 37.48 MB / 0.7385 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002829/0.9083, allocations: 2.236 MB / 0.7406 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001372/0.9097, allocations: 1.02 MB / 0.7416 GB, free: 9.551 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004312/0.9102, allocations: 319.5 kB / 0.7419 GB, free: 9.184 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.825e-05/0.9102, allocations: 47 kB / 0.742 GB, free: 9.125 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=111): time 5.661e-06/0.9102, allocations: 0 / 0.742 GB, free: 9.125 MB / 0.5261 GB Notification: Performance of matching and sorting (n=135): time 0.3323/1.243, allocations: 9.933 MB / 0.7517 GB, free: 147.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/1.243, allocations: 199.3 kB / 0.7519 GB, free: 147.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005134/1.248, allocations: 2.748 MB / 0.7546 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002237/1.248, allocations: 27.2 kB / 0.7546 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001599/1.25, allocations: 2.662 MB / 0.7572 GB, free: 146.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004951/1.25, allocations: 0.5294 MB / 0.7577 GB, free: 145.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/1.25, allocations: 1.438 kB / 0.7577 GB, free: 145.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003344/1.251, allocations: 0.5339 MB / 0.7582 GB, free: 145.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002262/1.253, allocations: 1.485 MB / 0.7597 GB, free: 145.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00396/1.257, allocations: 4.958 MB / 0.7645 GB, free: 141 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004678/1.262, allocations: 2.712 MB / 0.7672 GB, free: 141 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001113/1.262, allocations: 35.09 kB / 0.7672 GB, free: 141 MB / 0.5261 GB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01112/1.273, allocations: 5.776 MB / 0.7728 GB, free: 140.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001593/1.273, allocations: 58.98 kB / 0.7729 GB, free: 140.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000222/1.273, allocations: 128 kB / 0.773 GB, free: 140.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000755/1.274, allocations: 343 kB / 0.7733 GB, free: 140.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003435/1.277, allocations: 1.255 MB / 0.7746 GB, free: 140.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002802/1.28, allocations: 2.606 MB / 0.7771 GB, free: 139 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004715/1.285, allocations: 183.2 kB / 0.7773 GB, free: 139 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006106/1.286, allocations: 342.9 kB / 0.7776 GB, free: 139 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * Number of states: 0 () * Number of discrete variables: 29 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 () * 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.0007175/1.286, allocations: 408.5 kB / 0.778 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002868/1.289, allocations: 1.912 MB / 0.7799 GB, free: 138.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003772/1.29, allocations: 275.9 kB / 0.7801 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002281/1.292, allocations: 1.506 MB / 0.7816 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.493e-05/1.292, allocations: 17.38 kB / 0.7816 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/1.292, allocations: 3.5 kB / 0.7816 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/1.292, allocations: 8.453 kB / 0.7816 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007511/1.299, allocations: 4.573 MB / 0.7861 GB, free: 137.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/1.3, allocations: 3.812 kB / 0.7861 GB, free: 137.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009365/1.3, allocations: 205.5 kB / 0.7863 GB, free: 137.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004493/1.301, allocations: 157.1 kB / 0.7864 GB, free: 137.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.08e-05/1.301, allocations: 5.438 kB / 0.7865 GB, free: 137.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001816/1.303, allocations: 2.048 MB / 0.7885 GB, free: 136.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/1.303, allocations: 4.938 kB / 0.7885 GB, free: 136.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00384/1.307, allocations: 3.518 MB / 0.7919 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006725/1.307, allocations: 326.9 kB / 0.7922 GB, free: 134.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002591/1.308, allocations: 3.594 kB / 0.7922 GB, free: 134.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009198/1.309, allocations: 45.61 kB / 0.7923 GB, free: 134.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/1.309, allocations: 75.73 kB / 0.7923 GB, free: 134.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-05/1.309, allocations: 32.72 kB / 0.7924 GB, free: 134.4 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002393/1.311, allocations: 1.826 MB / 0.7941 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.5e-07/1.311, allocations: 0 / 0.7941 GB, free: 133.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004097/1.315, allocations: 0.6714 MB / 0.7948 GB, free: 133.8 MB / 0.5261 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 101 * 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.003932/1.319, allocations: 4.438 MB / 0.7991 GB, free: 131.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005405/1.325, allocations: 3.601 MB / 0.8026 GB, free: 130 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/1.325, allocations: 3.938 kB / 0.8027 GB, free: 130 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001034/1.326, allocations: 0.9887 MB / 0.8036 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001543/1.327, allocations: 291.8 kB / 0.8039 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01381/1.341, allocations: 6.619 MB / 0.8104 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002369/1.344, allocations: 2.748 MB / 0.813 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003964/1.348, allocations: 1.728 MB / 0.8147 GB, free: 125.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001623/1.349, allocations: 1.447 MB / 0.8161 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of SimCode: time 2.645e-06/1.349, allocations: 0 / 0.8161 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08732/1.437, allocations: 56.46 MB / 0.8713 GB, free: 82.71 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/1.437, allocations: 136.6 kB / 0.8714 GB, free: 82.52 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.72/5.157, allocations: 0 / 0.8714 GB, free: 82.52 MB / 0.5261 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