Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009181/0.0009181, allocations: 170.5 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007303/0.0007303, allocations: 88.98 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2846/0.2846, allocations: 43.57 MB / 363.1 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003474/0.0003475, allocations: 16 kB / 432.1 MB, free: 5.715 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1014, allocations: 58.84 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.1937/0.2951, allocations: 37.6 MB / 0.5161 GB, free: 23.72 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01511/0.3102, allocations: 8.469 MB / 0.5244 GB, free: 17.99 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006338/0.3166, allocations: 166.1 kB / 0.5246 GB, free: 17.96 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004647/0.3213, allocations: 1.938 MB / 0.5265 GB, free: 17.28 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01236/0.3337, allocations: 5.9 MB / 0.5322 GB, free: 14.82 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002177/0.3359, allocations: 0.5455 MB / 0.5327 GB, free: 14.62 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0214/0.3573, allocations: 18.38 MB / 0.5507 GB, free: 9.961 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004944/0.3623, allocations: 3.28 MB / 0.5539 GB, free: 8.051 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001883/0.3642, allocations: 1.082 MB / 0.555 GB, free: 7.512 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002675/0.3669, allocations: 1.752 MB / 0.5567 GB, free: 6.652 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008521/0.3677, allocations: 125.6 kB / 0.5568 GB, free: 6.652 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002399/0.3702, allocations: 1.061 MB / 0.5578 GB, free: 5.805 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001588/0.3718, allocations: 1.515 MB / 0.5593 GB, free: 4.285 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001915/0.3737, allocations: 1.73 MB / 0.561 GB, free: 2.539 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004401/0.3781, allocations: 5.035 MB / 0.5659 GB, free: 13.49 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3781, allocations: 0 / 0.5659 GB, free: 13.49 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3781, allocations: 0 / 0.5659 GB, free: 13.49 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001812/0.3783, allocations: 3.938 kB / 0.5659 GB, free: 13.49 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.007854/0.3862, allocations: 3.571 MB / 0.5694 GB, free: 9.855 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.3862, allocations: 8.031 kB / 0.5694 GB, free: 9.848 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001121/0.3874, allocations: 0.6418 MB / 0.57 GB, free: 9.195 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08007/0.4674, allocations: 7.24 MB / 0.5771 GB, free: 1.941 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005272/0.4727, allocations: 2.803 MB / 0.5798 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.4729, allocations: 201.2 kB / 0.58 GB, free: 14.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004466/0.4733, allocations: 271.5 kB / 0.5803 GB, free: 14.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/0.4843, allocations: 8.678 MB / 0.5888 GB, free: 5.281 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.689e-05/0.4844, allocations: 39.66 kB / 0.5888 GB, free: 5.242 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002971/0.4847, allocations: 127.9 kB / 0.5889 GB, free: 5.117 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002896/0.4876, allocations: 1.836 MB / 0.5907 GB, free: 3.277 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01186/0.4994, allocations: 7.319 MB / 0.5979 GB, free: 11.95 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03586/0.5353, allocations: 34.02 MB / 0.6311 GB, free: 8.926 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004527/0.5399, allocations: 2.535 MB / 0.6336 GB, free: 6.242 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/0.5413, allocations: 1.114 MB / 0.6347 GB, free: 5.117 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003261/0.5416, allocations: 327.7 kB / 0.635 GB, free: 4.742 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.5416, allocations: 55.05 kB / 0.635 GB, free: 4.68 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 3.106e-06/0.5416, allocations: 0 / 0.635 GB, free: 4.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.01971/0.5614, allocations: 8.925 MB / 0.6437 GB, free: 11.66 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.834e-05/0.5615, allocations: 200.5 kB / 0.6439 GB, free: 11.42 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004622/0.5661, allocations: 3.954 MB / 0.6478 GB, free: 7.484 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.821e-05/0.5662, allocations: 49.7 kB / 0.6478 GB, free: 7.43 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001772/0.568, allocations: 2.964 MB / 0.6507 GB, free: 4.422 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004389/0.5684, allocations: 0.5442 MB / 0.6513 GB, free: 3.871 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001941/0.5686, allocations: 112 kB / 0.6514 GB, free: 3.762 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003542/0.569, allocations: 0.5459 MB / 0.6519 GB, free: 3.207 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002541/0.5716, allocations: 1.674 MB / 0.6535 GB, free: 1.527 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004949/0.5765, allocations: 5.494 MB / 0.6589 GB, free: 10.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007724/0.5843, allocations: 7.822 MB / 0.6665 GB, free: 384 kB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.97e-05/0.5844, allocations: 43.94 kB / 0.6666 GB, free: 340 kB / 490.7 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01137/0.5957, allocations: 7.049 MB / 0.6735 GB, free: 9.273 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.508e-05/0.5959, allocations: 60 kB / 0.6735 GB, free: 9.215 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001324/0.596, allocations: 136 kB / 0.6737 GB, free: 9.082 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008245/0.5968, allocations: 417.5 kB / 0.674 GB, free: 8.672 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003492/0.6003, allocations: 1.33 MB / 0.6753 GB, free: 7.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00335/0.6037, allocations: 3.113 MB / 0.6784 GB, free: 4.094 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003374/0.6071, allocations: 307.5 kB / 0.6787 GB, free: 3.793 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005961/0.6077, allocations: 371.9 kB / 0.679 GB, free: 3.434 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (716): * Single equations (assignments): 712 * 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.00284/0.6105, allocations: 1.935 MB / 0.6809 GB, free: 1.484 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000539/0.6111, allocations: 327.7 kB / 0.6812 GB, free: 1.16 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1728/0.7839, allocations: 1.695 MB / 0.6829 GB, free: 148 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.603e-05/0.784, allocations: 15.55 kB / 0.6829 GB, free: 148 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.784, allocations: 7.125 kB / 0.6829 GB, free: 148 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.972e-05/0.784, allocations: 8.688 kB / 0.6829 GB, free: 148 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009782/0.7938, allocations: 5.425 MB / 0.6882 GB, free: 147.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.286e-05/0.7938, allocations: 2.625 kB / 0.6882 GB, free: 147.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008959/0.7947, allocations: 183.9 kB / 0.6884 GB, free: 147.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006411/0.7954, allocations: 234.7 kB / 0.6886 GB, free: 147.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.77e-05/0.7955, allocations: 23.19 kB / 0.6886 GB, free: 147.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00232/0.7978, allocations: 2.514 MB / 0.6911 GB, free: 146.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.7978, allocations: 2.969 kB / 0.6911 GB, free: 146.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0042/0.802, allocations: 3.533 MB / 0.6946 GB, free: 144.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/0.8032, allocations: 0.5294 MB / 0.6951 GB, free: 144.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002815/0.8035, allocations: 23.41 kB / 0.6951 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.8045, allocations: 55.88 kB / 0.6951 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002405/0.8048, allocations: 82.52 kB / 0.6952 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.919e-05/0.8048, allocations: 39.52 kB / 0.6953 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003469/0.8083, allocations: 2.467 MB / 0.6977 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.81e-07/0.8083, allocations: 0 / 0.6977 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004458/0.8128, allocations: 0.8497 MB / 0.6985 GB, free: 143.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.004818/0.8176, allocations: 4.151 MB / 0.7026 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005267/0.8229, allocations: 4.065 MB / 0.7065 GB, free: 140.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.8229, allocations: 0 / 0.7065 GB, free: 140.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.8241, allocations: 1.008 MB / 0.7075 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00283/0.8269, allocations: 386.2 kB / 0.7079 GB, free: 139.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03959/0.8665, allocations: 30.32 MB / 0.7375 GB, free: 119.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002897/0.8694, allocations: 2.954 MB / 0.7404 GB, free: 117.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001832/0.8713, allocations: 1.691 MB / 0.742 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of SimCode: time 5.91e-07/0.8713, allocations: 0 / 0.742 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.356/7.228, allocations: 81.32 MB / 0.8214 GB, free: 44.79 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches