Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001206/0.001206, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001225/0.001225, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2217/0.2217, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 72.94 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1227, allocations: 62.45 MB / 480.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01024/0.1329, allocations: 9.043 MB / 489.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007515/0.1405, allocations: 3.566 MB / 492.7 MB, free: 8.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001724/0.1422, allocations: 51.88 kB / 492.8 MB, free: 8.449 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004132/0.1465, allocations: 1.904 MB / 494.7 MB, free: 6.539 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005357/0.1519, allocations: 1.58 MB / 496.3 MB, free: 4.953 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001799/0.1537, allocations: 0.5692 MB / 496.8 MB, free: 4.383 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005516/0.1592, allocations: 3.65 MB / 0.4888 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003646/0.1629, allocations: 2.425 MB / 0.4911 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002615/0.1655, allocations: 1.156 MB / 0.4923 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002643/0.1682, allocations: 1.635 MB / 0.4939 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008944/0.1691, allocations: 240 kB / 0.4941 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002784/0.1719, allocations: 1.112 MB / 0.4952 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001934/0.1739, allocations: 1.5 MB / 0.4966 GB, free: 8.594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003172/0.177, allocations: 1.782 MB / 0.4984 GB, free: 6.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006899/0.184, allocations: 5.647 MB / 0.5039 GB, free: 1.137 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.184, allocations: 4 kB / 0.5039 GB, free: 1.133 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.184, allocations: 0 / 0.5039 GB, free: 1.133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001958/0.1842, allocations: 0 / 0.5039 GB, free: 1.133 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.2254/0.4096, allocations: 3.954 MB / 0.5078 GB, free: 39.17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.813e-05/0.4097, allocations: 10.31 kB / 0.5078 GB, free: 39.17 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001132/0.4108, allocations: 0.5777 MB / 0.5083 GB, free: 38.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09049/0.5013, allocations: 6.946 MB / 0.5151 GB, free: 38.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006724/0.5081, allocations: 2.428 MB / 0.5175 GB, free: 36.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/0.5083, allocations: 176.7 kB / 0.5177 GB, free: 36.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007596/0.509, allocations: 239.2 kB / 0.5179 GB, free: 36.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01027/0.5193, allocations: 7.73 MB / 0.5254 GB, free: 31.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.358e-05/0.5194, allocations: 35.19 kB / 0.5255 GB, free: 31.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003136/0.5198, allocations: 115.3 kB / 0.5256 GB, free: 31.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002099/0.5219, allocations: 1.586 MB / 0.5271 GB, free: 30.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008727/0.5306, allocations: 6.462 MB / 0.5334 GB, free: 24.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0276/0.5582, allocations: 31.43 MB / 0.5641 GB, free: 7.832 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004692/0.563, allocations: 2.41 MB / 0.5665 GB, free: 5.277 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001315/0.5643, allocations: 1.061 MB / 0.5675 GB, free: 4.203 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003334/0.5647, allocations: 319.1 kB / 0.5678 GB, free: 3.836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.5647, allocations: 63.3 kB / 0.5679 GB, free: 3.766 MB / 398.1 MB Notification: Performance of pre-optimization done (n=104): time 3.447e-06/0.5647, allocations: 0 / 0.5679 GB, free: 3.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.02215/0.5869, allocations: 8.351 MB / 0.576 GB, free: 11.3 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.587, allocations: 196.4 kB / 0.5762 GB, free: 11.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006154/0.5932, allocations: 3.764 MB / 0.5799 GB, free: 7.309 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001504/0.5934, allocations: 41.7 kB / 0.5799 GB, free: 7.262 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001905/0.5953, allocations: 2.712 MB / 0.5826 GB, free: 4.508 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005629/0.5959, allocations: 0.4904 MB / 0.5831 GB, free: 4.012 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001842/0.5977, allocations: 1.087 MB / 0.5841 GB, free: 2.914 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.5978, allocations: 305.1 kB / 0.5844 GB, free: 2.613 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002513/0.6004, allocations: 1.584 MB / 0.586 GB, free: 1.023 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004778/0.6052, allocations: 5.141 MB / 0.591 GB, free: 10.08 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007994/0.6132, allocations: 7.324 MB / 0.5981 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001081/0.6133, allocations: 40 kB / 0.5982 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01196/0.6253, allocations: 6.626 MB / 0.6046 GB, free: 10.31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001251/0.6254, allocations: 60 kB / 0.6047 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001912/0.6256, allocations: 124 kB / 0.6048 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009771/0.6266, allocations: 408.6 kB / 0.6052 GB, free: 9.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003518/0.6302, allocations: 1.224 MB / 0.6064 GB, free: 8.504 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003775/0.6339, allocations: 3.339 MB / 0.6097 GB, free: 5.027 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003752/0.6377, allocations: 279.6 kB / 0.6099 GB, free: 4.754 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007357/0.6385, allocations: 344.9 kB / 0.6103 GB, free: 4.418 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.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 (663): * Single equations (assignments): 659 * 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.003041/0.6415, allocations: 1.782 MB / 0.612 GB, free: 2.625 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006903/0.6422, allocations: 311.9 kB / 0.6123 GB, free: 2.316 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002996/0.6452, allocations: 1.466 MB / 0.6137 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-05/0.6453, allocations: 16 kB / 0.6137 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.6453, allocations: 4 kB / 0.6138 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.107e-05/0.6453, allocations: 7.984 kB / 0.6138 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01064/0.656, allocations: 4.855 MB / 0.6185 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/0.656, allocations: 0 / 0.6185 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008075/0.6568, allocations: 159.8 kB / 0.6187 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006875/0.6576, allocations: 232.6 kB / 0.6189 GB, free: 11.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.6577, allocations: 20 kB / 0.6189 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003142/0.6608, allocations: 2.707 MB / 0.6215 GB, free: 8.629 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.6609, allocations: 0 / 0.6215 GB, free: 8.629 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005009/0.6659, allocations: 3.28 MB / 0.6247 GB, free: 5.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001342/0.6672, allocations: 365 kB / 0.6251 GB, free: 4.941 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001001/0.6683, allocations: 16 kB / 0.6251 GB, free: 4.926 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001655/0.6699, allocations: 51.94 kB / 0.6252 GB, free: 4.875 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.6702, allocations: 56.48 kB / 0.6252 GB, free: 4.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.34e-05/0.6703, allocations: 35.98 kB / 0.6252 GB, free: 4.785 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004996/0.6753, allocations: 2.343 MB / 0.6275 GB, free: 2.457 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.6753, allocations: 0 / 0.6275 GB, free: 2.457 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005336/0.6806, allocations: 0.7681 MB / 0.6283 GB, free: 1.691 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.005652/0.6863, allocations: 3.896 MB / 0.6321 GB, free: 13.76 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006918/0.6933, allocations: 4.114 MB / 0.6361 GB, free: 9.672 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.6933, allocations: 0 / 0.6361 GB, free: 9.672 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001386/0.6947, allocations: 0.9563 MB / 0.637 GB, free: 8.707 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002647/0.6973, allocations: 381.6 kB / 0.6374 GB, free: 8.34 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05997/0.7573, allocations: 41.5 MB / 0.6779 GB, free: 7.895 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003842/0.7612, allocations: 2.712 MB / 0.6806 GB, free: 5.156 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004609/0.7658, allocations: 1.695 MB / 0.6822 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002424/0.7683, allocations: 1.46 MB / 0.6837 GB, free: 1.996 MB / 0.5137 GB Notification: Performance of SimCode: time 8.52e-07/0.7683, allocations: 0 / 0.6837 GB, free: 1.996 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3375/1.106, allocations: 57.75 MB / 0.7401 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/12.45, allocations: 9.438 kB / 0.7401 GB, free: 161.1 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches