Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 99.05 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 173.8 kB / 16.58 MB, free: 6.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.625/1.625, allocations: 223.2 MB / 240.6 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2482/0.2482, allocations: 9.105 MB / 300.8 MB, free: 2.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003248/0.0003248, allocations: 8 kB / 363.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.116, allocations: 52.42 MB / 416.1 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.267/0.3831, allocations: 35.93 MB / 452.1 MB, free: 22.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01984/0.403, allocations: 8.072 MB / 460.2 MB, free: 16.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008916/0.4119, allocations: 150.8 kB / 460.3 MB, free: 16.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006266/0.4182, allocations: 1.783 MB / 462.1 MB, free: 16.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02002/0.4383, allocations: 6.201 MB / 468.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00318/0.4415, allocations: 172.2 kB / 468.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006626/0.4482, allocations: 3.146 MB / 471.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00193/0.4501, allocations: 0.9453 MB / 472.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001787/0.4519, allocations: 0.9166 MB / 473.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002018/0.454, allocations: 1.435 MB / 474.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004047/0.4544, allocations: 147.1 kB / 475 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0023/0.4567, allocations: 0.6869 MB / 475.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002002/0.4587, allocations: 1.229 MB / 477 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001063/0.4598, allocations: 0.7058 MB / 477.7 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007182/0.467, allocations: 4.006 MB / 481.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.467, allocations: 1.125 kB / 481.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.467, allocations: 0 / 481.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001796/0.4672, allocations: 0 / 481.7 MB, free: 8.891 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01399/0.4812, allocations: 4.487 MB / 486.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.4813, allocations: 9.281 kB / 486.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007549/0.4888, allocations: 1.854 MB / 488 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003711/0.4926, allocations: 1.468 MB / 489.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001639/0.4928, allocations: 180.3 kB / 489.7 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005382/0.4933, allocations: 225.6 kB / 489.9 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01833/0.5116, allocations: 8.936 MB / 498.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.73e-05/0.5118, allocations: 26.91 kB / 498.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003782/0.5122, allocations: 110.8 kB / 499 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003591/0.5158, allocations: 2.014 MB / 0.4892 GB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01994/0.5357, allocations: 7.929 MB / 0.497 GB, free: 6.703 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.055/0.5908, allocations: 28.56 MB / 0.5249 GB, free: 9.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007946/0.5988, allocations: 2.808 MB / 0.5276 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001917/0.6007, allocations: 0.9903 MB / 0.5286 GB, free: 5.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01028/0.611, allocations: 6.451 MB / 0.5349 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.942e-05/0.6111, allocations: 51.86 kB / 0.5349 GB, free: 14.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 4.088e-06/0.6111, allocations: 7.938 kB / 0.5349 GB, free: 14.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02431/0.6355, allocations: 9.726 MB / 0.5444 GB, free: 4.664 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008868/0.6444, allocations: 6.453 MB / 0.5507 GB, free: 13.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006887/0.6513, allocations: 3.015 MB / 0.5537 GB, free: 10.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004782/0.6518, allocations: 49.7 kB / 0.5537 GB, free: 10.83 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002228/0.654, allocations: 2.357 MB / 0.556 GB, free: 8.438 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001014/0.6551, allocations: 0.7208 MB / 0.5567 GB, free: 7.707 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002422/0.6553, allocations: 96 kB / 0.5568 GB, free: 7.613 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003591/0.6557, allocations: 0.4967 MB / 0.5573 GB, free: 7.109 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002695/0.6584, allocations: 1.524 MB / 0.5588 GB, free: 5.578 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004699/0.6631, allocations: 4.102 MB / 0.5628 GB, free: 204 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003907/0.667, allocations: 2.491 MB / 0.5652 GB, free: 13.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-05/0.6671, allocations: 28 kB / 0.5653 GB, free: 13.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01054/0.6776, allocations: 6.021 MB / 0.5711 GB, free: 7.641 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.851e-05/0.6777, allocations: 47.03 kB / 0.5712 GB, free: 7.598 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/0.6779, allocations: 92 kB / 0.5713 GB, free: 7.508 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001417/0.6793, allocations: 0.5851 MB / 0.5718 GB, free: 6.914 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003095/0.6824, allocations: 1.029 MB / 0.5728 GB, free: 5.883 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3468/1.029, allocations: 8.498 MB / 0.5811 GB, free: 117.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004955/1.034, allocations: 258.5 kB / 0.5814 GB, free: 117.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001234/1.035, allocations: 282.4 kB / 0.5817 GB, free: 117.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (554): * Single equations (assignments): 547 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,56.0%) 19,(2,100.0%) 8} * Non-linear torn systems: 1 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0044/1.04, allocations: 1.721 MB / 0.5833 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006204/1.04, allocations: 271 kB / 0.5836 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005305/1.046, allocations: 2.89 MB / 0.5864 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.757e-05/1.046, allocations: 33.31 kB / 0.5864 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/1.046, allocations: 6.344 kB / 0.5865 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/1.046, allocations: 6.562 kB / 0.5865 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01485/1.061, allocations: 9.331 MB / 0.5956 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/1.061, allocations: 3.344 kB / 0.5956 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007995/1.062, allocations: 211.5 kB / 0.5958 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001501/1.063, allocations: 0.6134 MB / 0.5964 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/1.063, allocations: 40.33 kB / 0.5964 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009567/1.073, allocations: 8.704 MB / 0.6049 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005752/1.079, allocations: 5.673 MB / 0.6105 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006437/1.085, allocations: 4.21 MB / 0.6146 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0012/1.086, allocations: 361.8 kB / 0.6149 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003159/1.087, allocations: 32.52 kB / 0.6149 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009534/1.088, allocations: 89.36 kB / 0.615 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003336/1.088, allocations: 138.4 kB / 0.6152 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/1.088, allocations: 56.34 kB / 0.6152 GB, free: 102.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003792/1.092, allocations: 1.915 MB / 0.6171 GB, free: 102.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.41e-07/1.092, allocations: 0 / 0.6171 GB, free: 102.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005553/1.098, allocations: 0.9017 MB / 0.618 GB, free: 102.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 118 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,56.0%) 15,(3,100.0%) 10} * Non-linear torn systems: 1 {3 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004957/1.098, allocations: 169.5 kB / 0.6181 GB, free: 102 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007854/1.106, allocations: 4.183 MB / 0.6222 GB, free: 100.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.106, allocations: 1.469 kB / 0.6222 GB, free: 100.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002923/1.109, allocations: 1.736 MB / 0.6239 GB, free: 99.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003002/1.112, allocations: 426.7 kB / 0.6243 GB, free: 99.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0169/1.129, allocations: 9.349 MB / 0.6334 GB, free: 94.24 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003566/1.132, allocations: 2.841 MB / 0.6362 GB, free: 93.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/1.134, allocations: 245.8 kB / 0.6365 GB, free: 93 MB / 446.1 MB Notification: Performance of SimCode: time 2.144e-06/1.134, allocations: 0 / 0.6365 GB, free: 93 MB / 446.1 MB Notification: Performance of Templates: time 0.1192/1.253, allocations: 98.37 MB / 0.7325 GB, free: 1.293 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.makefile make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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 OMCppPlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelectionCalcHelperMain.o OMCppPlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelectionCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelectionCalcHelperMain.o] Error 1