Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_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_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 201.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 226.5 MB / 243.4 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008103/0.0008106, allocations: 101.7 kB / 295.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3246/0.3246, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002494/0.0002494, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.3192, allocations: 62.96 MB / 0.5159 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.02565/0.3449, allocations: 36.91 MB / 0.5519 GB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01902/0.364, allocations: 8.379 MB / 0.5601 GB, free: 4.969 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008381/0.3724, allocations: 168 kB / 0.5603 GB, free: 4.945 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006564/0.379, allocations: 1.925 MB / 0.5621 GB, free: 4.262 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0183/0.3973, allocations: 5.81 MB / 0.5678 GB, free: 1.855 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002875/0.4002, allocations: 0.5293 MB / 0.5683 GB, free: 1.578 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03838/0.4386, allocations: 31.83 MB / 0.5994 GB, free: 3.715 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005099/0.4438, allocations: 3.206 MB / 0.6026 GB, free: 452 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001994/0.4458, allocations: 1 MB / 0.6035 GB, free: 15.44 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002245/0.448, allocations: 1.612 MB / 0.6051 GB, free: 13.82 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004458/0.4485, allocations: 116 kB / 0.6052 GB, free: 13.71 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002081/0.4506, allocations: 1.037 MB / 0.6062 GB, free: 12.67 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00157/0.4522, allocations: 1.414 MB / 0.6076 GB, free: 11.25 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001934/0.4541, allocations: 1.559 MB / 0.6091 GB, free: 9.676 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005735/0.4599, allocations: 4.517 MB / 0.6135 GB, free: 5.148 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.4599, allocations: 0 / 0.6135 GB, free: 5.148 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.46, allocations: 0 / 0.6135 GB, free: 5.148 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002098/0.4602, allocations: 0 / 0.6135 GB, free: 5.148 MB / 426.7 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.007278/0.4675, allocations: 3.277 MB / 0.6167 GB, free: 1.805 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.4675, allocations: 8.031 kB / 0.6167 GB, free: 1.797 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0142/0.4817, allocations: 2.461 MB / 0.6192 GB, free: 15.33 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005459/0.4873, allocations: 2.268 MB / 0.6214 GB, free: 13.01 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.4875, allocations: 181 kB / 0.6215 GB, free: 12.83 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008184/0.4883, allocations: 243.8 kB / 0.6218 GB, free: 12.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01339/0.5017, allocations: 8.149 MB / 0.6297 GB, free: 3.797 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.532e-05/0.5018, allocations: 35.69 kB / 0.6298 GB, free: 3.762 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003556/0.5022, allocations: 123.9 kB / 0.6299 GB, free: 3.641 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002711/0.5049, allocations: 1.703 MB / 0.6315 GB, free: 1.938 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01312/0.518, allocations: 6.876 MB / 0.6383 GB, free: 11.04 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03807/0.5562, allocations: 32.53 MB / 0.67 GB, free: 9.504 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00468/0.5609, allocations: 2.474 MB / 0.6724 GB, free: 6.887 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001483/0.5624, allocations: 1.124 MB / 0.6735 GB, free: 5.754 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003427/0.5627, allocations: 327.1 kB / 0.6739 GB, free: 5.379 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/0.5628, allocations: 46.5 kB / 0.6739 GB, free: 5.324 MB / 490.7 MB Notification: Performance of pre-optimization done (n=104): time 3.096e-06/0.5628, allocations: 4 kB / 0.6739 GB, free: 5.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=118): time 0.2786/0.8414, allocations: 9.22 MB / 0.6829 GB, free: 132.6 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.033e-05/0.8416, allocations: 194.2 kB / 0.6831 GB, free: 132.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005005/0.8466, allocations: 3.791 MB / 0.6868 GB, free: 131 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002303/0.8468, allocations: 40.52 kB / 0.6868 GB, free: 131 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001553/0.8484, allocations: 2.787 MB / 0.6896 GB, free: 128.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005438/0.8489, allocations: 0.4896 MB / 0.69 GB, free: 128.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001926/0.8491, allocations: 110.7 kB / 0.6901 GB, free: 128.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000244/0.8494, allocations: 0.5465 MB / 0.6907 GB, free: 128 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002289/0.8517, allocations: 1.684 MB / 0.6923 GB, free: 127.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003544/0.8552, allocations: 5.307 MB / 0.6975 GB, free: 122 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006665/0.8619, allocations: 7.576 MB / 0.7049 GB, free: 115.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001146/0.8621, allocations: 36.75 kB / 0.7049 GB, free: 115.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01354/0.8756, allocations: 7.136 MB / 0.7119 GB, free: 112.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.8758, allocations: 59.12 kB / 0.712 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002297/0.876, allocations: 133.2 kB / 0.7121 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001751/0.8778, allocations: 0.6492 MB / 0.7127 GB, free: 112.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00404/0.8818, allocations: 1.27 MB / 0.714 GB, free: 112.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005077/0.8869, allocations: 3.799 MB / 0.7177 GB, free: 110.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005008/0.892, allocations: 305.6 kB / 0.718 GB, free: 110 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001041/0.893, allocations: 348.6 kB / 0.7183 GB, free: 109.9 MB / 490.7 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 (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%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003797/0.8968, allocations: 1.834 MB / 0.7201 GB, free: 109 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009415/0.8978, allocations: 309.1 kB / 0.7204 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003711/0.9015, allocations: 1.848 MB / 0.7222 GB, free: 108.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.666e-05/0.9016, allocations: 16.61 kB / 0.7222 GB, free: 108.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.9016, allocations: 0 / 0.7222 GB, free: 108.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-05/0.9016, allocations: 8.5 kB / 0.7222 GB, free: 108.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009857/0.9115, allocations: 5.352 MB / 0.7274 GB, free: 106.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/0.9115, allocations: 0 / 0.7274 GB, free: 106.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007422/0.9123, allocations: 161.1 kB / 0.7276 GB, free: 106.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/0.9134, allocations: 492.9 kB / 0.7281 GB, free: 106.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.753e-05/0.9135, allocations: 23.09 kB / 0.7281 GB, free: 106.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002947/0.9165, allocations: 3.207 MB / 0.7312 GB, free: 104.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.9165, allocations: 4.062 kB / 0.7312 GB, free: 104.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004737/0.9213, allocations: 3.729 MB / 0.7349 GB, free: 101.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009398/0.9222, allocations: 368 kB / 0.7352 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002811/0.9225, allocations: 21.88 kB / 0.7352 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009238/0.9234, allocations: 58.7 kB / 0.7353 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.9236, allocations: 63.23 kB / 0.7353 GB, free: 100.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.691e-05/0.9237, allocations: 32 kB / 0.7354 GB, free: 100.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002894/0.9266, allocations: 2.351 MB / 0.7377 GB, free: 98.89 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9266, allocations: 0 / 0.7377 GB, free: 98.89 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005815/0.9324, allocations: 0.8284 MB / 0.7385 GB, free: 98.06 MB / 490.7 MB 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 (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.0003266/0.9328, allocations: 149.5 kB / 0.7386 GB, free: 97.92 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005391/0.9382, allocations: 4.011 MB / 0.7425 GB, free: 94.27 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.9382, allocations: 0 / 0.7425 GB, free: 94.27 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.9393, allocations: 1.002 MB / 0.7435 GB, free: 93.26 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002504/0.9418, allocations: 354 kB / 0.7439 GB, free: 92.92 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/0.9533, allocations: 9.08 MB / 0.7527 GB, free: 83.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002248/0.9556, allocations: 2.801 MB / 0.7555 GB, free: 80.98 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007982/0.9564, allocations: 247.4 kB / 0.7557 GB, free: 80.74 MB / 490.7 MB Notification: Performance of SimCode: time 1.493e-06/0.9564, allocations: 0 / 0.7557 GB, free: 80.74 MB / 490.7 MB Notification: Performance of Templates: time 0.07063/1.027, allocations: 62.8 MB / 0.817 GB, free: 17.93 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches