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.001277/0.001277, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.001267/0.001267, allocations: 194 kB / 18.12 MB, free: 5.363 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.365/1.365, allocations: 222.9 MB / 241.8 MB, free: 15.59 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.2256/0.2256, allocations: 44.17 MB / 336.1 MB, free: 3.043 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 65.36 kB / 407.8 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1136, allocations: 60.82 MB / 468.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03705/0.1507, allocations: 40.74 MB / 0.4974 GB, free: 5.867 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2468/0.3976, allocations: 8.842 MB / 0.5061 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009115/0.4067, allocations: 171.4 kB / 0.5062 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004341/0.4111, allocations: 1.908 MB / 0.5081 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004903/0.4161, allocations: 1.534 MB / 0.5096 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001357/0.4175, allocations: 0.5208 MB / 0.5101 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007993/0.4255, allocations: 5.349 MB / 0.5153 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003556/0.4291, allocations: 2.451 MB / 0.5177 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002077/0.4311, allocations: 1.06 MB / 0.5187 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002873/0.434, allocations: 1.814 MB / 0.5205 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005265/0.4346, allocations: 175.2 kB / 0.5207 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002282/0.4369, allocations: 1.137 MB / 0.5218 GB, free: 9.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001432/0.4383, allocations: 1.524 MB / 0.5233 GB, free: 8.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001682/0.44, allocations: 1.799 MB / 0.525 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007084/0.4471, allocations: 5.849 MB / 0.5308 GB, free: 3.605 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.4472, allocations: 4 kB / 0.5308 GB, free: 3.602 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4472, allocations: 0 / 0.5308 GB, free: 3.602 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002499/0.4474, allocations: 2.125 kB / 0.5308 GB, free: 3.602 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.01097/0.4584, allocations: 4.094 MB / 0.5348 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.4585, allocations: 9.344 kB / 0.5348 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001021/0.4595, allocations: 0.6025 MB / 0.5354 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07497/0.5345, allocations: 6.997 MB / 0.5422 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00667/0.5412, allocations: 2.575 MB / 0.5447 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.5414, allocations: 187.4 kB / 0.5449 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005444/0.5419, allocations: 251.5 kB / 0.5451 GB, free: 8.809 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01247/0.5544, allocations: 8.09 MB / 0.553 GB, free: 256 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-05/0.5545, allocations: 32.78 kB / 0.5531 GB, free: 240 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003105/0.5548, allocations: 122.2 kB / 0.5532 GB, free: 152 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002756/0.5576, allocations: 1.707 MB / 0.5548 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01191/0.5695, allocations: 6.768 MB / 0.5614 GB, free: 7.855 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04028/0.6098, allocations: 32.17 MB / 0.5929 GB, free: 7.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005021/0.6149, allocations: 2.411 MB / 0.5952 GB, free: 4.461 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/0.6164, allocations: 1.066 MB / 0.5963 GB, free: 3.391 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003657/0.6168, allocations: 326 kB / 0.5966 GB, free: 3.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.857e-05/0.6168, allocations: 46.5 kB / 0.5966 GB, free: 2.965 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 5.711e-06/0.6168, allocations: 7.922 kB / 0.5966 GB, free: 2.957 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.02243/0.6393, allocations: 8.484 MB / 0.6049 GB, free: 10.36 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002344/0.6395, allocations: 188.5 kB / 0.6051 GB, free: 10.14 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007358/0.6469, allocations: 3.818 MB / 0.6088 GB, free: 6.328 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001256/0.647, allocations: 41.7 kB / 0.6089 GB, free: 6.281 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002335/0.6494, allocations: 2.819 MB / 0.6116 GB, free: 3.465 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005622/0.65, allocations: 497.2 kB / 0.6121 GB, free: 2.984 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001687/0.6517, allocations: 1.099 MB / 0.6132 GB, free: 1.875 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.6518, allocations: 301.1 kB / 0.6134 GB, free: 1.578 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002705/0.6545, allocations: 1.603 MB / 0.615 GB, free: 15.97 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005446/0.6599, allocations: 5.208 MB / 0.6201 GB, free: 8.934 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008542/0.6685, allocations: 7.408 MB / 0.6273 GB, free: 15.73 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001309/0.6687, allocations: 36 kB / 0.6274 GB, free: 15.69 MB / 494.1 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01252/0.6812, allocations: 6.694 MB / 0.6339 GB, free: 8.984 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001615/0.6814, allocations: 61.72 kB / 0.634 GB, free: 8.926 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002334/0.6816, allocations: 132.1 kB / 0.6341 GB, free: 8.797 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/0.6828, allocations: 408.6 kB / 0.6345 GB, free: 8.395 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00383/0.6866, allocations: 1.24 MB / 0.6357 GB, free: 7.152 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004016/0.6906, allocations: 3.092 MB / 0.6387 GB, free: 3.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004063/0.6947, allocations: 287.4 kB / 0.639 GB, free: 3.648 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008321/0.6956, allocations: 348 kB / 0.6393 GB, free: 3.309 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.003587/0.6992, allocations: 1.837 MB / 0.6411 GB, free: 1.461 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000752/0.6999, allocations: 315.9 kB / 0.6414 GB, free: 1.148 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002966/0.7029, allocations: 1.48 MB / 0.6428 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.101e-05/0.703, allocations: 12 kB / 0.6429 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.703, allocations: 4 kB / 0.6429 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.703, allocations: 3.984 kB / 0.6429 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.7134, allocations: 4.994 MB / 0.6477 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.7134, allocations: 0 / 0.6477 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007517/0.7142, allocations: 159.8 kB / 0.6479 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006624/0.7148, allocations: 225 kB / 0.6481 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.603e-05/0.7149, allocations: 23.98 kB / 0.6481 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002807/0.7178, allocations: 2.521 MB / 0.6506 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/0.7178, allocations: 11.97 kB / 0.6506 GB, free: 7.531 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004616/0.7224, allocations: 3.277 MB / 0.6538 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009077/0.7233, allocations: 360.9 kB / 0.6542 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006393/0.724, allocations: 16 kB / 0.6542 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.7253, allocations: 51.94 kB / 0.6542 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/0.7255, allocations: 64.36 kB / 0.6543 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-05/0.7256, allocations: 39.38 kB / 0.6543 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004113/0.7297, allocations: 2.379 MB / 0.6566 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7297, allocations: 64 / 0.6566 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004451/0.7341, allocations: 0.793 MB / 0.6574 GB, free: 0.5352 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.005326/0.7395, allocations: 3.912 MB / 0.6612 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007286/0.7468, allocations: 3.835 MB / 0.665 GB, free: 8.77 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.7468, allocations: 0 / 0.665 GB, free: 8.77 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.7483, allocations: 0.9504 MB / 0.6659 GB, free: 7.809 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002941/0.7513, allocations: 370.5 kB / 0.6663 GB, free: 7.449 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2811/1.032, allocations: 43.75 MB / 0.709 GB, free: 202.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003371/1.036, allocations: 2.815 MB / 0.7117 GB, free: 201.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004315/1.04, allocations: 1.707 MB / 0.7134 GB, free: 201.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001561/1.042, allocations: 1.52 MB / 0.7149 GB, free: 200.4 MB / 0.545 GB Notification: Performance of SimCode: time 9.32e-07/1.042, allocations: 3.906 kB / 0.7149 GB, free: 200.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07635/1.118, allocations: 57.61 MB / 0.7711 GB, free: 154.7 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/1.118, allocations: 225.2 kB / 0.7714 GB, free: 154.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.529/4.647, allocations: 0 / 0.7714 GB, free: 154.4 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