Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009898/0.0009899, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 229.5 MB / 247.7 MB, free: 6.309 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007544/0.0007544, allocations: 91.66 kB / 299.8 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3279/0.3279, allocations: 45.01 MB / 397 MB, free: 31.44 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002787/0.0002786, allocations: 8 kB / 470.8 MB, free: 7.086 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.322, allocations: 63.1 MB / 0.5214 GB, free: 38.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02213/0.3442, allocations: 30.44 MB / 0.5511 GB, free: 17.02 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01705/0.3613, allocations: 10.66 MB / 0.5615 GB, free: 8.199 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006844/0.3682, allocations: 137.6 kB / 0.5616 GB, free: 8.18 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001414/0.3696, allocations: 348.2 kB / 0.562 GB, free: 8.043 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004546/0.3742, allocations: 1.479 MB / 0.5634 GB, free: 7.418 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001715/0.3759, allocations: 0.5074 MB / 0.5639 GB, free: 7.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007316/0.3833, allocations: 5.147 MB / 0.5689 GB, free: 4.852 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00416/0.3875, allocations: 3.482 MB / 0.5723 GB, free: 1.852 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001607/0.3891, allocations: 0.9686 MB / 0.5733 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001712/0.3908, allocations: 1.526 MB / 0.5748 GB, free: 15.35 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003767/0.3912, allocations: 108 kB / 0.5749 GB, free: 15.24 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001959/0.3932, allocations: 1.026 MB / 0.5759 GB, free: 14.21 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001333/0.3945, allocations: 1.328 MB / 0.5772 GB, free: 12.88 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001914/0.3965, allocations: 1.55 MB / 0.5787 GB, free: 11.32 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006201/0.4027, allocations: 5.154 MB / 0.5837 GB, free: 6.145 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.4027, allocations: 0 / 0.5837 GB, free: 6.145 MB / 394.7 MB Notification: Performance of FrontEnd: time 6.542e-06/0.4027, allocations: 3.984 kB / 0.5837 GB, free: 6.141 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001475/0.4029, allocations: 4 kB / 0.5837 GB, free: 6.137 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.007399/0.4103, allocations: 3.092 MB / 0.5868 GB, free: 2.977 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.4104, allocations: 8.031 kB / 0.5868 GB, free: 2.969 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01416/0.4245, allocations: 2.422 MB / 0.5891 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004967/0.4295, allocations: 2.166 MB / 0.5912 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.4297, allocations: 172.5 kB / 0.5914 GB, free: 14.15 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005236/0.4302, allocations: 227.7 kB / 0.5916 GB, free: 13.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01233/0.4426, allocations: 7.583 MB / 0.599 GB, free: 5.723 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.695e-05/0.4427, allocations: 47.53 kB / 0.5991 GB, free: 5.676 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003333/0.4431, allocations: 107.9 kB / 0.5992 GB, free: 5.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002455/0.4455, allocations: 1.601 MB / 0.6007 GB, free: 3.969 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01137/0.4569, allocations: 6.445 MB / 0.607 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03356/0.4905, allocations: 30.68 MB / 0.637 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004218/0.4948, allocations: 2.242 MB / 0.6392 GB, free: 11.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001514/0.4963, allocations: 1.137 MB / 0.6403 GB, free: 10.35 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003689/0.4967, allocations: 319.6 kB / 0.6406 GB, free: 9.984 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.4968, allocations: 51.05 kB / 0.6406 GB, free: 9.926 MB / 458.7 MB Notification: Performance of pre-optimization done (n=108): time 3.416e-06/0.4968, allocations: 0 / 0.6406 GB, free: 9.926 MB / 458.7 MB Notification: Performance of matching and sorting (n=132): time 0.03265/0.5294, allocations: 11.88 MB / 0.6522 GB, free: 13.89 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.891e-05/0.5296, allocations: 196.5 kB / 0.6524 GB, free: 13.66 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004589/0.5342, allocations: 3.637 MB / 0.656 GB, free: 10.02 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001556/0.5343, allocations: 41.7 kB / 0.656 GB, free: 9.977 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001679/0.536, allocations: 2.585 MB / 0.6586 GB, free: 7.355 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005018/0.5365, allocations: 0.5363 MB / 0.6591 GB, free: 6.812 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.5367, allocations: 108 kB / 0.6592 GB, free: 6.707 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002984/0.537, allocations: 0.5254 MB / 0.6597 GB, free: 6.176 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002334/0.5394, allocations: 1.724 MB / 0.6614 GB, free: 4.445 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004475/0.5439, allocations: 5.087 MB / 0.6663 GB, free: 13.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008055/0.5519, allocations: 7.367 MB / 0.6735 GB, free: 4.629 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.373e-05/0.552, allocations: 39.94 kB / 0.6736 GB, free: 4.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.2511/0.8032, allocations: 7.033 MB / 0.6804 GB, free: 125.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001162/0.8033, allocations: 55.88 kB / 0.6805 GB, free: 125.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001809/0.8035, allocations: 122.5 kB / 0.6806 GB, free: 125.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0015/0.805, allocations: 0.652 MB / 0.6813 GB, free: 125.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003395/0.8084, allocations: 1.222 MB / 0.6824 GB, free: 125.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003559/0.812, allocations: 3.773 MB / 0.6861 GB, free: 124.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003443/0.8155, allocations: 296.2 kB / 0.6864 GB, free: 124.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004527/0.8159, allocations: 334.6 kB / 0.6867 GB, free: 124.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.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 (662): * Single equations (assignments): 658 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002277/0.8182, allocations: 1.729 MB / 0.6884 GB, free: 123.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004425/0.8187, allocations: 296.7 kB / 0.6887 GB, free: 123.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003204/0.8219, allocations: 2.093 MB / 0.6907 GB, free: 122.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-05/0.8219, allocations: 15.56 kB / 0.6908 GB, free: 122.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.8219, allocations: 2.469 kB / 0.6908 GB, free: 122.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.8219, allocations: 6.656 kB / 0.6908 GB, free: 122.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009745/0.8317, allocations: 5.729 MB / 0.6964 GB, free: 120.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/0.8317, allocations: 1 kB / 0.6964 GB, free: 120.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009568/0.8327, allocations: 198.8 kB / 0.6966 GB, free: 120.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001368/0.8341, allocations: 485.1 kB / 0.697 GB, free: 120.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.8342, allocations: 36.53 kB / 0.6971 GB, free: 120.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00347/0.8377, allocations: 3.207 MB / 0.7002 GB, free: 118.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.8377, allocations: 1.062 kB / 0.7002 GB, free: 118.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006355/0.8441, allocations: 4.158 MB / 0.7042 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/0.8452, allocations: 368.5 kB / 0.7046 GB, free: 116.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002953/0.8455, allocations: 20.5 kB / 0.7046 GB, free: 116.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/0.8465, allocations: 77.19 kB / 0.7047 GB, free: 116.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002075/0.8468, allocations: 75.28 kB / 0.7048 GB, free: 116.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.8469, allocations: 43.55 kB / 0.7048 GB, free: 116.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003461/0.8503, allocations: 2.259 MB / 0.707 GB, free: 115.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8504, allocations: 0 / 0.707 GB, free: 115.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003948/0.8543, allocations: 0.8068 MB / 0.7078 GB, free: 115.8 MB / 490.7 MB 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.0003315/0.8547, allocations: 151.5 kB / 0.7079 GB, free: 115.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005723/0.8604, allocations: 4.124 MB / 0.712 GB, free: 114.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.8604, allocations: 0 / 0.712 GB, free: 114.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.8616, allocations: 1.131 MB / 0.7131 GB, free: 113.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002342/0.864, allocations: 336.7 kB / 0.7134 GB, free: 113.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.8741, allocations: 8.826 MB / 0.722 GB, free: 109 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002035/0.8761, allocations: 2.678 MB / 0.7246 GB, free: 107.4 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003591/0.8797, allocations: 1.685 MB / 0.7263 GB, free: 105.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005302/0.8803, allocations: 207.3 kB / 0.7265 GB, free: 105.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.143e-06/0.8803, allocations: 4 kB / 0.7265 GB, free: 105.7 MB / 490.7 MB Notification: Performance of Templates: time 0.0427/0.923, allocations: 28.15 MB / 0.754 GB, free: 77.74 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches