Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_cpp_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.0009968/0.0009968, allocations: 200 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 243.4 MB, free: 8.094 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007573/0.0007573, allocations: 96.73 kB / 295.5 MB, free: 6.859 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2988/0.2988, allocations: 44.82 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003244/0.0003244, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3057, allocations: 62.95 MB / 0.516 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01955/0.3253, allocations: 30.34 MB / 0.5456 GB, free: 15.39 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.338, allocations: 7.244 MB / 0.5527 GB, free: 10.48 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005563/0.3436, allocations: 140.8 kB / 0.5528 GB, free: 10.45 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004182/0.3478, allocations: 1.54 MB / 0.5543 GB, free: 9.914 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01232/0.3601, allocations: 4.799 MB / 0.559 GB, free: 7.93 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002376/0.3625, allocations: 0.5148 MB / 0.5595 GB, free: 7.742 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03692/0.3994, allocations: 31.61 MB / 0.5904 GB, free: 13.11 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004577/0.4041, allocations: 2.866 MB / 0.5932 GB, free: 10.17 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002027/0.4061, allocations: 0.9533 MB / 0.5941 GB, free: 9.215 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00239/0.4086, allocations: 1.519 MB / 0.5956 GB, free: 7.691 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006284/0.4092, allocations: 104 kB / 0.5957 GB, free: 7.59 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002276/0.4115, allocations: 1.041 MB / 0.5967 GB, free: 6.547 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001635/0.4132, allocations: 1.317 MB / 0.598 GB, free: 5.227 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002088/0.4153, allocations: 1.501 MB / 0.5994 GB, free: 3.711 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004351/0.4196, allocations: 4.353 MB / 0.6037 GB, free: 15.35 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4197, allocations: 0 / 0.6037 GB, free: 15.35 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4197, allocations: 0 / 0.6037 GB, free: 15.35 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001053/0.4198, allocations: 0 / 0.6037 GB, free: 15.35 MB / 426.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.006631/0.4264, allocations: 3.213 MB / 0.6068 GB, free: 12.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.4265, allocations: 8.031 kB / 0.6068 GB, free: 12.06 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008843/0.4274, allocations: 0.5509 MB / 0.6074 GB, free: 11.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07905/0.5064, allocations: 7.147 MB / 0.6143 GB, free: 4.336 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004774/0.5112, allocations: 2.373 MB / 0.6167 GB, free: 1.898 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.5114, allocations: 172.3 kB / 0.6168 GB, free: 1.727 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004944/0.5119, allocations: 227.8 kB / 0.617 GB, free: 1.504 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009915/0.5218, allocations: 7.509 MB / 0.6244 GB, free: 9.371 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.551e-05/0.5219, allocations: 43.59 kB / 0.6244 GB, free: 9.328 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002779/0.5222, allocations: 111.9 kB / 0.6245 GB, free: 9.219 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002422/0.5246, allocations: 1.594 MB / 0.6261 GB, free: 7.625 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/0.5348, allocations: 6.331 MB / 0.6323 GB, free: 1.281 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0295/0.5643, allocations: 30.38 MB / 0.6619 GB, free: 1.961 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003988/0.5683, allocations: 2.158 MB / 0.664 GB, free: 15.66 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001253/0.5696, allocations: 1.085 MB / 0.6651 GB, free: 14.56 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003344/0.57, allocations: 323.5 kB / 0.6654 GB, free: 14.19 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.57, allocations: 43 kB / 0.6654 GB, free: 14.14 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 3.898e-06/0.57, allocations: 0 / 0.6654 GB, free: 14.14 MB / 490.7 MB Notification: Performance of matching and sorting (n=132): time 0.03231/0.6023, allocations: 10.96 MB / 0.6762 GB, free: 3.051 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.6025, allocations: 192.6 kB / 0.6763 GB, free: 2.82 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.237/0.8395, allocations: 3.643 MB / 0.6799 GB, free: 133 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002369/0.8397, allocations: 43.23 kB / 0.6799 GB, free: 132.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001636/0.8414, allocations: 2.606 MB / 0.6825 GB, free: 131.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004909/0.8419, allocations: 0.5278 MB / 0.683 GB, free: 131.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/0.8421, allocations: 100.9 kB / 0.6831 GB, free: 131 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002715/0.8424, allocations: 0.5307 MB / 0.6836 GB, free: 130.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002218/0.8446, allocations: 1.61 MB / 0.6852 GB, free: 130.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003117/0.8478, allocations: 4.975 MB / 0.69 GB, free: 125.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005804/0.8536, allocations: 7.169 MB / 0.697 GB, free: 118.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.666e-05/0.8537, allocations: 34.44 kB / 0.6971 GB, free: 118.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.009784/0.8635, allocations: 6.55 MB / 0.7035 GB, free: 116.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.747e-05/0.8636, allocations: 63.84 kB / 0.7035 GB, free: 116.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001322/0.8638, allocations: 118.3 kB / 0.7036 GB, free: 116.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008808/0.8646, allocations: 396 kB / 0.704 GB, free: 116.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003451/0.8681, allocations: 1.191 MB / 0.7052 GB, free: 116 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00304/0.8712, allocations: 3.081 MB / 0.7082 GB, free: 114 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003601/0.8748, allocations: 283.9 kB / 0.7085 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006458/0.8754, allocations: 323.5 kB / 0.7088 GB, free: 113.9 MB / 490.7 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.00302/0.8785, allocations: 1.732 MB / 0.7105 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006701/0.8792, allocations: 301.6 kB / 0.7108 GB, free: 112.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002971/0.8821, allocations: 1.719 MB / 0.7124 GB, free: 112.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.998e-05/0.8822, allocations: 19.31 kB / 0.7125 GB, free: 112.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.8822, allocations: 3.75 kB / 0.7125 GB, free: 112.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/0.8822, allocations: 6.438 kB / 0.7125 GB, free: 112.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008679/0.8909, allocations: 5.357 MB / 0.7177 GB, free: 110 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.8909, allocations: 2.844 kB / 0.7177 GB, free: 110 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009418/0.8919, allocations: 197.6 kB / 0.7179 GB, free: 110 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006692/0.8926, allocations: 224.9 kB / 0.7181 GB, free: 110 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.141e-05/0.8927, allocations: 29.7 kB / 0.7181 GB, free: 109.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002431/0.8951, allocations: 2.505 MB / 0.7206 GB, free: 108.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.8951, allocations: 1.094 kB / 0.7206 GB, free: 108.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004751/0.8999, allocations: 3.703 MB / 0.7242 GB, free: 106.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006614/0.9006, allocations: 367.9 kB / 0.7245 GB, free: 106.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002616/0.9008, allocations: 24.3 kB / 0.7246 GB, free: 106.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.9018, allocations: 67.94 kB / 0.7246 GB, free: 106.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002479/0.9021, allocations: 71.09 kB / 0.7247 GB, free: 106.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.071e-05/0.9022, allocations: 38.08 kB / 0.7247 GB, free: 106.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002968/0.9052, allocations: 2.28 MB / 0.727 GB, free: 105.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9052, allocations: 0 / 0.727 GB, free: 105.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003455/0.9086, allocations: 0.7868 MB / 0.7277 GB, free: 105.3 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.004248/0.9129, allocations: 4.331 MB / 0.732 GB, free: 103.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005183/0.9181, allocations: 3.919 MB / 0.7358 GB, free: 99.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.9181, allocations: 0 / 0.7358 GB, free: 99.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.9193, allocations: 1.066 MB / 0.7368 GB, free: 98.95 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002521/0.9218, allocations: 363.6 kB / 0.7372 GB, free: 98.62 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03431/0.9561, allocations: 27.73 MB / 0.7642 GB, free: 68.84 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00192/0.9581, allocations: 2.68 MB / 0.7669 GB, free: 66.14 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001562/0.9597, allocations: 1.487 MB / 0.7683 GB, free: 64.65 MB / 490.7 MB Notification: Performance of SimCode: time 6.71e-07/0.9597, allocations: 0 / 0.7683 GB, free: 64.65 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.005/6.965, allocations: 73.24 MB / 0.8398 GB, free: 7.379 MB / 0.4948 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches