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.001541/0.001541, allocations: 102.8 kB / 17.63 MB, free: 5.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.001649/0.001649, allocations: 192 kB / 18.56 MB, free: 4.434 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.398/1.398, allocations: 222.9 MB / 242.3 MB, free: 15.18 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.2192/0.2192, allocations: 44.18 MB / 336.6 MB, free: 2.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 68.56 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1056, allocations: 60.83 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009512/0.1151, allocations: 9.239 MB / 478.6 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007242/0.1224, allocations: 3.594 MB / 482.2 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008937/0.1233, allocations: 51.88 kB / 482.2 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003142/0.1265, allocations: 1.923 MB / 484.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003069/0.1296, allocations: 1.646 MB / 485.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.1307, allocations: 0.5614 MB / 486.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00398/0.1347, allocations: 3.712 MB / 490.1 MB, free: 9.434 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00239/0.1371, allocations: 2.464 MB / 492.6 MB, free: 6.914 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001239/0.1384, allocations: 1.203 MB / 493.8 MB, free: 5.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001697/0.1401, allocations: 1.674 MB / 495.4 MB, free: 4.027 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003945/0.1405, allocations: 251.9 kB / 495.7 MB, free: 3.781 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001688/0.1422, allocations: 1.131 MB / 496.8 MB, free: 2.648 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001151/0.1433, allocations: 1.57 MB / 498.4 MB, free: 1.074 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001494/0.1448, allocations: 1.86 MB / 0.4885 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004822/0.1497, allocations: 5.904 MB / 0.4943 GB, free: 9.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1497, allocations: 0 / 0.4943 GB, free: 9.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1497, allocations: 0 / 0.4943 GB, free: 9.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.339e-05/0.1498, allocations: 0 / 0.4943 GB, free: 9.281 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.007573/0.1573, allocations: 4.084 MB / 0.4983 GB, free: 5.129 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1574, allocations: 12.03 kB / 0.4983 GB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006617/0.1581, allocations: 0.5963 MB / 0.4989 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.302/0.4601, allocations: 6.997 MB / 0.5057 GB, free: 45.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006214/0.4664, allocations: 2.58 MB / 0.5082 GB, free: 44.69 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001387/0.4666, allocations: 186.1 kB / 0.5084 GB, free: 44.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007496/0.4673, allocations: 249.4 kB / 0.5086 GB, free: 44.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01434/0.4817, allocations: 8.091 MB / 0.5165 GB, free: 40.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001174/0.4818, allocations: 39.69 kB / 0.5166 GB, free: 40.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000354/0.4822, allocations: 117.2 kB / 0.5167 GB, free: 40.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002984/0.4852, allocations: 1.71 MB / 0.5183 GB, free: 40.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01201/0.4972, allocations: 6.768 MB / 0.525 GB, free: 37.51 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03218/0.5294, allocations: 32.18 MB / 0.5564 GB, free: 4.402 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004137/0.5336, allocations: 2.414 MB / 0.5587 GB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.5347, allocations: 1.058 MB / 0.5598 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002819/0.535, allocations: 323.1 kB / 0.5601 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.535, allocations: 46.45 kB / 0.5601 GB, free: 352 kB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 3.767e-06/0.535, allocations: 112 / 0.5601 GB, free: 352 kB / 382.1 MB Notification: Performance of matching and sorting (n=118): time 0.0213/0.5563, allocations: 8.475 MB / 0.5684 GB, free: 7.754 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.5565, allocations: 204.4 kB / 0.5686 GB, free: 7.512 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005198/0.5617, allocations: 3.818 MB / 0.5723 GB, free: 3.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002154/0.5619, allocations: 37.7 kB / 0.5724 GB, free: 3.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002144/0.5641, allocations: 2.805 MB / 0.5751 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005799/0.5647, allocations: 498 kB / 0.5756 GB, free: 328 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001432/0.5661, allocations: 1.102 MB / 0.5767 GB, free: 15.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.5662, allocations: 309.1 kB / 0.5769 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002282/0.5685, allocations: 1.597 MB / 0.5785 GB, free: 13.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004768/0.5733, allocations: 5.212 MB / 0.5836 GB, free: 6.262 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008869/0.5822, allocations: 7.41 MB / 0.5908 GB, free: 13.05 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001089/0.5824, allocations: 40 kB / 0.5909 GB, free: 13.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01417/0.5965, allocations: 6.697 MB / 0.5974 GB, free: 6.297 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001864/0.5968, allocations: 63.94 kB / 0.5975 GB, free: 6.234 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002883/0.5971, allocations: 128 kB / 0.5976 GB, free: 6.109 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001187/0.5983, allocations: 412.9 kB / 0.598 GB, free: 5.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004197/0.6025, allocations: 1.24 MB / 0.5992 GB, free: 4.461 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004891/0.6074, allocations: 3.344 MB / 0.6025 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004483/0.6119, allocations: 291.4 kB / 0.6027 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001058/0.613, allocations: 340 kB / 0.6031 GB, free: 372 kB / 430.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.004961/0.618, allocations: 1.842 MB / 0.6049 GB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008862/0.6189, allocations: 308 kB / 0.6052 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00349/0.6224, allocations: 1.475 MB / 0.6066 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.461e-05/0.6224, allocations: 16 kB / 0.6066 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.6225, allocations: 112 / 0.6066 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.808e-05/0.6225, allocations: 15.91 kB / 0.6066 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01091/0.6334, allocations: 4.985 MB / 0.6115 GB, free: 7.648 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.6335, allocations: 0 / 0.6115 GB, free: 7.648 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008275/0.6343, allocations: 159.8 kB / 0.6116 GB, free: 7.492 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006798/0.635, allocations: 224.7 kB / 0.6119 GB, free: 7.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.6351, allocations: 16 kB / 0.6119 GB, free: 7.254 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003095/0.6382, allocations: 2.712 MB / 0.6145 GB, free: 4.398 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.6382, allocations: 7.969 kB / 0.6145 GB, free: 4.391 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004999/0.6433, allocations: 3.275 MB / 0.6177 GB, free: 1.094 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/0.6444, allocations: 368.8 kB / 0.6181 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007454/0.6452, allocations: 20 kB / 0.6181 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001445/0.6466, allocations: 52 kB / 0.6182 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.6469, allocations: 64.41 kB / 0.6182 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.641e-05/0.6469, allocations: 32 kB / 0.6182 GB, free: 0.543 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004681/0.6516, allocations: 2.375 MB / 0.6206 GB, free: 14.18 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6517, allocations: 0 / 0.6206 GB, free: 14.18 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00491/0.6566, allocations: 0.8019 MB / 0.6213 GB, free: 13.39 MB / 462.1 MB 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.005759/0.6624, allocations: 3.909 MB / 0.6252 GB, free: 9.441 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007757/0.6702, allocations: 4.138 MB / 0.6292 GB, free: 5.336 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.6702, allocations: 3.938 kB / 0.6292 GB, free: 5.332 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001539/0.6717, allocations: 0.9464 MB / 0.6301 GB, free: 4.371 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003812/0.6756, allocations: 396.5 kB / 0.6305 GB, free: 3.992 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06741/0.743, allocations: 42.29 MB / 0.6718 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00463/0.7477, allocations: 2.805 MB / 0.6746 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00438/0.7521, allocations: 1.715 MB / 0.6762 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002111/0.7543, allocations: 1.526 MB / 0.6777 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of SimCode: time 9.12e-07/0.7543, allocations: 3.938 kB / 0.6777 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2976/1.052, allocations: 58.83 MB / 0.7352 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/12.32, allocations: 11.88 kB / 0.7352 GB, free: 179.1 MB / 0.5294 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_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.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_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches