Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00106/0.00106, allocations: 121 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001083/0.001083, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2216/0.2216, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 79.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3228, allocations: 62.43 MB / 0.5305 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01056/0.3334, allocations: 9.058 MB / 0.5394 GB, free: 6.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007988/0.3414, allocations: 3.567 MB / 0.5428 GB, free: 3.754 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00169/0.3432, allocations: 48.88 kB / 0.5429 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004268/0.3474, allocations: 1.906 MB / 0.5447 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005631/0.3532, allocations: 1.609 MB / 0.5463 GB, free: 1.348 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.3549, allocations: 0.5667 MB / 0.5469 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005837/0.3607, allocations: 3.657 MB / 0.5504 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003752/0.3645, allocations: 2.428 MB / 0.5528 GB, free: 10.99 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002974/0.3675, allocations: 1.164 MB / 0.5539 GB, free: 9.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002966/0.3705, allocations: 1.643 MB / 0.5556 GB, free: 8.172 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009311/0.3715, allocations: 240 kB / 0.5558 GB, free: 7.938 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002706/0.3742, allocations: 1.108 MB / 0.5569 GB, free: 6.828 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001997/0.3762, allocations: 1.512 MB / 0.5583 GB, free: 5.312 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002974/0.3792, allocations: 1.782 MB / 0.5601 GB, free: 3.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008471/0.3877, allocations: 5.875 MB / 0.5658 GB, free: 13.62 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.816e-06/0.3878, allocations: 0 / 0.5658 GB, free: 13.62 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3878, allocations: 0 / 0.5658 GB, free: 13.62 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002535/0.388, allocations: 0 / 0.5658 GB, free: 13.62 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.01221/0.4003, allocations: 4.062 MB / 0.5698 GB, free: 9.484 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.4003, allocations: 12.03 kB / 0.5698 GB, free: 9.473 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001669/0.402, allocations: 0.5792 MB / 0.5704 GB, free: 8.883 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07784/0.4799, allocations: 6.966 MB / 0.5772 GB, free: 1.906 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00638/0.4863, allocations: 2.468 MB / 0.5796 GB, free: 15.39 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/0.4866, allocations: 176.8 kB / 0.5797 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001075/0.4877, allocations: 239.8 kB / 0.58 GB, free: 14.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01669/0.5044, allocations: 7.724 MB / 0.5875 GB, free: 6.602 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001588/0.5046, allocations: 35.7 kB / 0.5875 GB, free: 6.566 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007792/0.5054, allocations: 119.9 kB / 0.5877 GB, free: 6.449 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002712/0.5081, allocations: 1.578 MB / 0.5892 GB, free: 4.871 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0124/0.5205, allocations: 6.472 MB / 0.5955 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03759/0.5581, allocations: 31.35 MB / 0.6261 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004839/0.563, allocations: 2.415 MB / 0.6285 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001395/0.5644, allocations: 1.065 MB / 0.6295 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003501/0.5648, allocations: 323.2 kB / 0.6298 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.678e-05/0.5648, allocations: 54.5 kB / 0.6299 GB, free: 9.988 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.968e-06/0.5648, allocations: 0 / 0.6299 GB, free: 9.988 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02159/0.5864, allocations: 8.54 MB / 0.6382 GB, free: 1.355 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.5866, allocations: 196.4 kB / 0.6384 GB, free: 1.117 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005887/0.5925, allocations: 3.77 MB / 0.6421 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002111/0.5927, allocations: 41.7 kB / 0.6421 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002125/0.5949, allocations: 2.83 MB / 0.6449 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006361/0.5955, allocations: 0.5002 MB / 0.6454 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001723/0.5973, allocations: 1.103 MB / 0.6465 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.5974, allocations: 309.1 kB / 0.6468 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002643/0.6, allocations: 1.58 MB / 0.6483 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005373/0.6054, allocations: 5.141 MB / 0.6533 GB, free: 16 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007991/0.6134, allocations: 7.323 MB / 0.6605 GB, free: 6.906 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/0.6136, allocations: 36 kB / 0.6605 GB, free: 6.871 MB / 0.5137 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01214/0.6258, allocations: 6.641 MB / 0.667 GB, free: 224 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001655/0.626, allocations: 62.81 kB / 0.6671 GB, free: 164 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002367/0.6262, allocations: 128 kB / 0.6672 GB, free: 36 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.6273, allocations: 405.2 kB / 0.6676 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003806/0.6312, allocations: 1.228 MB / 0.6688 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003974/0.6351, allocations: 3.337 MB / 0.672 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003654/0.6388, allocations: 283.6 kB / 0.6723 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007936/0.6396, allocations: 348 kB / 0.6726 GB, free: 10.31 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (663): * Single equations (assignments): 659 * 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.003087/0.6427, allocations: 1.779 MB / 0.6744 GB, free: 8.52 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006457/0.6434, allocations: 317.8 kB / 0.6747 GB, free: 8.207 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002961/0.6464, allocations: 1.47 MB / 0.6761 GB, free: 6.73 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.54e-05/0.6464, allocations: 16 kB / 0.6761 GB, free: 6.715 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.6464, allocations: 7.938 kB / 0.6761 GB, free: 6.707 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.908e-05/0.6465, allocations: 11.97 kB / 0.6761 GB, free: 6.695 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/0.6567, allocations: 4.83 MB / 0.6809 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/0.6567, allocations: 0 / 0.6809 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008078/0.6575, allocations: 159.8 kB / 0.681 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007032/0.6583, allocations: 228.5 kB / 0.6812 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.6584, allocations: 20 kB / 0.6813 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003086/0.6615, allocations: 2.697 MB / 0.6839 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.6615, allocations: 4.062 kB / 0.6839 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004755/0.6663, allocations: 3.31 MB / 0.6871 GB, free: 11.21 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009228/0.6672, allocations: 374.8 kB / 0.6875 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000565/0.6678, allocations: 16 kB / 0.6875 GB, free: 10.81 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.6691, allocations: 51.94 kB / 0.6875 GB, free: 10.76 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000207/0.6693, allocations: 64.41 kB / 0.6876 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.161e-05/0.6694, allocations: 36 kB / 0.6876 GB, free: 10.66 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004102/0.6735, allocations: 2.339 MB / 0.6899 GB, free: 8.34 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/0.6735, allocations: 4.062 kB / 0.6899 GB, free: 8.336 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004274/0.6778, allocations: 0.7655 MB / 0.6907 GB, free: 7.57 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.005213/0.683, allocations: 3.912 MB / 0.6945 GB, free: 3.617 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.005964/0.689, allocations: 3.823 MB / 0.6982 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.6891, allocations: 0 / 0.6982 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00147/0.6905, allocations: 0.9532 MB / 0.6992 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/0.6931, allocations: 378.1 kB / 0.6995 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3072/1, allocations: 37.21 MB / 0.7359 GB, free: 170.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003312/1.004, allocations: 2.711 MB / 0.7385 GB, free: 169.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003612/1.007, allocations: 1.708 MB / 0.7402 GB, free: 169.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001965/1.009, allocations: 1.458 MB / 0.7416 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.292e-06/1.009, allocations: 0 / 0.7416 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08595/1.095, allocations: 54.12 MB / 0.7945 GB, free: 118.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.86/24.95, allocations: 6.875 kB / 0.7945 GB, free: 118.7 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0002 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches