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.001522/0.001522, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001877/0.001877, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2012/0.2012, allocations: 46.11 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 79.44 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1074, allocations: 62.44 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.009308/0.1168, allocations: 8.926 MB / 489 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00617/0.123, allocations: 3.551 MB / 492.6 MB, free: 8.641 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.124, allocations: 47.88 kB / 492.6 MB, free: 8.594 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002957/0.127, allocations: 1.654 MB / 494.3 MB, free: 6.934 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003261/0.1303, allocations: 1.545 MB / 495.8 MB, free: 5.383 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001335/0.1316, allocations: 0.5613 MB / 496.4 MB, free: 4.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004325/0.136, allocations: 3.561 MB / 500 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002698/0.1387, allocations: 2.189 MB / 0.4904 GB, free: 15.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001612/0.1403, allocations: 1.09 MB / 0.4915 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002212/0.1425, allocations: 1.534 MB / 0.493 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006962/0.1432, allocations: 220 kB / 0.4932 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001975/0.1452, allocations: 1.092 MB / 0.4942 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001521/0.1468, allocations: 1.402 MB / 0.4956 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002018/0.1488, allocations: 1.685 MB / 0.4972 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004654/0.1535, allocations: 5.351 MB / 0.5025 GB, free: 2.598 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1535, allocations: 7.984 kB / 0.5025 GB, free: 2.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1535, allocations: 0 / 0.5025 GB, free: 2.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.06e-05/0.1536, allocations: 0 / 0.5025 GB, free: 2.59 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.1844/0.338, allocations: 3.78 MB / 0.5062 GB, free: 39.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.3381, allocations: 10.72 kB / 0.5062 GB, free: 39.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001035/0.3391, allocations: 0.5412 MB / 0.5067 GB, free: 39.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08553/0.4246, allocations: 6.924 MB / 0.5135 GB, free: 39.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006703/0.4314, allocations: 2.362 MB / 0.5158 GB, free: 37.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002924/0.4317, allocations: 159.6 kB / 0.5159 GB, free: 37.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001119/0.4329, allocations: 224 kB / 0.5161 GB, free: 37.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01266/0.4455, allocations: 7.341 MB / 0.5233 GB, free: 33.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.765e-05/0.4457, allocations: 36.16 kB / 0.5233 GB, free: 33.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002734/0.4459, allocations: 114.2 kB / 0.5235 GB, free: 33.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001989/0.4479, allocations: 1.54 MB / 0.525 GB, free: 32.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01029/0.4582, allocations: 6.178 MB / 0.531 GB, free: 26.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03621/0.4945, allocations: 29.99 MB / 0.5603 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006299/0.5008, allocations: 2.175 MB / 0.5624 GB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001927/0.5028, allocations: 1.075 MB / 0.5635 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004538/0.5033, allocations: 319.5 kB / 0.5638 GB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.39e-05/0.5034, allocations: 46.98 kB / 0.5638 GB, free: 8.125 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 5.31e-06/0.5034, allocations: 0 / 0.5638 GB, free: 8.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=132): time 0.03455/0.5379, allocations: 10.87 MB / 0.5744 GB, free: 13.12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.5381, allocations: 192.6 kB / 0.5746 GB, free: 12.89 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00538/0.5435, allocations: 3.605 MB / 0.5781 GB, free: 9.285 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001746/0.5437, allocations: 45.7 kB / 0.5782 GB, free: 9.234 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001958/0.5456, allocations: 2.565 MB / 0.5807 GB, free: 6.629 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006716/0.5463, allocations: 0.5286 MB / 0.5812 GB, free: 6.094 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001538/0.5479, allocations: 1.043 MB / 0.5822 GB, free: 5.039 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.708e-05/0.548, allocations: 309.1 kB / 0.5825 GB, free: 4.734 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00235/0.5503, allocations: 1.626 MB / 0.5841 GB, free: 3.102 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004323/0.5547, allocations: 4.965 MB / 0.5889 GB, free: 12.45 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007539/0.5622, allocations: 7.177 MB / 0.5959 GB, free: 3.617 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.059e-05/0.5623, allocations: 36 kB / 0.596 GB, free: 3.582 MB / 430.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01058/0.5729, allocations: 6.55 MB / 0.6024 GB, free: 13.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.117e-05/0.573, allocations: 56 kB / 0.6024 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001601/0.5732, allocations: 120 kB / 0.6025 GB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000912/0.5741, allocations: 408.5 kB / 0.6029 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003461/0.5776, allocations: 1.185 MB / 0.6041 GB, free: 11.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003694/0.5813, allocations: 3.316 MB / 0.6073 GB, free: 7.812 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003193/0.5845, allocations: 287.4 kB / 0.6076 GB, free: 7.531 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004764/0.585, allocations: 328 kB / 0.6079 GB, free: 7.211 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.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 (640): * Single equations (assignments): 636 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002422/0.5874, allocations: 1.693 MB / 0.6096 GB, free: 5.508 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005743/0.588, allocations: 311.9 kB / 0.6099 GB, free: 5.199 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003024/0.591, allocations: 1.718 MB / 0.6115 GB, free: 3.469 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.446e-05/0.5911, allocations: 19.98 kB / 0.6116 GB, free: 3.449 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.5911, allocations: 4 kB / 0.6116 GB, free: 3.445 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.5911, allocations: 3.984 kB / 0.6116 GB, free: 3.441 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008888/0.6, allocations: 5.306 MB / 0.6168 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/0.6, allocations: 0 / 0.6168 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009744/0.601, allocations: 200 kB / 0.6169 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006787/0.6017, allocations: 236.6 kB / 0.6172 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.104e-05/0.6018, allocations: 23.98 kB / 0.6172 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002799/0.6046, allocations: 2.687 MB / 0.6198 GB, free: 10.76 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.6046, allocations: 0 / 0.6198 GB, free: 10.76 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004959/0.6096, allocations: 3.714 MB / 0.6234 GB, free: 7.02 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000701/0.6103, allocations: 349.1 kB / 0.6238 GB, free: 6.656 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004501/0.6108, allocations: 20 kB / 0.6238 GB, free: 6.637 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.612, allocations: 63.92 kB / 0.6239 GB, free: 6.574 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.6122, allocations: 84.39 kB / 0.6239 GB, free: 6.496 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.913e-05/0.6123, allocations: 40 kB / 0.624 GB, free: 6.457 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003474/0.6157, allocations: 2.261 MB / 0.6262 GB, free: 4.207 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6157, allocations: 0 / 0.6262 GB, free: 4.207 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003553/0.6193, allocations: 0.759 MB / 0.6269 GB, free: 3.453 MB / 462.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005314/0.6246, allocations: 4.332 MB / 0.6312 GB, free: 15.08 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006436/0.6311, allocations: 4.297 MB / 0.6354 GB, free: 10.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.6311, allocations: 0 / 0.6354 GB, free: 10.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001406/0.6325, allocations: 1.073 MB / 0.6364 GB, free: 9.711 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002265/0.6348, allocations: 370.1 kB / 0.6368 GB, free: 9.355 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05175/0.6865, allocations: 40.61 MB / 0.6764 GB, free: 10.18 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003076/0.6897, allocations: 2.639 MB / 0.679 GB, free: 7.52 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.003973/0.6937, allocations: 1.675 MB / 0.6806 GB, free: 5.84 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001973/0.6956, allocations: 1.409 MB / 0.682 GB, free: 4.43 MB / 0.5138 GB Notification: Performance of SimCode: time 6.01e-07/0.6957, allocations: 4 kB / 0.682 GB, free: 4.426 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3774/1.073, allocations: 57.24 MB / 0.7379 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/11.45, allocations: 19.05 kB / 0.7379 GB, free: 166.1 MB / 0.5294 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/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) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches