Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008498/0.0008495, allocations: 91.19 kB / 17.63 MB, free: 6.133 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008981/0.000898, allocations: 206.6 kB / 18.54 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 227.3 MB / 246.6 MB, free: 12.03 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2545/0.2545, allocations: 45.91 MB / 344.7 MB, free: 12.28 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002953, allocations: 11.94 kB / 418.7 MB, free: 20.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.1633, allocations: 63.46 MB / 482.1 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03875/0.2021, allocations: 36.9 MB / 0.5069 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3857/0.5878, allocations: 8.393 MB / 0.5151 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009157/0.597, allocations: 169.9 kB / 0.5152 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008093/0.6051, allocations: 1.908 MB / 0.5171 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02142/0.6266, allocations: 5.789 MB / 0.5227 GB, free: 8.938 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003277/0.6299, allocations: 0.496 MB / 0.5232 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04366/0.6736, allocations: 31.78 MB / 0.5543 GB, free: 9.309 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005398/0.679, allocations: 2.969 MB / 0.5571 GB, free: 7.082 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002536/0.6816, allocations: 1.007 MB / 0.5581 GB, free: 6.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002839/0.6845, allocations: 1.603 MB / 0.5597 GB, free: 4.844 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000546/0.685, allocations: 112 kB / 0.5598 GB, free: 4.734 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002204/0.6872, allocations: 0.8995 MB / 0.5607 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001679/0.6889, allocations: 1.421 MB / 0.5621 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009276/0.6899, allocations: 0.6839 MB / 0.5627 GB, free: 2.438 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005683/0.6956, allocations: 4.514 MB / 0.5671 GB, free: 14.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.015e-05/0.6956, allocations: 4 kB / 0.5672 GB, free: 14.5 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.6956, allocations: 0 / 0.5672 GB, free: 14.5 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001773/0.6958, allocations: 0 / 0.5672 GB, free: 14.5 MB / 414.1 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.00857/0.7044, allocations: 3.326 MB / 0.5704 GB, free: 11.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.7044, allocations: 8.031 kB / 0.5704 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01375/0.7182, allocations: 2.47 MB / 0.5728 GB, free: 8.984 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005571/0.7238, allocations: 2.221 MB / 0.575 GB, free: 7.227 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.724, allocations: 183.1 kB / 0.5752 GB, free: 7.125 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000582/0.7246, allocations: 234.9 kB / 0.5754 GB, free: 6.977 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01277/0.7373, allocations: 8.147 MB / 0.5833 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.812e-05/0.7375, allocations: 31.75 kB / 0.5834 GB, free: 14.49 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003191/0.7378, allocations: 123.6 kB / 0.5835 GB, free: 14.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002722/0.7405, allocations: 1.711 MB / 0.5852 GB, free: 12.7 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01324/0.7538, allocations: 6.884 MB / 0.5919 GB, free: 5.805 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04056/0.7943, allocations: 32.5 MB / 0.6236 GB, free: 4.48 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004748/0.7991, allocations: 2.48 MB / 0.626 GB, free: 1.855 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.8006, allocations: 1.125 MB / 0.6271 GB, free: 0.7188 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003696/0.801, allocations: 322 kB / 0.6275 GB, free: 360 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/0.8011, allocations: 50.48 kB / 0.6275 GB, free: 300 kB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 3.516e-06/0.8011, allocations: 0 / 0.6275 GB, free: 300 kB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02256/0.8237, allocations: 9.225 MB / 0.6365 GB, free: 6.973 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.8238, allocations: 192.5 kB / 0.6367 GB, free: 6.742 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005702/0.8295, allocations: 3.799 MB / 0.6404 GB, free: 2.953 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002334/0.8298, allocations: 41.7 kB / 0.6404 GB, free: 2.906 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002199/0.832, allocations: 2.784 MB / 0.6432 GB, free: 148 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005969/0.8326, allocations: 0.4935 MB / 0.6436 GB, free: 15.65 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002095/0.8328, allocations: 108 kB / 0.6437 GB, free: 15.55 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003677/0.8332, allocations: 0.5376 MB / 0.6443 GB, free: 15 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002568/0.8358, allocations: 1.682 MB / 0.6459 GB, free: 13.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005488/0.8413, allocations: 5.307 MB / 0.6511 GB, free: 6.184 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004797/0.8461, allocations: 2.928 MB / 0.654 GB, free: 3.258 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.613e-05/0.8461, allocations: 40 kB / 0.654 GB, free: 3.219 MB / 494.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01203/0.8582, allocations: 7.145 MB / 0.661 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.745e-05/0.8583, allocations: 63.98 kB / 0.661 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000111/0.8584, allocations: 135.9 kB / 0.6612 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/0.8599, allocations: 0.6682 MB / 0.6618 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003359/0.8632, allocations: 1.267 MB / 0.663 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005214/0.8685, allocations: 3.807 MB / 0.6668 GB, free: 6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003909/0.8724, allocations: 299.5 kB / 0.6671 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004314/0.8728, allocations: 351.9 kB / 0.6674 GB, free: 5.363 MB / 0.4981 GB 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.002886/0.8757, allocations: 1.84 MB / 0.6692 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004255/0.8762, allocations: 308 kB / 0.6695 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003209/0.8794, allocations: 1.842 MB / 0.6713 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.23e-05/0.8794, allocations: 15.95 kB / 0.6713 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.8794, allocations: 4 kB / 0.6713 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.8794, allocations: 3.984 kB / 0.6713 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008474/0.8879, allocations: 5.363 MB / 0.6765 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.8879, allocations: 0 / 0.6765 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006951/0.8886, allocations: 159.8 kB / 0.6767 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00119/0.8898, allocations: 488.3 kB / 0.6772 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.797e-05/0.8899, allocations: 20 kB / 0.6772 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003911/0.8938, allocations: 3.204 MB / 0.6803 GB, free: 7.938 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.8939, allocations: 0 / 0.6803 GB, free: 7.938 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005791/0.8997, allocations: 3.733 MB / 0.684 GB, free: 4.172 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/0.9007, allocations: 364.9 kB / 0.6843 GB, free: 3.793 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003419/0.9011, allocations: 25.62 kB / 0.6843 GB, free: 3.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008969/0.902, allocations: 63.86 kB / 0.6844 GB, free: 3.707 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.9022, allocations: 63.16 kB / 0.6844 GB, free: 3.648 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.923e-05/0.9023, allocations: 32 kB / 0.6845 GB, free: 3.617 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004246/0.9065, allocations: 2.351 MB / 0.6868 GB, free: 1.281 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.21e-07/0.9065, allocations: 4.062 kB / 0.6868 GB, free: 1.277 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00437/0.9109, allocations: 0.8242 MB / 0.6876 GB, free: 464 kB / 0.5137 GB 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.0003849/0.9113, allocations: 146.5 kB / 0.6877 GB, free: 312 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006129/0.9174, allocations: 4.007 MB / 0.6916 GB, free: 12.31 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.9175, allocations: 4 kB / 0.6916 GB, free: 12.31 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.9188, allocations: 0.9982 MB / 0.6926 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001758/0.9205, allocations: 359.4 kB / 0.693 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01329/0.9338, allocations: 9.072 MB / 0.7018 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002984/0.9368, allocations: 2.796 MB / 0.7045 GB, free: 15.03 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008738/0.9377, allocations: 251.4 kB / 0.7048 GB, free: 14.79 MB / 0.545 GB Notification: Performance of SimCode: time 9.72e-07/0.9377, allocations: 0 / 0.7048 GB, free: 14.79 MB / 0.545 GB Notification: Performance of Templates: time 0.4225/1.36, allocations: 62.9 MB / 0.7662 GB, free: 163.8 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile clang++ NOTFOUND -Winvalid-pch -O0 -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/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2CalcHelperMain.o OMCppModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2CalcHelperMain.o] Error 1