Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_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.001752/0.001752, allocations: 100.5 kB / 16.27 MB, free: 6.344 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.002453/0.002453, allocations: 194.1 kB / 17.2 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.54/1.54, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2223/0.2223, allocations: 43.53 MB / 314 MB, free: 0.5352 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002712/0.002712, allocations: 67.84 kB / 382.8 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.114, allocations: 57.79 MB / 440.6 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009362/0.1235, allocations: 10.01 MB / 450.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007649/0.1311, allocations: 3.692 MB / 454.3 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001789/0.133, allocations: 51.88 kB / 454.4 MB, free: 9.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003972/0.137, allocations: 1.966 MB / 456.3 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004679/0.1417, allocations: 1.738 MB / 458.1 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001626/0.1434, allocations: 0.5653 MB / 458.6 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005267/0.1486, allocations: 3.739 MB / 462.4 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003704/0.1524, allocations: 2.554 MB / 464.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002429/0.1548, allocations: 1.285 MB / 466.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002895/0.1577, allocations: 1.826 MB / 468 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001062/0.1588, allocations: 272 kB / 468.3 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002707/0.1615, allocations: 1.147 MB / 469.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002185/0.1638, allocations: 1.683 MB / 471.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003436/0.1672, allocations: 2.004 MB / 473.1 MB, free: 6.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008386/0.1756, allocations: 6.34 MB / 479.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1756, allocations: 0 / 479.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.827e-06/0.1757, allocations: 3.984 kB / 479.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002286/0.1759, allocations: 4 kB / 479.5 MB, free: 15.78 MB / 366.1 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.0132/0.1891, allocations: 4.331 MB / 483.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.1892, allocations: 19.89 kB / 483.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001686/0.1909, allocations: 0.6378 MB / 484.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08858/0.2795, allocations: 7.041 MB / 491.5 MB, free: 3.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006541/0.286, allocations: 2.818 MB / 494.3 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002217/0.2863, allocations: 197.3 kB / 494.5 MB, free: 0.582 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001421/0.2877, allocations: 259.7 kB / 494.8 MB, free: 336 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01595/0.3037, allocations: 8.694 MB / 0.4917 GB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001064/0.3038, allocations: 39.59 kB / 0.4917 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003956/0.3042, allocations: 127.9 kB / 0.4918 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002878/0.3071, allocations: 1.84 MB / 0.4936 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01315/0.3203, allocations: 7.339 MB / 0.5008 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2683/0.5887, allocations: 33.97 MB / 0.534 GB, free: 63.81 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004903/0.5936, allocations: 2.528 MB / 0.5364 GB, free: 63.15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00138/0.595, allocations: 1.119 MB / 0.5375 GB, free: 63.12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002988/0.5953, allocations: 332.5 kB / 0.5379 GB, free: 62.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.5954, allocations: 44.14 kB / 0.5379 GB, free: 62.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 4.829e-06/0.5954, allocations: 0 / 0.5379 GB, free: 62.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.02194/0.6173, allocations: 8.952 MB / 0.5466 GB, free: 60.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/0.6174, allocations: 209.7 kB / 0.5468 GB, free: 60.19 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005716/0.6232, allocations: 3.972 MB / 0.5507 GB, free: 59.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002763/0.6235, allocations: 41.52 kB / 0.5508 GB, free: 59.44 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00161/0.6251, allocations: 2.967 MB / 0.5537 GB, free: 57.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005331/0.6256, allocations: 0.5443 MB / 0.5542 GB, free: 56.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001144/0.6268, allocations: 1.169 MB / 0.5553 GB, free: 56.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.789e-05/0.6269, allocations: 302.4 kB / 0.5556 GB, free: 55.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002056/0.6289, allocations: 1.696 MB / 0.5573 GB, free: 55.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003413/0.6323, allocations: 5.518 MB / 0.5627 GB, free: 49.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006763/0.6391, allocations: 7.853 MB / 0.5703 GB, free: 42.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001107/0.6393, allocations: 36.47 kB / 0.5704 GB, free: 42.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01066/0.6499, allocations: 7.094 MB / 0.5773 GB, free: 35.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.989e-05/0.6501, allocations: 63.94 kB / 0.5774 GB, free: 35.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001176/0.6502, allocations: 136 kB / 0.5775 GB, free: 35.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007974/0.651, allocations: 420.2 kB / 0.5779 GB, free: 35.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003336/0.6543, allocations: 1.326 MB / 0.5792 GB, free: 34.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002892/0.6572, allocations: 3.363 MB / 0.5825 GB, free: 30.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006063/0.6633, allocations: 310.4 kB / 0.5828 GB, free: 30.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007946/0.6641, allocations: 368 kB / 0.5831 GB, free: 29.88 MB / 414.1 MB 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 (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.003377/0.6675, allocations: 1.948 MB / 0.585 GB, free: 27.92 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009209/0.6685, allocations: 327.7 kB / 0.5853 GB, free: 27.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/0.6713, allocations: 1.699 MB / 0.587 GB, free: 25.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-05/0.6713, allocations: 16 kB / 0.587 GB, free: 25.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.6713, allocations: 4 kB / 0.587 GB, free: 25.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.6714, allocations: 3.984 kB / 0.587 GB, free: 25.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008594/0.68, allocations: 5.455 MB / 0.5923 GB, free: 20.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.68, allocations: 7.938 kB / 0.5923 GB, free: 20.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008104/0.6808, allocations: 183.8 kB / 0.5925 GB, free: 20.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005582/0.6814, allocations: 224.7 kB / 0.5927 GB, free: 19.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.797e-05/0.6815, allocations: 28.62 kB / 0.5928 GB, free: 19.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002315/0.6838, allocations: 2.702 MB / 0.5954 GB, free: 17.08 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.6838, allocations: 8.062 kB / 0.5954 GB, free: 17.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004197/0.688, allocations: 3.54 MB / 0.5989 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/0.6893, allocations: 0.524 MB / 0.5994 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004408/0.6897, allocations: 20 kB / 0.5994 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.6908, allocations: 60 kB / 0.5995 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001837/0.691, allocations: 72.41 kB / 0.5995 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.928e-05/0.6911, allocations: 39.98 kB / 0.5996 GB, free: 12.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00302/0.6941, allocations: 2.485 MB / 0.602 GB, free: 10.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6941, allocations: 0 / 0.602 GB, free: 10.3 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00521/0.6993, allocations: 0.849 MB / 0.6028 GB, free: 9.453 MB / 414.1 MB 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 (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.004457/0.7038, allocations: 4.166 MB / 0.6069 GB, free: 5.242 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00639/0.7102, allocations: 4.465 MB / 0.6112 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.7103, allocations: 0 / 0.6112 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001203/0.7115, allocations: 1.006 MB / 0.6122 GB, free: 15.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.714, allocations: 406.7 kB / 0.6126 GB, free: 15.41 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06226/0.7763, allocations: 45.29 MB / 0.6568 GB, free: 10.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00441/0.7808, allocations: 2.948 MB / 0.6597 GB, free: 7.531 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00469/0.7855, allocations: 1.806 MB / 0.6615 GB, free: 5.723 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002683/0.7882, allocations: 1.659 MB / 0.6631 GB, free: 4.062 MB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/0.7882, allocations: 0 / 0.6631 GB, free: 4.062 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1195/0.9077, allocations: 61.74 MB / 0.7234 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12.45, allocations: 19.88 kB / 0.7234 GB, free: 6.246 MB / 0.5294 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches