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.0009768/0.0009768, allocations: 101.1 kB / 17 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001265, allocations: 190.9 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2146/0.2146, allocations: 45.92 MB / 344.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002962/0.0002966, allocations: 8 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1388, allocations: 63.47 MB / 481.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02795/0.1668, allocations: 30.33 MB / 0.5 GB, free: 6.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3006/0.4674, allocations: 7.244 MB / 0.507 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006424/0.4739, allocations: 140.3 kB / 0.5072 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005679/0.4796, allocations: 1.542 MB / 0.5087 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01471/0.4943, allocations: 4.765 MB / 0.5133 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002302/0.4967, allocations: 488.2 kB / 0.5138 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0378/0.5345, allocations: 31.59 MB / 0.5447 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004739/0.5393, allocations: 2.622 MB / 0.5472 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002673/0.542, allocations: 0.9613 MB / 0.5482 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003242/0.5453, allocations: 1.519 MB / 0.5496 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006374/0.5459, allocations: 108 kB / 0.5497 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002316/0.5483, allocations: 0.8942 MB / 0.5506 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001877/0.5502, allocations: 1.31 MB / 0.5519 GB, free: 8.938 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008819/0.5511, allocations: 0.6433 MB / 0.5525 GB, free: 8.582 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005151/0.5562, allocations: 4.345 MB / 0.5568 GB, free: 4.789 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.5562, allocations: 1.875 kB / 0.5568 GB, free: 4.789 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5563, allocations: 0 / 0.5568 GB, free: 4.789 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001315/0.5564, allocations: 0 / 0.5568 GB, free: 4.789 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.0073/0.5637, allocations: 3.248 MB / 0.5599 GB, free: 1.762 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.5638, allocations: 12.03 kB / 0.5599 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001169/0.5649, allocations: 0.553 MB / 0.5605 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06649/0.6314, allocations: 7.144 MB / 0.5675 GB, free: 10.48 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005817/0.6373, allocations: 2.347 MB / 0.5698 GB, free: 8.629 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.6375, allocations: 164.9 kB / 0.5699 GB, free: 8.535 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005784/0.6381, allocations: 222 kB / 0.5701 GB, free: 8.395 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01035/0.6484, allocations: 7.516 MB / 0.5775 GB, free: 2.273 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.684e-05/0.6486, allocations: 43.62 kB / 0.5775 GB, free: 2.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002777/0.6488, allocations: 112.4 kB / 0.5776 GB, free: 2.195 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002304/0.6512, allocations: 1.603 MB / 0.5792 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01072/0.6619, allocations: 6.317 MB / 0.5853 GB, free: 11.09 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0344/0.6963, allocations: 30.35 MB / 0.615 GB, free: 11.96 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004368/0.7008, allocations: 2.166 MB / 0.6171 GB, free: 9.645 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001378/0.7022, allocations: 1.067 MB / 0.6181 GB, free: 8.566 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003457/0.7025, allocations: 326.3 kB / 0.6185 GB, free: 8.199 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/0.7026, allocations: 50.92 kB / 0.6185 GB, free: 8.141 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 4.508e-06/0.7026, allocations: 0 / 0.6185 GB, free: 8.141 MB / 462.1 MB Notification: Performance of matching and sorting (n=132): time 0.03034/0.7329, allocations: 10.95 MB / 0.6292 GB, free: 13.08 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.7331, allocations: 200.5 kB / 0.6294 GB, free: 12.84 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005627/0.7388, allocations: 3.647 MB / 0.633 GB, free: 9.203 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002806/0.7391, allocations: 41.7 kB / 0.633 GB, free: 9.156 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002371/0.7414, allocations: 2.605 MB / 0.6355 GB, free: 6.566 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009333/0.7424, allocations: 0.5283 MB / 0.6361 GB, free: 6.043 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002418/0.7426, allocations: 104 kB / 0.6362 GB, free: 5.941 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0005647/0.7432, allocations: 0.525 MB / 0.6367 GB, free: 5.41 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002738/0.746, allocations: 1.615 MB / 0.6382 GB, free: 3.789 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004734/0.7507, allocations: 4.964 MB / 0.6431 GB, free: 13.13 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00401/0.7547, allocations: 2.802 MB / 0.6458 GB, free: 10.33 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.093e-05/0.7548, allocations: 32 kB / 0.6459 GB, free: 10.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01053/0.7653, allocations: 6.535 MB / 0.6522 GB, free: 3.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.699e-05/0.7655, allocations: 57 kB / 0.6523 GB, free: 3.695 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001089/0.7656, allocations: 116 kB / 0.6524 GB, free: 3.582 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008651/0.7665, allocations: 414.4 kB / 0.6528 GB, free: 3.176 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003217/0.7697, allocations: 1.193 MB / 0.654 GB, free: 1.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003457/0.7732, allocations: 3.087 MB / 0.657 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003416/0.7766, allocations: 283.5 kB / 0.6572 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005594/0.7772, allocations: 324 kB / 0.6576 GB, free: 14.18 MB / 0.4981 GB 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.002996/0.7802, allocations: 1.733 MB / 0.6592 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004995/0.7807, allocations: 300.1 kB / 0.6595 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002877/0.7836, allocations: 1.718 MB / 0.6612 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.393e-05/0.7836, allocations: 19.95 kB / 0.6612 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.7836, allocations: 0 / 0.6612 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/0.7836, allocations: 11.97 kB / 0.6612 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007966/0.7916, allocations: 5.369 MB / 0.6665 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/0.7916, allocations: 0 / 0.6665 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008811/0.7925, allocations: 199.7 kB / 0.6667 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006077/0.7932, allocations: 220.7 kB / 0.6669 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.036e-05/0.7932, allocations: 30.88 kB / 0.6669 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002615/0.7959, allocations: 2.501 MB / 0.6694 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.7959, allocations: 0 / 0.6694 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00497/0.8009, allocations: 3.718 MB / 0.673 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007591/0.8016, allocations: 361 kB / 0.6733 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002704/0.8019, allocations: 16 kB / 0.6733 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009241/0.8028, allocations: 75.27 kB / 0.6734 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.803, allocations: 64.56 kB / 0.6735 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.835e-05/0.8031, allocations: 40.06 kB / 0.6735 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003218/0.8063, allocations: 2.281 MB / 0.6757 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.91e-07/0.8063, allocations: 0 / 0.6757 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003593/0.8099, allocations: 0.7851 MB / 0.6765 GB, free: 10.5 MB / 0.5137 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.005433/0.8154, allocations: 4.328 MB / 0.6807 GB, free: 6.141 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006384/0.8218, allocations: 3.923 MB / 0.6846 GB, free: 2.234 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.8218, allocations: 0 / 0.6846 GB, free: 2.234 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001429/0.8232, allocations: 1.06 MB / 0.6856 GB, free: 1.164 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002157/0.8254, allocations: 365.2 kB / 0.686 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04498/0.8704, allocations: 27.33 MB / 0.7126 GB, free: 2.383 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2526/1.123, allocations: 2.671 MB / 0.7153 GB, free: 197 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006494/1.13, allocations: 1.68 MB / 0.7169 GB, free: 197 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003351/1.133, allocations: 1.448 MB / 0.7183 GB, free: 197 MB / 0.545 GB Notification: Performance of SimCode: time 1.603e-06/1.133, allocations: 0 / 0.7183 GB, free: 197 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1036/1.237, allocations: 61.73 MB / 0.7786 GB, free: 153.8 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/1.237, allocations: 196.2 kB / 0.7788 GB, free: 153.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.593/4.83, allocations: 7.25 kB / 0.7788 GB, free: 153.6 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