Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008772/0.0008776, allocations: 175.5 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006939/0.000694, allocations: 86.41 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3049/0.3049, allocations: 43.56 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003619, allocations: 12 kB / 432 MB, free: 5.809 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1245, allocations: 58.85 MB / 490.8 MB, free: 10.87 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2235/0.3481, allocations: 37.59 MB / 0.516 GB, free: 23.75 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01591/0.3641, allocations: 8.476 MB / 0.5243 GB, free: 18.02 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006266/0.3704, allocations: 169.2 kB / 0.5245 GB, free: 18 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004991/0.3754, allocations: 1.933 MB / 0.5264 GB, free: 17.31 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01335/0.3888, allocations: 5.901 MB / 0.5321 GB, free: 14.86 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002499/0.3913, allocations: 0.5383 MB / 0.5326 GB, free: 14.66 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.02116/0.4125, allocations: 18.39 MB / 0.5506 GB, free: 9.992 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004078/0.4166, allocations: 3.284 MB / 0.5538 GB, free: 8.082 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001489/0.4181, allocations: 1.08 MB / 0.5549 GB, free: 7.543 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001818/0.4199, allocations: 1.753 MB / 0.5566 GB, free: 6.684 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003738/0.4203, allocations: 125.7 kB / 0.5567 GB, free: 6.684 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001564/0.4219, allocations: 1.062 MB / 0.5577 GB, free: 5.855 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009428/0.4229, allocations: 1.523 MB / 0.5592 GB, free: 4.328 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.424, allocations: 1.671 MB / 0.5608 GB, free: 2.641 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003994/0.428, allocations: 4.875 MB / 0.5656 GB, free: 13.75 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.428, allocations: 4 kB / 0.5656 GB, free: 13.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.428, allocations: 4 kB / 0.5656 GB, free: 13.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000139/0.4282, allocations: 0 / 0.5656 GB, free: 13.75 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.00634/0.4345, allocations: 3.45 MB / 0.569 GB, free: 10.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.4346, allocations: 8.031 kB / 0.569 GB, free: 10.22 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01407/0.4487, allocations: 2.5 MB / 0.5714 GB, free: 7.715 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005255/0.454, allocations: 2.42 MB / 0.5738 GB, free: 5.242 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/0.4542, allocations: 189.5 kB / 0.574 GB, free: 5.055 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007472/0.4549, allocations: 271.7 kB / 0.5742 GB, free: 4.789 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01323/0.4682, allocations: 8.753 MB / 0.5828 GB, free: 11.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.82e-05/0.4683, allocations: 39.66 kB / 0.5828 GB, free: 11.35 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000359/0.4687, allocations: 123.9 kB / 0.5829 GB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002976/0.4717, allocations: 1.833 MB / 0.5847 GB, free: 9.391 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01392/0.4856, allocations: 7.448 MB / 0.592 GB, free: 1.934 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03763/0.5233, allocations: 34.34 MB / 0.6255 GB, free: 14.59 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004587/0.5279, allocations: 2.581 MB / 0.6281 GB, free: 11.86 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.5293, allocations: 1.184 MB / 0.6292 GB, free: 10.66 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003217/0.5297, allocations: 327.8 kB / 0.6295 GB, free: 10.29 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.5297, allocations: 51.06 kB / 0.6296 GB, free: 10.23 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 3.516e-06/0.5297, allocations: 0 / 0.6296 GB, free: 10.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.02138/0.5511, allocations: 9.79 MB / 0.6391 GB, free: 328 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.456e-05/0.5512, allocations: 192.6 kB / 0.6393 GB, free: 92 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004614/0.5558, allocations: 3.94 MB / 0.6432 GB, free: 12.16 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.556, allocations: 49.69 kB / 0.6432 GB, free: 12.11 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001733/0.5577, allocations: 2.948 MB / 0.6461 GB, free: 9.121 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004317/0.5581, allocations: 0.5403 MB / 0.6466 GB, free: 8.574 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002086/0.5584, allocations: 120 kB / 0.6467 GB, free: 8.457 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002969/0.5587, allocations: 0.5501 MB / 0.6473 GB, free: 7.898 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002514/0.5612, allocations: 1.784 MB / 0.649 GB, free: 6.109 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004492/0.5657, allocations: 5.609 MB / 0.6545 GB, free: 14.57 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00779/0.5735, allocations: 8.015 MB / 0.6623 GB, free: 4.648 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.487e-05/0.5736, allocations: 40 kB / 0.6624 GB, free: 4.609 MB / 490.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01131/0.5849, allocations: 7.546 MB / 0.6697 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.382e-05/0.585, allocations: 64 kB / 0.6698 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001218/0.5851, allocations: 140 kB / 0.6699 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/0.5866, allocations: 0.6681 MB / 0.6706 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003401/0.59, allocations: 1.353 MB / 0.6719 GB, free: 10.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004144/0.5941, allocations: 3.803 MB / 0.6756 GB, free: 6.898 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003293/0.5975, allocations: 319.5 kB / 0.6759 GB, free: 6.586 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004612/0.5979, allocations: 372 kB / 0.6763 GB, free: 6.223 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (735): * Single equations (assignments): 731 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002569/0.6005, allocations: 1.939 MB / 0.6782 GB, free: 4.27 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004284/0.6009, allocations: 323.8 kB / 0.6785 GB, free: 3.949 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003548/0.6045, allocations: 2.073 MB / 0.6805 GB, free: 1.848 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.457e-05/0.6045, allocations: 16 kB / 0.6805 GB, free: 1.832 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.6045, allocations: 4 kB / 0.6805 GB, free: 1.828 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.6046, allocations: 7.969 kB / 0.6805 GB, free: 1.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1878/0.7923, allocations: 5.791 MB / 0.6862 GB, free: 147.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.027e-05/0.7924, allocations: 6.766 kB / 0.6862 GB, free: 147.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009847/0.7934, allocations: 184.2 kB / 0.6864 GB, free: 147.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001441/0.7949, allocations: 489.7 kB / 0.6868 GB, free: 147.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/0.795, allocations: 27.64 kB / 0.6869 GB, free: 147.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003391/0.7984, allocations: 3.218 MB / 0.69 GB, free: 145.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.7984, allocations: 2.75 kB / 0.69 GB, free: 145.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005051/0.8035, allocations: 3.979 MB / 0.6939 GB, free: 144.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.8048, allocations: 0.5489 MB / 0.6944 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003777/0.8052, allocations: 21.62 kB / 0.6944 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/0.8062, allocations: 70.16 kB / 0.6945 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001864/0.8064, allocations: 68.27 kB / 0.6946 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.478e-05/0.8065, allocations: 45.73 kB / 0.6946 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003566/0.8101, allocations: 2.448 MB / 0.697 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.6e-07/0.8101, allocations: 0 / 0.697 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003836/0.8139, allocations: 0.8808 MB / 0.6979 GB, free: 143.6 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (102): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003156/0.8143, allocations: 149.9 kB / 0.698 GB, free: 143.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00566/0.8199, allocations: 4.267 MB / 0.7022 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.82, allocations: 2.969 kB / 0.7022 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.8212, allocations: 1.07 MB / 0.7032 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/0.8241, allocations: 367 kB / 0.7036 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/0.8351, allocations: 9.705 MB / 0.7131 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00241/0.8376, allocations: 2.941 MB / 0.7159 GB, free: 135.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007975/0.8384, allocations: 274.9 kB / 0.7162 GB, free: 135.4 MB / 0.4948 GB Notification: Performance of SimCode: time 8.71e-07/0.8384, allocations: 4 kB / 0.7162 GB, free: 135.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.07802/0.9164, allocations: 66.83 MB / 0.7815 GB, free: 88.95 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches