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: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 98.47 kB / 18.01 MB, free: 5.734 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.001236/0.001236, allocations: 176.9 kB / 18.91 MB, free: 4.871 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.399/1.399, allocations: 223.3 MB / 242.9 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2219/0.2219, allocations: 44.24 MB / 338.3 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003398/0.0003398, allocations: 8 kB / 411 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1107, allocations: 61.93 MB / 472.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03895/0.1497, allocations: 39.62 MB / 0.5005 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2723/0.4221, allocations: 8.799 MB / 0.5091 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007742/0.4299, allocations: 169 kB / 0.5093 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.4314, allocations: 353.5 kB / 0.5096 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005184/0.4366, allocations: 1.54 MB / 0.5111 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001656/0.4383, allocations: 0.5214 MB / 0.5116 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008783/0.4471, allocations: 5.345 MB / 0.5168 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006037/0.4532, allocations: 3.322 MB / 0.5201 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002746/0.456, allocations: 0.9028 MB / 0.521 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003156/0.4592, allocations: 1.629 MB / 0.5226 GB, free: 9.559 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005713/0.4598, allocations: 113.4 kB / 0.5227 GB, free: 9.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002484/0.4623, allocations: 1.073 MB / 0.5237 GB, free: 9.297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001655/0.4639, allocations: 1.459 MB / 0.5251 GB, free: 8.777 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001641/0.4656, allocations: 1.65 MB / 0.5268 GB, free: 8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004484/0.4701, allocations: 4.514 MB / 0.5312 GB, free: 5.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.4701, allocations: 6.703 kB / 0.5312 GB, free: 5.461 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4701, allocations: 2.75 kB / 0.5312 GB, free: 5.461 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001379/0.4703, allocations: 0 / 0.5312 GB, free: 5.461 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.007147/0.4774, allocations: 3.267 MB / 0.5344 GB, free: 3.125 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.4775, allocations: 8.906 kB / 0.5344 GB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01655/0.494, allocations: 2.471 MB / 0.5368 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005553/0.4996, allocations: 2.274 MB / 0.539 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.4998, allocations: 186.8 kB / 0.5392 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006352/0.5004, allocations: 245.3 kB / 0.5394 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01354/0.514, allocations: 8.172 MB / 0.5474 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/0.5141, allocations: 42 kB / 0.5474 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003386/0.5145, allocations: 117.7 kB / 0.5475 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002864/0.5173, allocations: 1.707 MB / 0.5492 GB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01273/0.5301, allocations: 6.921 MB / 0.556 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03957/0.5697, allocations: 32.52 MB / 0.5877 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005103/0.5749, allocations: 2.477 MB / 0.5901 GB, free: 12.76 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001568/0.5765, allocations: 1.122 MB / 0.5912 GB, free: 11.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003767/0.5769, allocations: 323 kB / 0.5916 GB, free: 11.26 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.567e-05/0.5769, allocations: 52.7 kB / 0.5916 GB, free: 11.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 3.977e-06/0.5769, allocations: 0 / 0.5916 GB, free: 11.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.02551/0.6025, allocations: 9.233 MB / 0.6006 GB, free: 1.879 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.6026, allocations: 199 kB / 0.6008 GB, free: 1.645 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007687/0.6103, allocations: 3.806 MB / 0.6045 GB, free: 13.85 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002878/0.6106, allocations: 45.7 kB / 0.6046 GB, free: 13.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002702/0.6134, allocations: 2.783 MB / 0.6073 GB, free: 11.02 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009414/0.6143, allocations: 0.4942 MB / 0.6078 GB, free: 10.53 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001246/0.6156, allocations: 490.2 kB / 0.6082 GB, free: 10.05 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.6157, allocations: 301.1 kB / 0.6085 GB, free: 9.75 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003544/0.6193, allocations: 1.705 MB / 0.6102 GB, free: 8.039 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006949/0.6263, allocations: 5.335 MB / 0.6154 GB, free: 0.918 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01034/0.6366, allocations: 7.592 MB / 0.6228 GB, free: 7.527 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001556/0.6368, allocations: 40 kB / 0.6229 GB, free: 7.488 MB / 478.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01589/0.6527, allocations: 7.19 MB / 0.6299 GB, free: 296 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002099/0.653, allocations: 67.97 kB / 0.6299 GB, free: 228 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003651/0.6534, allocations: 128 kB / 0.6301 GB, free: 100 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002103/0.6555, allocations: 0.6582 MB / 0.6307 GB, free: 15.44 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00423/0.6597, allocations: 1.263 MB / 0.6319 GB, free: 14.17 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005251/0.665, allocations: 3.805 MB / 0.6357 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004499/0.6696, allocations: 303.5 kB / 0.6359 GB, free: 9.941 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009992/0.6706, allocations: 352 kB / 0.6363 GB, free: 9.598 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 (691): * Single equations (assignments): 687 * 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.004231/0.6748, allocations: 1.84 MB / 0.6381 GB, free: 7.746 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008261/0.6757, allocations: 304.1 kB / 0.6384 GB, free: 7.445 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004241/0.6799, allocations: 1.856 MB / 0.6402 GB, free: 5.57 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.629e-05/0.68, allocations: 16 kB / 0.6402 GB, free: 5.555 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/0.68, allocations: 4 kB / 0.6402 GB, free: 5.551 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.692e-05/0.68, allocations: 3.984 kB / 0.6402 GB, free: 5.547 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01245/0.6925, allocations: 5.352 MB / 0.6454 GB, free: 156 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/0.6925, allocations: 4 kB / 0.6454 GB, free: 152 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000847/0.6934, allocations: 167.8 kB / 0.6456 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.6948, allocations: 488.2 kB / 0.6461 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001237/0.6949, allocations: 16 kB / 0.6461 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004065/0.699, allocations: 3.22 MB / 0.6492 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.699, allocations: 0 / 0.6492 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005948/0.705, allocations: 3.738 MB / 0.6529 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/0.7061, allocations: 365 kB / 0.6532 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007647/0.7069, allocations: 19.94 kB / 0.6532 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/0.7084, allocations: 70.73 kB / 0.6533 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/0.7087, allocations: 64.55 kB / 0.6534 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.904e-05/0.7088, allocations: 28 kB / 0.6534 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005123/0.7139, allocations: 2.366 MB / 0.6557 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.7e-07/0.7139, allocations: 0 / 0.6557 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005911/0.7198, allocations: 0.8242 MB / 0.6565 GB, free: 4.645 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.000558/0.7204, allocations: 154.3 kB / 0.6567 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007597/0.728, allocations: 4.05 MB / 0.6606 GB, free: 460 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.7281, allocations: 0 / 0.6606 GB, free: 460 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.7297, allocations: 0.9937 MB / 0.6616 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003601/0.7334, allocations: 361.3 kB / 0.6619 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01851/0.7519, allocations: 9.435 MB / 0.6711 GB, free: 5.621 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004412/0.7564, allocations: 2.802 MB / 0.6739 GB, free: 2.797 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009006/0.7573, allocations: 251.4 kB / 0.6741 GB, free: 2.551 MB / 0.5137 GB Notification: Performance of SimCode: time 1.182e-06/0.7573, allocations: 3.938 kB / 0.6741 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of Templates: time 0.3364/1.094, allocations: 62.73 MB / 0.7354 GB, free: 182.3 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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