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.001776/0.001776, allocations: 201 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.2 MB / 245 MB, free: 5.785 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00094/0.0009395, allocations: 99.06 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3584/0.3584, allocations: 45.23 MB / 394.6 MB, free: 31.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003089/0.000309, allocations: 8 kB / 468.5 MB, free: 7.621 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3793/0.3796, allocations: 63.24 MB / 0.5193 GB, free: 37.23 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.188/0.5676, allocations: 107.3 MB / 0.624 GB, free: 12.14 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/0.568, allocations: 79.94 kB / 0.6241 GB, free: 12.07 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5034/1.071, allocations: 72.81 MB / 0.6952 GB, free: 102 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.016e-06/1.071, allocations: 6.859 kB / 0.6952 GB, free: 102 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002303/1.072, allocations: 58.91 kB / 0.6953 GB, free: 102 MB / 490.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.0137/1.085, allocations: 3.428 MB / 0.6986 GB, free: 100.4 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.794e-05/1.085, allocations: 7.969 kB / 0.6986 GB, free: 100.4 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002849/1.088, allocations: 0.6032 MB / 0.6992 GB, free: 100.4 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01668/1.105, allocations: 4.219 MB / 0.7033 GB, free: 100.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01338/1.118, allocations: 3.528 MB / 0.7068 GB, free: 99.65 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004721/1.119, allocations: 238.6 kB / 0.707 GB, free: 99.64 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002216/1.121, allocations: 315.8 kB / 0.7073 GB, free: 99.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02149/1.143, allocations: 8.019 MB / 0.7151 GB, free: 97.11 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005535/1.143, allocations: 65.22 kB / 0.7152 GB, free: 97.11 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001955/1.145, allocations: 157.2 kB / 0.7153 GB, free: 97.11 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001656/1.147, allocations: 0.7777 MB / 0.7161 GB, free: 97.1 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01508/1.162, allocations: 6.44 MB / 0.7224 GB, free: 95.44 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04382/1.206, allocations: 38.98 MB / 0.7604 GB, free: 64.26 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004191/1.21, allocations: 2.178 MB / 0.7626 GB, free: 63.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003561/1.211, allocations: 324.2 kB / 0.7629 GB, free: 62.84 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/1.211, allocations: 49.47 kB / 0.7629 GB, free: 62.79 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 4.679e-06/1.211, allocations: 0 / 0.7629 GB, free: 62.79 MB / 490.7 MB Notification: Performance of matching and sorting (n=132): time 0.03343/1.244, allocations: 10.92 MB / 0.7736 GB, free: 58.19 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.573e-05/1.244, allocations: 192.3 kB / 0.7738 GB, free: 57.97 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006339/1.251, allocations: 3.237 MB / 0.7769 GB, free: 56.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002655/1.251, allocations: 48.95 kB / 0.777 GB, free: 56.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001584/1.253, allocations: 2.621 MB / 0.7795 GB, free: 54.71 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005319/1.253, allocations: 0.5253 MB / 0.7801 GB, free: 54.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002063/1.253, allocations: 104.4 kB / 0.7802 GB, free: 54.25 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002505/1.254, allocations: 0.5241 MB / 0.7807 GB, free: 53.86 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002235/1.256, allocations: 1.578 MB / 0.7822 GB, free: 53.36 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003888/1.26, allocations: 4.933 MB / 0.787 GB, free: 47.27 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003589/1.263, allocations: 2.747 MB / 0.7897 GB, free: 44.81 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.336e-05/1.263, allocations: 36 kB / 0.7897 GB, free: 44.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=680) (initialization): time 0.01046/1.274, allocations: 6.451 MB / 0.796 GB, free: 38.99 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.505e-05/1.274, allocations: 56 kB / 0.7961 GB, free: 38.94 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001067/1.274, allocations: 124 kB / 0.7962 GB, free: 38.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000704/1.275, allocations: 336.8 kB / 0.7965 GB, free: 38.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003259/1.278, allocations: 1.205 MB / 0.7977 GB, free: 37.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002746/1.281, allocations: 2.745 MB / 0.8004 GB, free: 34.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004203/1.285, allocations: 278.6 kB / 0.8007 GB, free: 34.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005389/1.286, allocations: 328 kB / 0.801 GB, free: 33.82 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (645): * Single equations (assignments): 641 * 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.003127/1.289, allocations: 1.732 MB / 0.8027 GB, free: 32.08 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000733/1.289, allocations: 304.1 kB / 0.803 GB, free: 31.78 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/1.292, allocations: 1.605 MB / 0.8045 GB, free: 30.16 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.421e-05/1.292, allocations: 16 kB / 0.8045 GB, free: 30.14 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/1.292, allocations: 0 / 0.8045 GB, free: 30.14 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/1.292, allocations: 11.97 kB / 0.8045 GB, free: 30.13 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008824/1.301, allocations: 5.16 MB / 0.8096 GB, free: 24.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/1.301, allocations: 2.188 kB / 0.8096 GB, free: 24.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009898/1.302, allocations: 203.8 kB / 0.8098 GB, free: 24.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004635/1.303, allocations: 156.6 kB / 0.8099 GB, free: 24.56 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.934e-05/1.303, allocations: 31.14 kB / 0.81 GB, free: 24.53 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001879/1.305, allocations: 2.193 MB / 0.8121 GB, free: 22.21 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/1.305, allocations: 0 / 0.8121 GB, free: 22.21 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004265/1.309, allocations: 3.647 MB / 0.8157 GB, free: 18.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/1.31, allocations: 365 kB / 0.816 GB, free: 18.12 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003081/1.31, allocations: 20 kB / 0.816 GB, free: 18.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/1.311, allocations: 69.88 kB / 0.8161 GB, free: 18.04 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/1.312, allocations: 72.58 kB / 0.8162 GB, free: 17.97 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.474e-05/1.312, allocations: 36 kB / 0.8162 GB, free: 17.94 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003285/1.315, allocations: 2.266 MB / 0.8184 GB, free: 15.68 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.315, allocations: 0 / 0.8184 GB, free: 15.68 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004263/1.319, allocations: 0.7734 MB / 0.8192 GB, free: 14.91 MB / 490.7 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 (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.004382/1.324, allocations: 4.584 MB / 0.8236 GB, free: 10.27 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005993/1.33, allocations: 3.838 MB / 0.8274 GB, free: 6.441 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/1.33, allocations: 4 kB / 0.8274 GB, free: 6.438 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/1.331, allocations: 1.029 MB / 0.8284 GB, free: 5.398 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/1.333, allocations: 341.1 kB / 0.8287 GB, free: 5.066 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4027/1.736, allocations: 108.8 MB / 0.935 GB, free: 85.82 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002833/1.739, allocations: 2.748 MB / 0.9377 GB, free: 85.05 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005436/1.744, allocations: 1.683 MB / 0.9393 GB, free: 85.02 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002287/1.746, allocations: 1.451 MB / 0.9407 GB, free: 85.02 MB / 0.5261 GB Notification: Performance of SimCode: time 2.034e-06/1.746, allocations: 0 / 0.9407 GB, free: 85.02 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.114/1.86, allocations: 61.34 MB / 1.001 GB, free: 64.58 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001819/1.861, allocations: 206.7 kB / 1.001 GB, free: 64.32 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.988/5.849, allocations: 0 / 1.001 GB, free: 64.32 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