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.001917/0.001917, allocations: 197.7 kB / 16.79 MB, free: 5.043 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 226.5 MB / 244.1 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008056/0.0008057, allocations: 97.73 kB / 296.1 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3241/0.3241, allocations: 44.83 MB / 393 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002797/0.0002798, allocations: 15.98 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.288, allocations: 62.95 MB / 0.5165 GB, free: 37.2 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1323/0.4203, allocations: 106.7 MB / 0.6206 GB, free: 14.71 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.4206, allocations: 87.95 kB / 0.6207 GB, free: 14.62 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3896/0.8102, allocations: 75.02 MB / 0.694 GB, free: 100.5 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.8103, allocations: 0 / 0.694 GB, free: 100.5 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001093/0.8104, allocations: 70.02 kB / 0.694 GB, free: 100.5 MB / 490.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.007184/0.8176, allocations: 3.515 MB / 0.6975 GB, free: 98.83 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.8176, allocations: 8.938 kB / 0.6975 GB, free: 98.83 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0137/0.8313, allocations: 3.456 MB / 0.7009 GB, free: 98.59 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0066/0.838, allocations: 2.975 MB / 0.7038 GB, free: 98.04 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.8382, allocations: 262.8 kB / 0.704 GB, free: 98.03 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001067/0.8393, allocations: 349.6 kB / 0.7043 GB, free: 98.02 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01289/0.8522, allocations: 8.566 MB / 0.7127 GB, free: 95.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001389/0.8524, allocations: 54.69 kB / 0.7128 GB, free: 95.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004775/0.8529, allocations: 175.8 kB / 0.7129 GB, free: 95.39 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00103/0.8539, allocations: 0.8175 MB / 0.7137 GB, free: 95.38 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01132/0.8652, allocations: 6.828 MB / 0.7204 GB, free: 93.4 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03041/0.8957, allocations: 40.95 MB / 0.7604 GB, free: 60.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004002/0.8997, allocations: 2.416 MB / 0.7628 GB, free: 59.61 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/0.9008, allocations: 1.008 MB / 0.7637 GB, free: 59.18 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002701/0.9011, allocations: 325.3 kB / 0.764 GB, free: 58.88 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.9011, allocations: 42.06 kB / 0.7641 GB, free: 58.84 MB / 490.7 MB Notification: Performance of pre-optimization done (n=104): time 3.616e-06/0.9011, allocations: 0 / 0.7641 GB, free: 58.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=118): time 0.01796/0.9191, allocations: 8.071 MB / 0.772 GB, free: 55.11 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.9192, allocations: 193.5 kB / 0.7722 GB, free: 54.89 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004411/0.9236, allocations: 3.784 MB / 0.7758 GB, free: 53.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001789/0.9238, allocations: 41.23 kB / 0.7759 GB, free: 53.48 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001181/0.925, allocations: 2.817 MB / 0.7786 GB, free: 51.29 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003675/0.9254, allocations: 495.9 kB / 0.7791 GB, free: 50.96 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.9256, allocations: 112.3 kB / 0.7792 GB, free: 50.87 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002274/0.9258, allocations: 0.5344 MB / 0.7797 GB, free: 50.47 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001847/0.9277, allocations: 1.547 MB / 0.7813 GB, free: 49.98 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00284/0.9305, allocations: 5.17 MB / 0.7863 GB, free: 44.45 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005563/0.9361, allocations: 7.337 MB / 0.7935 GB, free: 37.29 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.124e-05/0.9362, allocations: 36 kB / 0.7935 GB, free: 37.26 MB / 490.7 MB Notification: Performance of matching and sorting (n=709) (initialization): time 0.008652/0.9449, allocations: 6.55 MB / 0.7999 GB, free: 31.44 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.096e-05/0.945, allocations: 64.34 kB / 0.8 GB, free: 31.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.523e-05/0.9451, allocations: 132 kB / 0.8001 GB, free: 31.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005898/0.9457, allocations: 336.3 kB / 0.8004 GB, free: 30.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/0.9487, allocations: 1.252 MB / 0.8016 GB, free: 29.86 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002336/0.951, allocations: 2.728 MB / 0.8043 GB, free: 27.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003133/0.9542, allocations: 289.4 kB / 0.8046 GB, free: 26.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003838/0.9546, allocations: 354.2 kB / 0.8049 GB, free: 26.64 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (674): * Single equations (assignments): 670 * 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.00227/0.9569, allocations: 1.83 MB / 0.8067 GB, free: 25.02 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004084/0.9573, allocations: 308 kB / 0.807 GB, free: 24.71 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00201/0.9593, allocations: 1.355 MB / 0.8083 GB, free: 23.57 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/0.9593, allocations: 15.94 kB / 0.8083 GB, free: 23.56 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.9593, allocations: 4 kB / 0.8083 GB, free: 23.55 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.9594, allocations: 7.281 kB / 0.8083 GB, free: 23.55 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006832/0.9662, allocations: 4.81 MB / 0.813 GB, free: 19.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.378e-06/0.9662, allocations: 4 kB / 0.813 GB, free: 19.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007472/0.967, allocations: 162.1 kB / 0.8132 GB, free: 19.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004379/0.9674, allocations: 158.8 kB / 0.8133 GB, free: 19.36 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.005e-05/0.9675, allocations: 23.7 kB / 0.8134 GB, free: 19.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001868/0.9694, allocations: 2.146 MB / 0.8155 GB, free: 17.25 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.9694, allocations: 3.938 kB / 0.8155 GB, free: 17.24 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003572/0.973, allocations: 3.117 MB / 0.8185 GB, free: 14.43 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007199/0.9737, allocations: 368.8 kB / 0.8189 GB, free: 14.04 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000293/0.974, allocations: 20 kB / 0.8189 GB, free: 14.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008326/0.9749, allocations: 51.88 kB / 0.8189 GB, free: 13.97 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.975, allocations: 64.42 kB / 0.819 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.917e-05/0.9751, allocations: 28 kB / 0.819 GB, free: 13.88 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003099/0.9782, allocations: 2.352 MB / 0.8213 GB, free: 11.55 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9782, allocations: 0 / 0.8213 GB, free: 11.55 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00363/0.9818, allocations: 0.7968 MB / 0.8221 GB, free: 10.75 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.000346/0.9822, allocations: 153.5 kB / 0.8222 GB, free: 10.59 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004972/0.9872, allocations: 3.758 MB / 0.8259 GB, free: 6.84 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.9872, allocations: 0 / 0.8259 GB, free: 6.84 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009786/0.9882, allocations: 0.908 MB / 0.8268 GB, free: 5.922 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/0.9907, allocations: 378 kB / 0.8272 GB, free: 5.562 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/1.004, allocations: 8.933 MB / 0.8359 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00329/1.007, allocations: 2.812 MB / 0.8386 GB, free: 9.777 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008604/1.008, allocations: 255.4 kB / 0.8389 GB, free: 9.531 MB / 0.4948 GB Notification: Performance of SimCode: time 7.22e-07/1.008, allocations: 0 / 0.8389 GB, free: 9.531 MB / 0.4948 GB Notification: Performance of Templates: time 0.3097/1.318, allocations: 62.52 MB / 0.8999 GB, free: 130.7 MB / 0.5261 GB 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/jenkins1/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