Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008764/0.0008766, allocations: 95.17 kB / 18 MB, free: 5.609 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.0009926/0.0009928, allocations: 176.6 kB / 18.91 MB, free: 4.738 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.398/1.398, allocations: 223.3 MB / 242.9 MB, free: 184 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.2206/0.2206, allocations: 44.26 MB / 338.3 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.000342, allocations: 12.61 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.113, allocations: 61.92 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.03003/0.1431, allocations: 32.54 MB / 0.4936 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01655/0.1597, allocations: 7.611 MB / 0.501 GB, free: 5.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005955/0.1656, allocations: 143.6 kB / 0.5012 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001344/0.167, allocations: 334.4 kB / 0.5015 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00434/0.1714, allocations: 1.491 MB / 0.5029 GB, free: 3.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001428/0.1728, allocations: 0.5187 MB / 0.5035 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2674/0.4402, allocations: 5.075 MB / 0.5084 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005323/0.4456, allocations: 2.959 MB / 0.5113 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002453/0.4481, allocations: 0.8663 MB / 0.5121 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003779/0.4519, allocations: 1.53 MB / 0.5136 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008369/0.4528, allocations: 109.8 kB / 0.5137 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003456/0.4563, allocations: 1.076 MB / 0.5148 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002594/0.4589, allocations: 1.343 MB / 0.5161 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002583/0.4615, allocations: 1.547 MB / 0.5176 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006264/0.4678, allocations: 4.199 MB / 0.5217 GB, free: 9.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.4678, allocations: 1.375 kB / 0.5217 GB, free: 9.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.594e-06/0.4678, allocations: 0 / 0.5217 GB, free: 9.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001804/0.468, allocations: 0 / 0.5217 GB, free: 9.281 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.007806/0.4758, allocations: 3.081 MB / 0.5247 GB, free: 7.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.4759, allocations: 9.969 kB / 0.5247 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01638/0.4923, allocations: 2.425 MB / 0.5271 GB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00564/0.4979, allocations: 2.198 MB / 0.5293 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.4981, allocations: 158.1 kB / 0.5294 GB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007984/0.4989, allocations: 229.3 kB / 0.5296 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01198/0.5109, allocations: 7.6 MB / 0.537 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001004/0.511, allocations: 40.38 kB / 0.5371 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003332/0.5114, allocations: 112.2 kB / 0.5372 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002669/0.5141, allocations: 1.601 MB / 0.5388 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01234/0.5264, allocations: 6.481 MB / 0.5451 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03788/0.5643, allocations: 30.69 MB / 0.5751 GB, free: 13.22 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00467/0.5691, allocations: 2.246 MB / 0.5773 GB, free: 10.84 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001631/0.5707, allocations: 1.135 MB / 0.5784 GB, free: 9.695 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003786/0.5711, allocations: 314.5 kB / 0.5787 GB, free: 9.336 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/0.5712, allocations: 54.03 kB / 0.5787 GB, free: 9.277 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 4.268e-06/0.5712, allocations: 0 / 0.5787 GB, free: 9.277 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.03872/0.6099, allocations: 11.9 MB / 0.5903 GB, free: 13.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.6101, allocations: 200.5 kB / 0.5905 GB, free: 13.03 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007612/0.6177, allocations: 3.663 MB / 0.5941 GB, free: 9.367 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003232/0.6181, allocations: 41.7 kB / 0.5941 GB, free: 9.32 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002337/0.6204, allocations: 2.585 MB / 0.5967 GB, free: 6.742 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008947/0.6214, allocations: 0.5393 MB / 0.5972 GB, free: 6.207 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001135/0.6225, allocations: 465.7 kB / 0.5976 GB, free: 5.746 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.946e-05/0.6226, allocations: 301.1 kB / 0.5979 GB, free: 5.449 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00326/0.6259, allocations: 1.744 MB / 0.5996 GB, free: 3.699 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00598/0.6319, allocations: 5.103 MB / 0.6046 GB, free: 12.96 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009222/0.6411, allocations: 7.399 MB / 0.6118 GB, free: 4.379 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001211/0.6413, allocations: 36 kB / 0.6119 GB, free: 4.344 MB / 462.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01444/0.6558, allocations: 7.079 MB / 0.6188 GB, free: 13.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001395/0.6559, allocations: 60.27 kB / 0.6188 GB, free: 13.85 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002065/0.6561, allocations: 120 kB / 0.619 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00172/0.6579, allocations: 0.6372 MB / 0.6196 GB, free: 13.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004145/0.662, allocations: 1.228 MB / 0.6208 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004709/0.6668, allocations: 3.77 MB / 0.6245 GB, free: 7.961 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004367/0.6712, allocations: 295.5 kB / 0.6247 GB, free: 7.672 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001046/0.6722, allocations: 336 kB / 0.6251 GB, free: 7.344 MB / 478.1 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 {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004423/0.6767, allocations: 1.728 MB / 0.6267 GB, free: 5.605 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008886/0.6776, allocations: 308 kB / 0.627 GB, free: 5.301 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004821/0.6824, allocations: 2.084 MB / 0.6291 GB, free: 3.199 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-05/0.6825, allocations: 22.72 kB / 0.6291 GB, free: 3.18 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.6825, allocations: 4 kB / 0.6291 GB, free: 3.176 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/0.6825, allocations: 7.984 kB / 0.6291 GB, free: 3.168 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01347/0.696, allocations: 5.731 MB / 0.6347 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.696, allocations: 4 kB / 0.6347 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.6971, allocations: 195.7 kB / 0.6349 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001451/0.6985, allocations: 484.2 kB / 0.6354 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001389/0.6987, allocations: 20 kB / 0.6354 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004162/0.7029, allocations: 3.221 MB / 0.6385 GB, free: 9.328 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.7029, allocations: 0 / 0.6385 GB, free: 9.328 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006652/0.7095, allocations: 4.171 MB / 0.6426 GB, free: 5.129 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/0.7106, allocations: 369 kB / 0.6429 GB, free: 4.746 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007303/0.7114, allocations: 27.88 kB / 0.643 GB, free: 4.719 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001877/0.7133, allocations: 83.95 kB / 0.6431 GB, free: 4.637 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003991/0.7137, allocations: 64.56 kB / 0.6431 GB, free: 4.574 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001194/0.7138, allocations: 40 kB / 0.6432 GB, free: 4.535 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005572/0.7194, allocations: 2.288 MB / 0.6454 GB, free: 2.258 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7194, allocations: 0 / 0.6454 GB, free: 2.258 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00567/0.7251, allocations: 0.8047 MB / 0.6462 GB, free: 1.453 MB / 494.1 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.0006282/0.7258, allocations: 150.9 kB / 0.6463 GB, free: 1.297 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007597/0.7334, allocations: 4.133 MB / 0.6504 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.7334, allocations: 0 / 0.6504 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001714/0.7351, allocations: 1.134 MB / 0.6515 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003371/0.7385, allocations: 350.2 kB / 0.6518 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01695/0.7555, allocations: 9.153 MB / 0.6607 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004341/0.7599, allocations: 2.668 MB / 0.6633 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.7609, allocations: 251.4 kB / 0.6636 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of SimCode: time 1.102e-06/0.7609, allocations: 0 / 0.6636 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of Templates: time 0.339/1.1, allocations: 60.83 MB / 0.723 GB, free: 199.8 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/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_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches