Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009443/0.0009443, allocations: 100.1 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.001609/0.001608, allocations: 178.1 kB / 16.58 MB, free: 6.879 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.582/1.582, allocations: 223.2 MB / 240.6 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.273/0.273, allocations: 9.105 MB / 300.8 MB, free: 2.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000329/0.0003291, allocations: 8 kB / 363.7 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1272, allocations: 52.42 MB / 416.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.2657/0.3929, allocations: 35.94 MB / 452.1 MB, free: 22.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02031/0.4133, allocations: 8.072 MB / 460.2 MB, free: 16.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009581/0.4229, allocations: 145.6 kB / 460.3 MB, free: 16.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006613/0.4296, allocations: 1.784 MB / 462.1 MB, free: 16.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01927/0.4489, allocations: 6.205 MB / 468.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00253/0.4515, allocations: 167.1 kB / 468.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005013/0.4565, allocations: 3.148 MB / 471.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002212/0.4587, allocations: 0.9395 MB / 472.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002202/0.461, allocations: 0.9132 MB / 473.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002363/0.4634, allocations: 1.439 MB / 474.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005017/0.4639, allocations: 147.8 kB / 475 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001589/0.4655, allocations: 0.6848 MB / 475.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001381/0.4669, allocations: 1.229 MB / 477 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009967/0.4679, allocations: 0.7058 MB / 477.7 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005979/0.4739, allocations: 4.011 MB / 481.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.4739, allocations: 0 / 481.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4739, allocations: 0 / 481.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001963/0.4741, allocations: 0 / 481.7 MB, free: 8.957 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.01344/0.4875, allocations: 4.48 MB / 486.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.4876, allocations: 9.625 kB / 486.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007831/0.4954, allocations: 1.848 MB / 488 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004654/0.5001, allocations: 1.483 MB / 489.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/0.5004, allocations: 169.3 kB / 489.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009884/0.5014, allocations: 236.6 kB / 489.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02324/0.5246, allocations: 8.932 MB / 498.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001406/0.5248, allocations: 35.97 kB / 498.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006148/0.5254, allocations: 104.5 kB / 499 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004061/0.5295, allocations: 2.012 MB / 0.4892 GB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0191/0.5486, allocations: 7.93 MB / 0.497 GB, free: 6.699 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0513/0.5999, allocations: 28.56 MB / 0.5249 GB, free: 9.555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007354/0.6073, allocations: 2.803 MB / 0.5276 GB, free: 6.648 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001615/0.609, allocations: 0.982 MB / 0.5286 GB, free: 5.664 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009999/0.619, allocations: 6.459 MB / 0.5349 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.6191, allocations: 51.75 kB / 0.5349 GB, free: 14.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 4.709e-06/0.6191, allocations: 0 / 0.5349 GB, free: 14.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.01634/0.6355, allocations: 6.471 MB / 0.5412 GB, free: 8.023 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.163e-05/0.6356, allocations: 69.41 kB / 0.5413 GB, free: 7.941 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005516/0.6411, allocations: 3.007 MB / 0.5442 GB, free: 4.922 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001624/0.6413, allocations: 53.7 kB / 0.5443 GB, free: 4.863 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002191/0.6435, allocations: 2.357 MB / 0.5466 GB, free: 2.473 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009637/0.6445, allocations: 0.7054 MB / 0.5473 GB, free: 1.758 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002216/0.6447, allocations: 88 kB / 0.5474 GB, free: 1.672 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000425/0.6452, allocations: 0.5044 MB / 0.5479 GB, free: 1.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002846/0.648, allocations: 1.481 MB / 0.5493 GB, free: 15.67 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004809/0.6528, allocations: 4.062 MB / 0.5533 GB, free: 10.33 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004206/0.6571, allocations: 2.451 MB / 0.5557 GB, free: 7.883 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-05/0.6571, allocations: 32 kB / 0.5557 GB, free: 7.852 MB / 430.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01077/0.6679, allocations: 5.923 MB / 0.5615 GB, free: 1.914 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.044e-05/0.668, allocations: 45 kB / 0.5615 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/0.6681, allocations: 88 kB / 0.5616 GB, free: 1.785 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/0.6697, allocations: 0.589 MB / 0.5622 GB, free: 1.188 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003059/0.6727, allocations: 0.9943 MB / 0.5631 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01059/0.6833, allocations: 8.531 MB / 0.5715 GB, free: 7.254 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005687/0.6891, allocations: 243.9 kB / 0.5717 GB, free: 7.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001218/0.6903, allocations: 275.9 kB / 0.572 GB, free: 6.746 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 (548): * Single equations (assignments): 541 * 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.005501/0.6959, allocations: 1.724 MB / 0.5737 GB, free: 5.008 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007257/0.6966, allocations: 268.5 kB / 0.5739 GB, free: 4.742 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005354/0.702, allocations: 2.649 MB / 0.5765 GB, free: 2.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001048/0.7021, allocations: 35.98 kB / 0.5765 GB, free: 2.035 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.986e-05/0.7021, allocations: 4 kB / 0.5765 GB, free: 2.031 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.7021, allocations: 7.969 kB / 0.5765 GB, free: 2.023 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3455/1.048, allocations: 7.3 MB / 0.5837 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.337e-05/1.048, allocations: 6.219 kB / 0.5837 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008349/1.049, allocations: 240.5 kB / 0.5839 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001168/1.05, allocations: 449 kB / 0.5843 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/1.05, allocations: 38.19 kB / 0.5844 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007353/1.057, allocations: 7.206 MB / 0.5914 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/1.057, allocations: 3.375 kB / 0.5914 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005651/1.063, allocations: 3.981 MB / 0.5953 GB, free: 115 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/1.064, allocations: 355.1 kB / 0.5956 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002806/1.064, allocations: 35.3 kB / 0.5957 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008753/1.065, allocations: 83.25 kB / 0.5958 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002796/1.066, allocations: 126.6 kB / 0.5959 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/1.066, allocations: 53.97 kB / 0.5959 GB, free: 114.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003246/1.069, allocations: 1.918 MB / 0.5978 GB, free: 114.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.069, allocations: 3.719 kB / 0.5978 GB, free: 114.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004683/1.074, allocations: 0.8318 MB / 0.5986 GB, free: 114 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.w) * 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 (135): * Single equations (assignments): 128 * 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,(2,100.0%) 6} * Non-linear torn systems: 1 {2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.000439/1.074, allocations: 172.3 kB / 0.5988 GB, free: 113.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00716/1.081, allocations: 4.101 MB / 0.6028 GB, free: 112.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/1.081, allocations: 0 / 0.6028 GB, free: 112.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00218/1.083, allocations: 1.59 MB / 0.6043 GB, free: 111.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/1.086, allocations: 427.8 kB / 0.6047 GB, free: 111.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01585/1.102, allocations: 9.09 MB / 0.6136 GB, free: 106.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003713/1.106, allocations: 2.807 MB / 0.6164 GB, free: 105.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001129/1.107, allocations: 239.3 kB / 0.6166 GB, free: 105.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.292e-06/1.107, allocations: 0 / 0.6166 GB, free: 105.3 MB / 446.1 MB Notification: Performance of Templates: time 0.1151/1.222, allocations: 97.31 MB / 0.7116 GB, free: 24.29 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.makefile make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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.PistonEngineCalcHelperMain.o OMCppPlanarMechanics_PlanarMechanics.Examples.PistonEngineCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPlanarMechanics_PlanarMechanics.Examples.PistonEngineCalcHelperMain.o] Error 1