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.001633/0.001633, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001814/0.001814, allocations: 199.9 kB / 18.73 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.386/1.386, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.217/0.217, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 71.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3213, allocations: 62.44 MB / 0.5305 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01106/0.3324, allocations: 9.053 MB / 0.5393 GB, free: 6.531 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00837/0.3408, allocations: 3.564 MB / 0.5428 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001731/0.3425, allocations: 48.75 kB / 0.5429 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004343/0.3469, allocations: 1.91 MB / 0.5447 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004988/0.352, allocations: 1.609 MB / 0.5463 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.3536, allocations: 0.5747 MB / 0.5469 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006031/0.3597, allocations: 3.662 MB / 0.5504 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003493/0.3632, allocations: 2.421 MB / 0.5528 GB, free: 11 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00217/0.3654, allocations: 1.16 MB / 0.5539 GB, free: 9.832 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002691/0.3681, allocations: 1.639 MB / 0.5555 GB, free: 8.188 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008476/0.369, allocations: 240 kB / 0.5558 GB, free: 7.953 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002557/0.3715, allocations: 1.119 MB / 0.5569 GB, free: 6.832 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001966/0.3735, allocations: 1.508 MB / 0.5583 GB, free: 5.32 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00353/0.3771, allocations: 1.782 MB / 0.5601 GB, free: 3.527 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00873/0.3858, allocations: 5.876 MB / 0.5658 GB, free: 13.63 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.3859, allocations: 0 / 0.5658 GB, free: 13.63 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3859, allocations: 0 / 0.5658 GB, free: 13.63 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002237/0.3861, allocations: 0 / 0.5658 GB, free: 13.63 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.009761/0.3959, allocations: 4.066 MB / 0.5698 GB, free: 9.488 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.396, allocations: 8.031 kB / 0.5698 GB, free: 9.48 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001045/0.397, allocations: 0.5792 MB / 0.5704 GB, free: 8.891 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07446/0.4715, allocations: 6.958 MB / 0.5772 GB, free: 1.922 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005551/0.4771, allocations: 2.468 MB / 0.5796 GB, free: 15.4 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/0.4773, allocations: 176.8 kB / 0.5797 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008818/0.4782, allocations: 239.8 kB / 0.58 GB, free: 14.99 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.013/0.4912, allocations: 7.728 MB / 0.5875 GB, free: 6.613 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001437/0.4914, allocations: 43.62 kB / 0.5876 GB, free: 6.57 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006853/0.4921, allocations: 115.9 kB / 0.5877 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002717/0.4948, allocations: 1.582 MB / 0.5892 GB, free: 4.875 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01323/0.5081, allocations: 6.468 MB / 0.5955 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0401/0.5482, allocations: 31.35 MB / 0.6261 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00473/0.553, allocations: 2.415 MB / 0.6285 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001515/0.5545, allocations: 1.062 MB / 0.6295 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003891/0.5549, allocations: 319.2 kB / 0.6298 GB, free: 10.07 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/0.555, allocations: 50.5 kB / 0.6299 GB, free: 10.01 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.118e-06/0.555, allocations: 0 / 0.6299 GB, free: 10.01 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02311/0.5781, allocations: 8.553 MB / 0.6382 GB, free: 1.367 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.5783, allocations: 196.5 kB / 0.6384 GB, free: 1.129 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006607/0.5849, allocations: 3.766 MB / 0.6421 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002651/0.5853, allocations: 41.7 kB / 0.6422 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002466/0.5877, allocations: 2.826 MB / 0.6449 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007047/0.5885, allocations: 0.512 MB / 0.6454 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002217/0.5907, allocations: 1.092 MB / 0.6465 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002355/0.5909, allocations: 313.1 kB / 0.6468 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00308/0.594, allocations: 1.576 MB / 0.6483 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006893/0.601, allocations: 5.145 MB / 0.6533 GB, free: 16 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00983/0.6108, allocations: 7.313 MB / 0.6605 GB, free: 6.93 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001426/0.611, allocations: 39.94 kB / 0.6605 GB, free: 6.891 MB / 0.5137 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01404/0.6251, allocations: 6.651 MB / 0.667 GB, free: 236 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001423/0.6253, allocations: 63.98 kB / 0.6671 GB, free: 172 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001901/0.6255, allocations: 124 kB / 0.6672 GB, free: 48 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.6266, allocations: 404.7 kB / 0.6676 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003797/0.6304, allocations: 1.216 MB / 0.6688 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003894/0.6343, allocations: 3.353 MB / 0.672 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003721/0.6381, allocations: 283.6 kB / 0.6723 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008317/0.639, allocations: 336 kB / 0.6726 GB, free: 10.33 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.003551/0.6425, allocations: 1.783 MB / 0.6744 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007228/0.6433, allocations: 321.8 kB / 0.6747 GB, free: 8.219 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002948/0.6462, allocations: 1.47 MB / 0.6761 GB, free: 6.742 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.922e-05/0.6463, allocations: 15.94 kB / 0.6761 GB, free: 6.727 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.6463, allocations: 7.938 kB / 0.6761 GB, free: 6.719 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.6463, allocations: 3.984 kB / 0.6761 GB, free: 6.715 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.6565, allocations: 4.834 MB / 0.6809 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.6565, allocations: 7.984 kB / 0.6809 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007754/0.6573, allocations: 159.8 kB / 0.681 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000698/0.658, allocations: 224.6 kB / 0.6812 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.423e-05/0.6581, allocations: 15.98 kB / 0.6813 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003078/0.6612, allocations: 2.7 MB / 0.6839 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.6612, allocations: 8.031 kB / 0.6839 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004703/0.6659, allocations: 3.298 MB / 0.6871 GB, free: 11.23 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000837/0.6668, allocations: 382.8 kB / 0.6875 GB, free: 10.84 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000382/0.6672, allocations: 16 kB / 0.6875 GB, free: 10.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.6682, allocations: 47.94 kB / 0.6875 GB, free: 10.78 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/0.6684, allocations: 72.42 kB / 0.6876 GB, free: 10.71 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.784e-05/0.6685, allocations: 35.97 kB / 0.6876 GB, free: 10.67 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003728/0.6723, allocations: 2.343 MB / 0.6899 GB, free: 8.344 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.31e-07/0.6723, allocations: 0 / 0.6899 GB, free: 8.344 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004211/0.6765, allocations: 0.7656 MB / 0.6907 GB, free: 7.578 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.005194/0.6817, allocations: 3.92 MB / 0.6945 GB, free: 3.617 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006143/0.6879, allocations: 3.81 MB / 0.6982 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.6879, allocations: 0 / 0.6982 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.6895, allocations: 0.9543 MB / 0.6992 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/0.6917, allocations: 381.9 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.2888/0.9805, allocations: 37.21 MB / 0.7359 GB, free: 171.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00307/0.9836, allocations: 2.714 MB / 0.7385 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003545/0.9872, allocations: 1.707 MB / 0.7402 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001722/0.9889, allocations: 1.452 MB / 0.7416 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of SimCode: time 9.92e-07/0.989, allocations: 3.875 kB / 0.7416 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.449/2.438, allocations: 54.12 MB / 0.7945 GB, free: 118.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.45/26.89, allocations: 10 kB / 0.7945 GB, free: 118.9 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