Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3.2.3_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_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.001398/0.001398, allocations: 103.4 kB / 16.52 MB, free: 6.266 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.001351/0.001351, allocations: 193.4 kB / 17.44 MB, free: 5.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.897/1.897, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2525/0.2525, allocations: 43.5 MB / 314.1 MB, free: 0.7539 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 66.52 kB / 382.7 MB, free: 56.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1538, allocations: 57.79 MB / 440.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.04331/0.1971, allocations: 41.49 MB / 482 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02782/0.225, allocations: 8.971 MB / 490.9 MB, free: 4.824 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01458/0.2397, allocations: 175.6 kB / 491.1 MB, free: 4.652 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005328/0.245, allocations: 1.928 MB / 493 MB, free: 2.719 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006199/0.2514, allocations: 1.627 MB / 494.7 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001967/0.2534, allocations: 0.5187 MB / 495.2 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009272/0.2627, allocations: 5.385 MB / 0.4888 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004224/0.2669, allocations: 2.546 MB / 0.4913 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002359/0.2693, allocations: 1.117 MB / 0.4924 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003342/0.2727, allocations: 1.959 MB / 0.4943 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000901/0.2736, allocations: 192 kB / 0.4945 GB, free: 5.301 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00274/0.2763, allocations: 1.131 MB / 0.4956 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001771/0.2781, allocations: 1.636 MB / 0.4972 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002648/0.2808, allocations: 1.863 MB / 0.499 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008525/0.2893, allocations: 4.982 MB / 0.5039 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.203e-05/0.2894, allocations: 0 / 0.5039 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.466e-06/0.2894, allocations: 0 / 0.5039 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003782/0.2898, allocations: 0 / 0.5039 GB, free: 11.66 MB / 398.1 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.01704/0.3069, allocations: 4.207 MB / 0.508 GB, free: 7.387 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.264e-05/0.307, allocations: 12.03 kB / 0.508 GB, free: 7.375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01742/0.3244, allocations: 2.437 MB / 0.5104 GB, free: 4.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008351/0.3328, allocations: 2.416 MB / 0.5127 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003573/0.3332, allocations: 193.3 kB / 0.5129 GB, free: 2.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001779/0.335, allocations: 263.9 kB / 0.5132 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02201/0.3571, allocations: 8.76 MB / 0.5217 GB, free: 8.602 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003505/0.3575, allocations: 43.64 kB / 0.5218 GB, free: 8.559 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002064/0.3596, allocations: 127.9 kB / 0.5219 GB, free: 8.434 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003876/0.3635, allocations: 1.836 MB / 0.5237 GB, free: 6.594 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3849/0.7485, allocations: 7.461 MB / 0.531 GB, free: 87.11 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05396/0.8025, allocations: 34.3 MB / 0.5645 GB, free: 63.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004926/0.8075, allocations: 2.592 MB / 0.567 GB, free: 61.78 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001514/0.809, allocations: 1.191 MB / 0.5682 GB, free: 61.14 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003528/0.8094, allocations: 328.4 kB / 0.5685 GB, free: 60.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.965e-05/0.8094, allocations: 46.84 kB / 0.5685 GB, free: 60.78 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 4.529e-06/0.8095, allocations: 0 / 0.5685 GB, free: 60.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.0247/0.8342, allocations: 9.805 MB / 0.5781 GB, free: 53.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.8343, allocations: 200.5 kB / 0.5783 GB, free: 53.37 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004596/0.8389, allocations: 3.968 MB / 0.5822 GB, free: 49.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002/0.8391, allocations: 45.7 kB / 0.5822 GB, free: 49.37 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/0.8406, allocations: 2.944 MB / 0.5851 GB, free: 46.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005306/0.8412, allocations: 0.5461 MB / 0.5856 GB, free: 45.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001327/0.8425, allocations: 1.202 MB / 0.5868 GB, free: 44.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.81e-05/0.8426, allocations: 305.1 kB / 0.5871 GB, free: 44.38 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002141/0.8447, allocations: 1.807 MB / 0.5888 GB, free: 42.56 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003941/0.8487, allocations: 5.628 MB / 0.5943 GB, free: 35.01 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007539/0.8562, allocations: 8.044 MB / 0.6022 GB, free: 25.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.431e-05/0.8564, allocations: 40 kB / 0.6022 GB, free: 25.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01165/0.868, allocations: 7.593 MB / 0.6097 GB, free: 17.42 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.8682, allocations: 64 kB / 0.6097 GB, free: 17.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002794/0.8685, allocations: 137.9 kB / 0.6098 GB, free: 17.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001711/0.8702, allocations: 0.6765 MB / 0.6105 GB, free: 16.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003811/0.8741, allocations: 1.349 MB / 0.6118 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004245/0.8783, allocations: 3.811 MB / 0.6155 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006293/0.8846, allocations: 315.4 kB / 0.6158 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009184/0.8856, allocations: 376 kB / 0.6162 GB, free: 10.58 MB / 414.1 MB 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 (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.00408/0.8897, allocations: 1.944 MB / 0.6181 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009385/0.8906, allocations: 327.7 kB / 0.6184 GB, free: 8.297 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004052/0.8947, allocations: 2.065 MB / 0.6204 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.229e-05/0.8947, allocations: 16 kB / 0.6204 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.801e-05/0.8948, allocations: 4 kB / 0.6205 GB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.895e-05/0.8948, allocations: 11.97 kB / 0.6205 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01258/0.9074, allocations: 5.81 MB / 0.6261 GB, free: 324 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-05/0.9075, allocations: 0 / 0.6261 GB, free: 324 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008958/0.9084, allocations: 184.1 kB / 0.6263 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001495/0.9099, allocations: 498.1 kB / 0.6268 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001568/0.9101, allocations: 24 kB / 0.6268 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004648/0.9147, allocations: 3.228 MB / 0.63 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.9148, allocations: 7.938 kB / 0.63 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007824/0.9226, allocations: 3.991 MB / 0.6339 GB, free: 8.227 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002225/0.9249, allocations: 0.5398 MB / 0.6344 GB, free: 7.664 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001261/0.9261, allocations: 27.84 kB / 0.6344 GB, free: 7.637 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00203/0.9282, allocations: 63.92 kB / 0.6345 GB, free: 7.574 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003009/0.9285, allocations: 68.41 kB / 0.6345 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001183/0.9286, allocations: 43.66 kB / 0.6346 GB, free: 7.469 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.006731/0.9354, allocations: 2.472 MB / 0.637 GB, free: 5.016 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9354, allocations: 0 / 0.637 GB, free: 5.016 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006769/0.9422, allocations: 0.8816 MB / 0.6379 GB, free: 4.137 MB / 430.1 MB 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 (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.0007437/0.9429, allocations: 144.9 kB / 0.638 GB, free: 3.988 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009812/0.9528, allocations: 4.303 MB / 0.6422 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/0.9528, allocations: 192 / 0.6422 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002139/0.955, allocations: 1.075 MB / 0.6433 GB, free: 14.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004114/0.9591, allocations: 361.3 kB / 0.6436 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02224/0.9814, allocations: 10.01 MB / 0.6534 GB, free: 4.211 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005164/0.9866, allocations: 2.952 MB / 0.6563 GB, free: 1.227 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001096/0.9877, allocations: 267.4 kB / 0.6565 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of SimCode: time 1.983e-06/0.9877, allocations: 0 / 0.6565 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of Templates: time 0.43/1.418, allocations: 67.48 MB / 0.7224 GB, free: 166.5 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2CalcHelperMain.o OMCppModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2CalcHelperMain.o] Error 1