Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance",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.0009185/0.0009185, allocations: 170.5 kB / 16.72 MB, free: 5.051 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.275/1.275, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007895/0.0007896, allocations: 94.3 kB / 271.2 MB, free: 8.242 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.2997/0.2997, allocations: 43.56 MB / 363.1 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003974/0.0003977, allocations: 19.98 kB / 432.1 MB, free: 5.504 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1137, allocations: 58.85 MB / 490.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2145/0.3282, allocations: 30.68 MB / 0.5094 GB, free: 28.48 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01272/0.341, allocations: 7.261 MB / 0.5165 GB, free: 23.58 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00532/0.3463, allocations: 138.4 kB / 0.5166 GB, free: 23.56 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004591/0.3509, allocations: 1.552 MB / 0.5181 GB, free: 23.02 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01145/0.3624, allocations: 4.849 MB / 0.5229 GB, free: 21 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00206/0.3645, allocations: 0.5204 MB / 0.5234 GB, free: 20.81 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.02052/0.385, allocations: 18.07 MB / 0.541 GB, free: 16.26 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005734/0.3908, allocations: 2.906 MB / 0.5438 GB, free: 15.07 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00252/0.3934, allocations: 0.9947 MB / 0.5448 GB, free: 14.75 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003197/0.3966, allocations: 1.595 MB / 0.5464 GB, free: 14.29 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001003/0.3976, allocations: 111.9 kB / 0.5465 GB, free: 14.29 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002658/0.4003, allocations: 1.052 MB / 0.5475 GB, free: 13.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002174/0.4025, allocations: 1.365 MB / 0.5488 GB, free: 13.17 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002442/0.405, allocations: 1.569 MB / 0.5504 GB, free: 12 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004121/0.4091, allocations: 4.542 MB / 0.5548 GB, free: 8.762 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.4091, allocations: 0 / 0.5548 GB, free: 8.762 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4091, allocations: 0 / 0.5548 GB, free: 8.762 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001133/0.4093, allocations: 0 / 0.5548 GB, free: 8.762 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.006449/0.4157, allocations: 3.299 MB / 0.558 GB, free: 5.398 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.4158, allocations: 8.031 kB / 0.558 GB, free: 5.391 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007203/0.4165, allocations: 0.5755 MB / 0.5586 GB, free: 4.805 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08072/0.4972, allocations: 7.167 MB / 0.5656 GB, free: 13.62 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005302/0.5026, allocations: 2.682 MB / 0.5682 GB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001234/0.5027, allocations: 176.7 kB / 0.5684 GB, free: 10.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004544/0.5032, allocations: 243.7 kB / 0.5686 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/0.5153, allocations: 7.816 MB / 0.5762 GB, free: 2.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.987e-05/0.5154, allocations: 39.66 kB / 0.5763 GB, free: 1.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000297/0.5157, allocations: 111.9 kB / 0.5764 GB, free: 1.871 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00245/0.5181, allocations: 1.672 MB / 0.578 GB, free: 204 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01055/0.5287, allocations: 6.602 MB / 0.5845 GB, free: 9.586 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03446/0.5632, allocations: 31.25 MB / 0.615 GB, free: 9.398 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004504/0.5678, allocations: 2.28 MB / 0.6172 GB, free: 6.973 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001466/0.5692, allocations: 1.123 MB / 0.6183 GB, free: 5.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003568/0.5696, allocations: 327.8 kB / 0.6186 GB, free: 5.465 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.798e-05/0.5697, allocations: 54.98 kB / 0.6187 GB, free: 5.402 MB / 442.7 MB Notification: Performance of pre-optimization done (n=117): time 4.789e-06/0.5697, allocations: 0 / 0.6187 GB, free: 5.402 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.03475/0.6045, allocations: 11.41 MB / 0.6298 GB, free: 9.863 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.416e-05/0.6046, allocations: 208.4 kB / 0.63 GB, free: 9.617 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005608/0.6102, allocations: 3.721 MB / 0.6337 GB, free: 5.902 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001286/0.6103, allocations: 45.7 kB / 0.6337 GB, free: 5.852 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00189/0.6122, allocations: 2.686 MB / 0.6363 GB, free: 3.125 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005569/0.6128, allocations: 0.5633 MB / 0.6369 GB, free: 2.555 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002941/0.6131, allocations: 111.9 kB / 0.637 GB, free: 2.445 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003618/0.6135, allocations: 0.5371 MB / 0.6375 GB, free: 1.902 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00261/0.6161, allocations: 1.67 MB / 0.6391 GB, free: 232 kB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004678/0.6208, allocations: 5.114 MB / 0.6441 GB, free: 9.379 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007459/0.6283, allocations: 7.405 MB / 0.6514 GB, free: 264 kB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-05/0.6284, allocations: 32 kB / 0.6514 GB, free: 232 kB / 474.7 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.009736/0.6381, allocations: 6.751 MB / 0.658 GB, free: 9.469 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.525e-05/0.6382, allocations: 56 kB / 0.658 GB, free: 9.414 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000142/0.6384, allocations: 124 kB / 0.6582 GB, free: 9.293 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008622/0.6392, allocations: 400.7 kB / 0.6585 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003344/0.6426, allocations: 1.24 MB / 0.6597 GB, free: 7.656 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003292/0.6459, allocations: 3.087 MB / 0.6628 GB, free: 4.438 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003075/0.649, allocations: 299.5 kB / 0.663 GB, free: 4.145 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004047/0.6494, allocations: 332 kB / 0.6634 GB, free: 3.82 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (665): * Single equations (assignments): 661 * 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.002551/0.652, allocations: 1.782 MB / 0.6651 GB, free: 2.027 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005042/0.6525, allocations: 312 kB / 0.6654 GB, free: 1.719 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003135/0.6556, allocations: 1.849 MB / 0.6672 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.47e-05/0.6557, allocations: 16 kB / 0.6672 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.6557, allocations: 7.938 kB / 0.6672 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.6557, allocations: 3.984 kB / 0.6672 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009092/0.6648, allocations: 5.621 MB / 0.6727 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.6648, allocations: 0 / 0.6727 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.6658, allocations: 219.7 kB / 0.6729 GB, free: 9.895 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006645/0.6665, allocations: 224.7 kB / 0.6731 GB, free: 9.672 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.996e-05/0.6666, allocations: 24 kB / 0.6732 GB, free: 9.648 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002612/0.6692, allocations: 2.522 MB / 0.6756 GB, free: 6.996 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.6692, allocations: 4.031 kB / 0.6756 GB, free: 6.992 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005023/0.6743, allocations: 3.875 MB / 0.6794 GB, free: 3.086 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/0.6753, allocations: 0.5438 MB / 0.68 GB, free: 2.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004572/0.6758, allocations: 23.98 kB / 0.68 GB, free: 2.496 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/0.677, allocations: 71.91 kB / 0.68 GB, free: 2.426 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002517/0.6773, allocations: 84.5 kB / 0.6801 GB, free: 2.344 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.149e-05/0.6774, allocations: 35.98 kB / 0.6802 GB, free: 2.309 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.18/0.8574, allocations: 2.329 MB / 0.6824 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.51e-07/0.8575, allocations: 0 / 0.6824 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004569/0.862, allocations: 0.8032 MB / 0.6832 GB, free: 148.1 MB / 0.4948 GB 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 (112): * Single equations (assignments): 108 * 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.005527/0.8676, allocations: 4.509 MB / 0.6876 GB, free: 147.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005997/0.8736, allocations: 4.066 MB / 0.6916 GB, free: 146.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.8736, allocations: 0 / 0.6916 GB, free: 146.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.875, allocations: 1.147 MB / 0.6927 GB, free: 146.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002403/0.8774, allocations: 353.9 kB / 0.6931 GB, free: 146.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03811/0.9156, allocations: 28.74 MB / 0.7211 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002406/0.918, allocations: 2.762 MB / 0.7238 GB, free: 126.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001846/0.9199, allocations: 1.553 MB / 0.7253 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of SimCode: time 7.91e-07/0.9199, allocations: 1.031 kB / 0.7253 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.046/6.966, allocations: 75.78 MB / 0.7993 GB, free: 68.34 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches