Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001438/0.001438, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 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.2112/0.2112, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 71.88 kB / 480.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2979, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.009969/0.3079, allocations: 8.923 MB / 0.5392 GB, free: 6.438 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007345/0.3153, allocations: 3.542 MB / 0.5427 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001717/0.3171, allocations: 51.03 kB / 0.5427 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003689/0.3208, allocations: 1.66 MB / 0.5444 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004253/0.3251, allocations: 1.574 MB / 0.5459 GB, free: 1.469 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001403/0.3266, allocations: 0.5564 MB / 0.5464 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005155/0.3317, allocations: 3.584 MB / 0.5499 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002953/0.3347, allocations: 2.182 MB / 0.5521 GB, free: 11.64 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001867/0.3366, allocations: 1.098 MB / 0.5531 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002249/0.3389, allocations: 1.534 MB / 0.5546 GB, free: 8.996 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006558/0.3395, allocations: 220 kB / 0.5549 GB, free: 8.781 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002273/0.3418, allocations: 1.1 MB / 0.5559 GB, free: 7.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001807/0.3437, allocations: 1.41 MB / 0.5573 GB, free: 6.266 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002677/0.3464, allocations: 1.677 MB / 0.5589 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00728/0.3537, allocations: 5.576 MB / 0.5644 GB, free: 14.98 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.3537, allocations: 4 kB / 0.5644 GB, free: 14.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3537, allocations: 3.938 kB / 0.5644 GB, free: 14.97 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001581/0.3539, allocations: 0 / 0.5644 GB, free: 14.97 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.009807/0.3637, allocations: 3.885 MB / 0.5682 GB, free: 11.01 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.3638, allocations: 11.97 kB / 0.5682 GB, free: 11 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001154/0.3649, allocations: 0.5462 MB / 0.5687 GB, free: 10.44 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09236/0.4573, allocations: 6.939 MB / 0.5755 GB, free: 3.492 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005931/0.4633, allocations: 2.409 MB / 0.5779 GB, free: 1.031 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001493/0.4634, allocations: 160.5 kB / 0.578 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007292/0.4642, allocations: 223.7 kB / 0.5782 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01081/0.475, allocations: 7.339 MB / 0.5854 GB, free: 8.688 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.094e-05/0.4751, allocations: 39.7 kB / 0.5854 GB, free: 8.648 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003095/0.4755, allocations: 99.89 kB / 0.5855 GB, free: 8.551 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002534/0.478, allocations: 1.55 MB / 0.587 GB, free: 7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01106/0.4891, allocations: 6.178 MB / 0.5931 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03325/0.5224, allocations: 29.92 MB / 0.6223 GB, free: 1.965 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004533/0.5269, allocations: 2.172 MB / 0.6244 GB, free: 15.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001375/0.5284, allocations: 1.077 MB / 0.6255 GB, free: 14.56 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003704/0.5287, allocations: 311.7 kB / 0.6258 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.5288, allocations: 50.94 kB / 0.6258 GB, free: 14.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.556e-06/0.5288, allocations: 0 / 0.6258 GB, free: 14.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03432/0.5631, allocations: 11.06 MB / 0.6366 GB, free: 2.973 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.5633, allocations: 192.6 kB / 0.6368 GB, free: 2.742 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005135/0.5684, allocations: 3.626 MB / 0.6403 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002279/0.5687, allocations: 41.7 kB / 0.6404 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001955/0.5706, allocations: 2.671 MB / 0.643 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007379/0.5714, allocations: 0.5506 MB / 0.6435 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001354/0.5728, allocations: 1.052 MB / 0.6445 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.5729, allocations: 301.1 kB / 0.6448 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00244/0.5753, allocations: 1.63 MB / 0.6464 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004606/0.58, allocations: 4.965 MB / 0.6513 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007805/0.5878, allocations: 7.168 MB / 0.6583 GB, free: 9.344 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.499e-05/0.5879, allocations: 32 kB / 0.6583 GB, free: 9.312 MB / 0.5137 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01089/0.5988, allocations: 6.576 MB / 0.6647 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.484e-05/0.5989, allocations: 56 kB / 0.6648 GB, free: 2.672 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001478/0.5991, allocations: 116 kB / 0.6649 GB, free: 2.559 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009544/0.6001, allocations: 404.9 kB / 0.6653 GB, free: 2.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003726/0.6038, allocations: 1.193 MB / 0.6664 GB, free: 0.9648 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003747/0.6076, allocations: 3.314 MB / 0.6697 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003527/0.6111, allocations: 279.6 kB / 0.6699 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007004/0.6118, allocations: 324 kB / 0.6703 GB, free: 12.92 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (640): * Single equations (assignments): 636 * 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.002695/0.6145, allocations: 1.713 MB / 0.6719 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005929/0.6151, allocations: 317.9 kB / 0.6722 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003027/0.6182, allocations: 1.714 MB / 0.6739 GB, free: 9.156 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.088e-05/0.6182, allocations: 16 kB / 0.6739 GB, free: 9.141 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.6183, allocations: 4.047 kB / 0.6739 GB, free: 9.137 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.656e-05/0.6183, allocations: 15.91 kB / 0.6739 GB, free: 9.121 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009333/0.6276, allocations: 5.235 MB / 0.6791 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/0.6277, allocations: 4 kB / 0.6791 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.6287, allocations: 191.7 kB / 0.6792 GB, free: 3.605 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006971/0.6294, allocations: 237 kB / 0.6795 GB, free: 3.371 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.6295, allocations: 20 kB / 0.6795 GB, free: 3.352 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002968/0.6325, allocations: 2.695 MB / 0.6821 GB, free: 0.5078 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/0.6325, allocations: 11.91 kB / 0.6821 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005442/0.638, allocations: 3.735 MB / 0.6858 GB, free: 12.74 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008604/0.6388, allocations: 362.9 kB / 0.6861 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003753/0.6392, allocations: 20 kB / 0.6861 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/0.6408, allocations: 71.97 kB / 0.6862 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002764/0.6411, allocations: 72.44 kB / 0.6863 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000166/0.6413, allocations: 36 kB / 0.6863 GB, free: 12.17 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005483/0.6468, allocations: 2.261 MB / 0.6885 GB, free: 9.918 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.8e-07/0.6468, allocations: 0 / 0.6885 GB, free: 9.918 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007267/0.6541, allocations: 0.7616 MB / 0.6893 GB, free: 9.156 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * 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.009038/0.6632, allocations: 4.363 MB / 0.6935 GB, free: 4.754 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009148/0.6724, allocations: 3.943 MB / 0.6974 GB, free: 0.8203 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/0.6725, allocations: 0 / 0.6974 GB, free: 0.8203 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002492/0.675, allocations: 1.073 MB / 0.6984 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003415/0.6784, allocations: 366.5 kB / 0.6988 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3121/0.9905, allocations: 36.54 MB / 0.7345 GB, free: 172.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003037/0.9936, allocations: 2.638 MB / 0.737 GB, free: 171.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003995/0.9976, allocations: 1.702 MB / 0.7387 GB, free: 171.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001804/0.9994, allocations: 1.399 MB / 0.7401 GB, free: 170 MB / 0.5762 GB Notification: Performance of SimCode: time 1.183e-06/0.9994, allocations: 2.781 kB / 0.7401 GB, free: 170 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08555/1.085, allocations: 53.33 MB / 0.7921 GB, free: 121.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.17/23.26, allocations: 7.922 kB / 0.7921 GB, free: 121.4 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches