Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 105.7 kB / 17.32 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001741/0.001741, allocations: 193.3 kB / 18.25 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 241.9 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2004/0.2004, allocations: 44.18 MB / 336.2 MB, free: 2.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 65.31 kB / 408 MB, free: 27.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1498, allocations: 60.82 MB / 468.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.04134/0.1912, allocations: 40.74 MB / 0.4976 GB, free: 5.711 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2876/0.4789, allocations: 8.75 MB / 0.5062 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00904/0.488, allocations: 168.2 kB / 0.5063 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004352/0.4923, allocations: 1.843 MB / 0.5081 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004942/0.4974, allocations: 1.535 MB / 0.5096 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.4987, allocations: 0.5377 MB / 0.5101 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006546/0.5052, allocations: 3.93 MB / 0.514 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003587/0.5088, allocations: 2.604 MB / 0.5165 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002176/0.511, allocations: 1.214 MB / 0.5177 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002631/0.5137, allocations: 1.887 MB / 0.5196 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006227/0.5143, allocations: 251.8 kB / 0.5198 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002141/0.5165, allocations: 1.156 MB / 0.5209 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001508/0.518, allocations: 1.602 MB / 0.5225 GB, free: 8.965 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001514/0.5195, allocations: 1.886 MB / 0.5243 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00539/0.5249, allocations: 5.945 MB / 0.5301 GB, free: 3.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.5249, allocations: 0 / 0.5301 GB, free: 3.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.525, allocations: 0 / 0.5301 GB, free: 3.875 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001465/0.5251, allocations: 0 / 0.5301 GB, free: 3.875 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.008941/0.5341, allocations: 4.097 MB / 0.5341 GB, free: 1.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/0.5341, allocations: 8.812 kB / 0.5341 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009387/0.5351, allocations: 0.6031 MB / 0.5347 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08147/0.6166, allocations: 6.993 MB / 0.5416 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006195/0.6228, allocations: 2.585 MB / 0.5441 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001744/0.623, allocations: 181.1 kB / 0.5443 GB, free: 9.758 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001027/0.624, allocations: 245.1 kB / 0.5445 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01399/0.638, allocations: 8.092 MB / 0.5524 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.595e-05/0.6381, allocations: 34.56 kB / 0.5524 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003151/0.6384, allocations: 117.4 kB / 0.5525 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002733/0.6412, allocations: 1.711 MB / 0.5542 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01158/0.6528, allocations: 6.767 MB / 0.5608 GB, free: 8.594 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04047/0.6933, allocations: 32.18 MB / 0.5922 GB, free: 7.723 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004497/0.6978, allocations: 2.412 MB / 0.5946 GB, free: 5.164 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.6992, allocations: 1.063 MB / 0.5956 GB, free: 4.09 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003351/0.6995, allocations: 333.1 kB / 0.596 GB, free: 3.715 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.6996, allocations: 46.5 kB / 0.596 GB, free: 3.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 3.647e-06/0.6996, allocations: 0 / 0.596 GB, free: 3.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.02332/0.7229, allocations: 8.48 MB / 0.6043 GB, free: 11.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.7231, allocations: 188.5 kB / 0.6045 GB, free: 10.84 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008007/0.7311, allocations: 3.822 MB / 0.6082 GB, free: 7.031 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002343/0.7314, allocations: 41.7 kB / 0.6082 GB, free: 6.984 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002664/0.734, allocations: 2.817 MB / 0.611 GB, free: 4.172 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007389/0.7348, allocations: 499.1 kB / 0.6115 GB, free: 3.688 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002293/0.7371, allocations: 1.099 MB / 0.6125 GB, free: 2.578 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.7372, allocations: 301.1 kB / 0.6128 GB, free: 2.281 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002666/0.7399, allocations: 1.599 MB / 0.6144 GB, free: 0.6758 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005426/0.7453, allocations: 5.208 MB / 0.6195 GB, free: 9.641 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00811/0.7535, allocations: 7.416 MB / 0.6267 GB, free: 436 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/0.7536, allocations: 40 kB / 0.6267 GB, free: 396 kB / 478.1 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01161/0.7652, allocations: 6.69 MB / 0.6333 GB, free: 9.688 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.7654, allocations: 60.19 kB / 0.6333 GB, free: 9.629 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002261/0.7656, allocations: 136 kB / 0.6335 GB, free: 9.496 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009914/0.7666, allocations: 408.5 kB / 0.6339 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003511/0.7701, allocations: 1.24 MB / 0.6351 GB, free: 7.852 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003787/0.774, allocations: 3.344 MB / 0.6383 GB, free: 4.371 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003792/0.7778, allocations: 283.5 kB / 0.6386 GB, free: 4.094 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007322/0.7785, allocations: 348 kB / 0.6389 GB, free: 3.754 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.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 (672): * Single equations (assignments): 668 * 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.003687/0.7822, allocations: 1.838 MB / 0.6407 GB, free: 1.902 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007504/0.783, allocations: 315.8 kB / 0.641 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002994/0.786, allocations: 1.475 MB / 0.6425 GB, free: 108 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.813e-05/0.786, allocations: 16 kB / 0.6425 GB, free: 92 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.786, allocations: 4.375 kB / 0.6425 GB, free: 88 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.7861, allocations: 3.984 kB / 0.6425 GB, free: 84 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/0.7973, allocations: 4.995 MB / 0.6474 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/0.7973, allocations: 4 kB / 0.6474 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008545/0.7982, allocations: 163.7 kB / 0.6475 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007366/0.7989, allocations: 228.6 kB / 0.6478 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.7991, allocations: 20 kB / 0.6478 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003044/0.8021, allocations: 2.703 MB / 0.6504 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.8022, allocations: 0 / 0.6504 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004689/0.8068, allocations: 3.28 MB / 0.6536 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.8079, allocations: 364.9 kB / 0.654 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007076/0.8086, allocations: 16 kB / 0.654 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/0.81, allocations: 51.94 kB / 0.654 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.8102, allocations: 59.23 kB / 0.6541 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.922e-05/0.8103, allocations: 40.33 kB / 0.6541 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004416/0.8147, allocations: 2.375 MB / 0.6564 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8147, allocations: 0 / 0.6564 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004655/0.8194, allocations: 0.8007 MB / 0.6572 GB, free: 0.7891 MB / 0.4981 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.004993/0.8244, allocations: 3.915 MB / 0.661 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006832/0.8312, allocations: 4.143 MB / 0.6651 GB, free: 8.723 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.8313, allocations: 0 / 0.6651 GB, free: 8.723 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001461/0.8327, allocations: 0.9466 MB / 0.666 GB, free: 7.762 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002998/0.8357, allocations: 384.3 kB / 0.6664 GB, free: 7.391 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2883/1.124, allocations: 43.75 MB / 0.7091 GB, free: 202.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003364/1.127, allocations: 2.802 MB / 0.7118 GB, free: 201.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00484/1.132, allocations: 1.72 MB / 0.7135 GB, free: 201.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002425/1.135, allocations: 1.52 MB / 0.715 GB, free: 200.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.122e-06/1.135, allocations: 3.969 kB / 0.715 GB, free: 200.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08072/1.215, allocations: 58.66 MB / 0.7723 GB, free: 153.6 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000138/1.216, allocations: 224.4 kB / 0.7725 GB, free: 153.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.507/4.723, allocations: 6.453 kB / 0.7725 GB, free: 153.3 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/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_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches